|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.useradmin.impl.AuthorizationImpl
public class AuthorizationImpl
Authorization
Constructor Summary | |
---|---|
AuthorizationImpl(User user,
UserAdminServiceImpl userAdmin)
Construct new Authorization object with provided user and UserAdmin service implementation. |
Method Summary | |
---|---|
protected void |
addWorkingOnRole(Role role)
Adds working role to working on roles by this Autorization object. |
String |
getName()
|
String[] |
getRoles()
Looking for all Roles implied by this Authorization object. |
boolean |
hasRole(String name)
|
protected boolean |
isWorkingOnRole(Role role)
Check if current Autorization object is working on provided role. |
protected void |
removeWorkingOnRole(Role role)
Removes working on role. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthorizationImpl(User user, UserAdminServiceImpl userAdmin)
Construct new Authorization object with provided user and UserAdmin service implementation.
user
- User for who authorization can be checkeduserAdmin
- UserAdmin service implementationMethod Detail |
---|
public String getName()
getName
in interface Authorization
Authorization.getName()
public String[] getRoles()
getRoles
in interface Authorization
Authorization.getRoles()
public boolean hasRole(String name)
hasRole
in interface Authorization
Authorization.hasRole(java.lang.String)
protected void addWorkingOnRole(Role role)
role
- to be added role.protected void removeWorkingOnRole(Role role)
role
- to be removed from working by this Autorization object roles.protected boolean isWorkingOnRole(Role role)
role
- Role on which Autorization object is working.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |