org.apache.felix.useradmin.impl
Class GroupImpl

java.lang.Object
  extended by org.apache.felix.useradmin.impl.RoleImpl
      extended by org.apache.felix.useradmin.impl.UserImpl
          extended by org.apache.felix.useradmin.impl.GroupImpl
All Implemented Interfaces:
Serializable, Version, Group, Role, User

public class GroupImpl
extends UserImpl
implements Group

This class represents Group role. Group is an aggregation of basic and required roles. Basic and required roles are used in the autorization phase.

Version:
$Rev$ $Date$
See Also:
Group, Serialized Form

Field 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)
           
 boolean addRequiredMember(Role role)
           
 Role[] getMembers()
           
 Role[] getRequiredMembers()
           
 int getType()
           
protected  boolean impliedBy(AuthorizationImpl authorization)
          Checks if this role is implied by provided Authorization object.
 boolean removeMember(Role role)
           
 
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

GroupImpl

public GroupImpl()
Construct new Group role.

Method Detail

addMember

public boolean addMember(Role role)
Specified by:
addMember in interface Group
See Also:
Group.addMember(Role)

addRequiredMember

public boolean addRequiredMember(Role role)
Specified by:
addRequiredMember in interface Group
See Also:
Group.addRequiredMember(Role)

getMembers

public Role[] getMembers()
Specified by:
getMembers in interface Group
See Also:
Group.getMembers()

getRequiredMembers

public Role[] getRequiredMembers()
Specified by:
getRequiredMembers in interface Group
See Also:
Group.getRequiredMembers()

removeMember

public boolean removeMember(Role role)
Specified by:
removeMember in interface Group
See Also:
Group.removeMember(Role)

getType

public int getType()
Specified by:
getType in interface Role
Overrides:
getType in class UserImpl
See Also:
Role.getType()

impliedBy

protected boolean impliedBy(AuthorizationImpl authorization)
Checks if this role is implied by provided Authorization object.

Overrides:
impliedBy in class UserImpl
Parameters:
authorization - Authorization instance.
Returns:
true if is implied false if not.
See Also:
Autorization


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.