|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.accounting.security.authz.Permission
public class Permission
| Constructor Summary | |
|---|---|
Permission()
Empty constructor |
|
Permission(String userId,
String target,
Role role)
Full constructor |
|
| Method Summary | |
|---|---|
Role |
getRole()
Return the user role |
String |
getTarget()
Return the target of the permission |
String |
getUserId()
Return the user identity |
boolean |
isAllowed(Action a)
Check whether the given action is allowed by this permission |
boolean |
isAllowed(Action a,
String object)
Check whether the given action on the given target is allowed by this permission |
void |
setRole(Role role)
Set the user role over the target |
void |
setTarget(String target)
Set the target of the permission |
void |
setUserId(String userId)
Set the user identity |
String |
toString()
Provide a string representation for this permission |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Permission()
public Permission(String userId,
String target,
Role role)
| Method Detail |
|---|
public String getUserId()
public void setUserId(String userId)
userId - public Role getRole()
public void setRole(Role role)
role - public String getTarget()
public void setTarget(String target)
target - public boolean isAllowed(Action a)
a -
public boolean isAllowed(Action a,
String object)
a - object -
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||