|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.console.models.Manager
com.metamatrix.console.models.GroupsManager
public class GroupsManager
Field Summary | |
---|---|
static java.lang.String[][] |
PROPS_AND_DISPLAY_NAMES_FOR_METAMATRIX_GROUPS
|
Fields inherited from class com.metamatrix.console.models.Manager |
---|
MODEL_CHANGED, MODEL_STALE |
Constructor Summary | |
---|---|
GroupsManager(ConnectionInfo connection)
Constructor |
Method Summary | |
---|---|
void |
addPrincipalChangeListener(PrincipalChangeListener listener)
|
void |
addPrincipalsToRole(java.util.Collection principals,
java.lang.String role)
Add collection of PrincipalNames to a Role |
java.util.List<java.lang.String> |
getDomainNames()
|
java.util.Collection<Group> |
getGroupsForDomain(java.lang.String theDomain)
|
java.util.Map |
getMetaMatrixPropNamesForGroups()
|
java.util.Collection |
getPrincipalsForRole(java.lang.String roleName)
Get Collection of Principals for the provided roleName. |
java.lang.String |
getRoleDescription(java.lang.String roleName)
Get Role description for the provided role name. |
RoleDisplay |
getRoleDisplay(java.lang.String roleName)
Get RoleDisplay for the provided role name from the roles Map. |
java.lang.String |
getRoleDisplayName(java.lang.String roleName)
Get Role displayName for the provided role name. |
java.util.Map |
getRoles()
Get map of Role name to RoleDisplay from the authorization api |
RoleDisplay[] |
getRolesForPrincipal(MetaMatrixPrincipalName principalName)
Get Collection of Roles for the provided MetaMatrixPrincipalName |
RoleDisplay[] |
getRolesForPrincipal(MetaMatrixPrincipalName principal,
boolean includeImplicit)
Get Collection of Roles for the provided MetaMatrixPrincipals |
void |
init()
Needs to be called by subclasses - sets up event listening. |
boolean |
isSkippedRole(java.lang.String roleName)
|
void |
removePrincipalsFromRole(java.util.Collection principals,
java.lang.String role)
Remove collection of PrincipalNames from a Role |
void |
removeRolesFromPrincipal(java.lang.String[] roles,
MetaMatrixPrincipalName principal)
Remove array of Roles from a principal |
Methods inherited from class com.metamatrix.console.models.Manager |
---|
addManagerListener, fireModelChangedEvent, fireModelChangedEvent, getConnection, getConnection, getEncryptor, getEventListeners, getIsStale, refresh, removeManagerListener, setIsStale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[][] PROPS_AND_DISPLAY_NAMES_FOR_METAMATRIX_GROUPS
Constructor Detail |
---|
public GroupsManager(ConnectionInfo connection)
connection
- the connectionInfoMethod Detail |
---|
public void init()
Manager
TODO: Perhaps this superclass should set itself to stale as part of the initialization process (see commented code in method body). That would broadcast an event to listeners which would prompt them to begin calling methods on a Manager - or perhaps a start() method with this code should be defined that will be called after init() (allowing subclasses to extend init() before start() would be called)
init
in class Manager
public java.util.Map getRoles() throws ExternalException, AuthorizationException
ExternalException
AuthorizationException
public RoleDisplay getRoleDisplay(java.lang.String roleName) throws ExternalException, AuthorizationException
roleName
- the role name
ExternalException
AuthorizationException
public java.lang.String getRoleDescription(java.lang.String roleName) throws ExternalException, AuthorizationException
roleName
- the role name
ExternalException
AuthorizationException
public java.lang.String getRoleDisplayName(java.lang.String roleName) throws ExternalException, AuthorizationException
roleName
- the role name
ExternalException
AuthorizationException
public java.util.Collection getPrincipalsForRole(java.lang.String roleName) throws ComponentNotFoundException, AuthorizationException, ExternalException
roleName
- the role name
ComponentNotFoundException
AuthorizationException
ExternalException
public RoleDisplay[] getRolesForPrincipal(MetaMatrixPrincipalName principalName) throws ComponentNotFoundException, AuthorizationException, ExternalException, MetaMatrixSecurityException
principalName
- the MetaMatrixPrincipalNameincludeImplicit
- flag to determine whether to include implicit
ComponentNotFoundException
AuthorizationException
ExternalException
MetaMatrixSecurityException
public RoleDisplay[] getRolesForPrincipal(MetaMatrixPrincipalName principal, boolean includeImplicit) throws ComponentNotFoundException, AuthorizationException, ExternalException, MetaMatrixSecurityException
principals
- the collection of MetaMatrixPrincipalsincludeImplicit
- flag to determine whether to include implicit
ComponentNotFoundException
AuthorizationException
ExternalException
MetaMatrixSecurityException
public void addPrincipalsToRole(java.util.Collection principals, java.lang.String role) throws ComponentNotFoundException, AuthorizationException, ExternalException
principals
- the collection of MetaMatrixPrincipalNamesrole
- the role to add the principals to.
ComponentNotFoundException
AuthorizationException
ExternalException
public void removePrincipalsFromRole(java.util.Collection principals, java.lang.String role) throws ComponentNotFoundException, AuthorizationException, ExternalException
principals
- the collection of MetaMatrixPrincipalNamesrole
- the role to remove the principals from.
ComponentNotFoundException
AuthorizationException
ExternalException
public void removeRolesFromPrincipal(java.lang.String[] roles, MetaMatrixPrincipalName principal) throws ComponentNotFoundException, AuthorizationException, ExternalException
roles
- the array of roles to removeprincipal
- the principal to remove roles from.
ComponentNotFoundException
AuthorizationException
ExternalException
public java.util.List<java.lang.String> getDomainNames()
public java.util.Collection<Group> getGroupsForDomain(java.lang.String theDomain)
public java.util.Map getMetaMatrixPropNamesForGroups()
public void addPrincipalChangeListener(PrincipalChangeListener listener)
public boolean isSkippedRole(java.lang.String roleName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |