|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutils.gate.cow.sventon.CowSventonSession
class CowSventonSession
Class encapsulating a "session" giving permissions to the sventon web app.
Field Summary | |
---|---|
private boolean |
admin
Admin flag. |
private Map |
grants
Map from repository name to the set of paths within that repository to which this session has access. |
private static long |
serialVersionUID
Serial version ID. |
Constructor Summary | |
CowSventonSession()
|
Method Summary | |
---|---|
private Set
|
getGrantsForRepos(String repos, boolean create)
Get the permitted set of paths for a given repository, optionally creating an empty set if there are currently no grants for that repository. |
void
|
grant(String repos, String path)
Add permission for the given repository and path to this session. |
boolean
|
isAdmin()
|
boolean
|
isPermitted(String repos, String path)
Check whether the current session permits access to the given repository and path. |
void
|
setAdmin(boolean admin)
|
String
|
toString()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
private boolean admin
private Map grants
private static final long serialVersionUID
Constructor Detail |
---|
CowSventonSession()
Method Detail |
---|
private Set getGrantsForRepos(String repos, boolean create)
public void grant(String repos, String path)
public boolean isAdmin()
public boolean isPermitted(String repos, String path)
public void setAdmin(boolean admin)
public String toString()
Groovy Documentation