|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.useradmin.impl.RoleImpl
public class RoleImpl
This RoleImplclass represents Role. Act as base class for different types of roles User,Group.
Role
,
Serialized FormField Summary | |
---|---|
protected String |
name
role name. |
protected UserAdminServiceImpl |
userAdmin
UserAdmin service instance. |
Fields inherited from interface org.osgi.service.useradmin.Role |
---|
GROUP, ROLE, USER, USER_ANYONE |
Constructor Summary | |
---|---|
RoleImpl()
Construct new Role. |
Method Summary | |
---|---|
String |
getName()
Returns the name of this role. |
Dictionary |
getProperties()
Returns a Dictionary of the (public) properties of this
Role object. |
int |
getType()
Returns the type of this role. |
long |
getVersion()
This method getting version of a role. |
protected boolean |
impliedBy(AuthorizationImpl authorization)
Checks if this role is implied by provided Authorization object. |
void |
increaseVersion()
This method increasing version of a role. |
void |
setName(String name)
Setting role name. |
void |
setUserAdmin(UserAdminServiceImpl userAdmin)
Setting UserAdmin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected transient UserAdminServiceImpl userAdmin
Constructor Detail |
---|
public RoleImpl()
Method Detail |
---|
public String getName()
Role
getName
in interface Role
Role.getName()
public Dictionary getProperties()
Role
Dictionary
of the (public) properties of this
Role
object. Any changes to the returned Dictionary
will change the properties of this Role
object. This will
cause a UserAdminEvent
object of type
UserAdminEvent.ROLE_CHANGED
to be broadcast to any
UserAdminListener
objects.
Only objects of type String
may be used as property keys, and
only objects of type String
or byte[]
may be used
as property values. Any other types will cause an exception of type
IllegalArgumentException
to be raised.
In order to add, change, or remove a property in the returned
Dictionary
, a UserAdminPermission
named after the
property name (or a prefix of it) with action changeProperty
is required.
getProperties
in interface Role
Dictionary
containing the properties of this
Role
object.Role.getProperties()
public int getType()
Role
getType
in interface Role
Role.getType()
public long getVersion()
Version
getVersion
in interface Version
Version.getVersion()
public void increaseVersion()
Version
increaseVersion
in interface Version
Version.increaseVersion()
protected boolean impliedBy(AuthorizationImpl authorization)
authorization
- Authorization instance.
org.osgi.service.useradmin.Autorization
public void setUserAdmin(UserAdminServiceImpl userAdmin)
userAdmin
- UserAdmin isntance.public void setName(String name)
name
- role name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |