|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.useradmin.impl.RoleImpl
org.apache.felix.useradmin.impl.UserImpl
org.apache.felix.useradmin.impl.GroupImpl
public class GroupImpl
This class represents Group role. Group is an aggregation of basic and required roles. Basic and required roles are used in the autorization phase.
Group
,
Serialized FormField Summary |
---|
Fields inherited from class org.apache.felix.useradmin.impl.RoleImpl |
---|
name, userAdmin |
Fields inherited from interface org.osgi.service.useradmin.Role |
---|
GROUP, ROLE, USER, USER_ANYONE |
Constructor Summary | |
---|---|
GroupImpl()
Construct new Group role. |
Method Summary | |
---|---|
boolean |
addMember(Role role)
Adds the specified Role object as a basic member to this
Group object. |
boolean |
addRequiredMember(Role role)
Adds the specified Role object as a required member to this
Group object. |
Role[] |
getMembers()
Gets the basic members of this Group object. |
Role[] |
getRequiredMembers()
Gets the required members of this Group object. |
int |
getType()
Returns the type of this role. |
protected boolean |
impliedBy(AuthorizationImpl authorization)
Checks if this role is implied by provided Authorization object. |
boolean |
removeMember(Role role)
Removes the specified Role object from this Group
object. |
Methods inherited from class org.apache.felix.useradmin.impl.UserImpl |
---|
getCredentials, hasCredential |
Methods inherited from class org.apache.felix.useradmin.impl.RoleImpl |
---|
getName, getProperties, getVersion, increaseVersion, setName, setUserAdmin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.osgi.service.useradmin.User |
---|
getCredentials, hasCredential |
Methods inherited from interface org.osgi.service.useradmin.Role |
---|
getName, getProperties |
Constructor Detail |
---|
public GroupImpl()
Method Detail |
---|
public boolean addMember(Role role)
Group
Role
object as a basic member to this
Group
object.
addMember
in interface Group
role
- The role to add as a basic member.
true
if the given role could be added as a basic
member, and false
if this Group
object
already contains a Role
object whose name matches that
of the specified role.Group.addMember(Role)
public boolean addRequiredMember(Role role)
Group
Role
object as a required member to this
Group
object.
addRequiredMember
in interface Group
role
- The Role
object to add as a required member.
true
if the given Role
object could be
added as a required member, and false
if this
Group
object already contains a Role
object
whose name matches that of the specified role.Group.addRequiredMember(Role)
public Role[] getMembers()
Group
Group
object.
getMembers
in interface Group
Group
object, or
null
if this Group
object does not contain
any basic members.Group.getMembers()
public Role[] getRequiredMembers()
Group
Group
object.
getRequiredMembers
in interface Group
Group
object, or
null
if this Group
object does not contain
any required members.Group.getRequiredMembers()
public boolean removeMember(Role role)
Group
Role
object from this Group
object.
removeMember
in interface Group
role
- The Role
object to remove from this Group
object.
true
if the Role
object could be removed,
otherwise false
.Group.removeMember(Role)
public int getType()
Role
getType
in interface Role
getType
in class UserImpl
Role.getType()
protected boolean impliedBy(AuthorizationImpl authorization)
impliedBy
in class UserImpl
authorization
- Authorization instance.
org.osgi.service.useradmin.Autorization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |