|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mx.util.JBossNotificationBroadcasterSupport org.jboss.system.ServiceMBeanSupport org.jboss.portal.jems.as.system.AbstractJBossService org.jboss.portal.identity2.ldap.LDAPRoleModuleImpl
Field Summary | |
private LDAPConnectionContext |
connectionContext
|
private java.lang.String |
containerDN
|
private java.lang.String |
displayNameAttributeID
|
private java.lang.String |
ridAttributeID
|
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
|
Fields inherited from interface org.jboss.system.ServiceMBean |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
LDAPRoleModuleImpl()
|
Method Summary | |
Role |
createRole(java.lang.String name,
java.lang.String displayName)
Create a new role with the specified name. |
protected LDAPRoleImpl |
createRoleInstance(javax.naming.directory.SearchResult sr)
|
Role |
findRoleById(java.lang.Object id)
Retrieves a role by its id. |
Role |
findRoleById(java.lang.String id)
Retrieves a role by its id. |
Role |
findRoleByName(java.lang.String name)
Retrieves a role by its name |
java.util.Set |
findRoles()
Get all the roles |
java.util.Set |
findRolesByNames(java.lang.String[] names)
Retrieve a collection of role from the role names. |
LDAPConnectionContext |
getConnectionContext()
|
java.lang.String |
getContainerDN()
|
java.lang.String |
getDisplayNameAttributeID()
|
java.lang.String |
getRidAttributeID()
|
int |
getRolesCount()
Returns the number of roles. |
void |
removeRole(java.lang.Object id)
Remove a role. |
void |
setConnectionContext(LDAPConnectionContext connectionContext)
|
void |
setContainerDN(java.lang.String containerDN)
|
void |
setDisplayNameAttributeID(java.lang.String displayNameAttributeID)
|
void |
setRidAttributeID(java.lang.String ridAttributeID)
|
Methods inherited from class org.jboss.portal.jems.as.system.AbstractJBossService |
create, destroy, getState, getStateString, start, stop |
Methods inherited from class org.jboss.system.ServiceMBeanSupport |
createService, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, startService, stopService |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private LDAPConnectionContext connectionContext
private java.lang.String ridAttributeID
private java.lang.String containerDN
private java.lang.String displayNameAttributeID
Constructor Detail |
public LDAPRoleModuleImpl()
Method Detail |
public Role findRoleByName(java.lang.String name) throws IdentityException, java.lang.IllegalArgumentException
RoleModule
findRoleByName
in interface RoleModule
name
- the role name
IdentityException
java.lang.IllegalArgumentException
public java.util.Set findRolesByNames(java.lang.String[] names) throws IdentityException, java.lang.IllegalArgumentException
RoleModule
findRolesByNames
in interface RoleModule
names
- the role names
java.lang.IllegalArgumentException
IdentityException
public Role findRoleById(java.lang.Object id) throws IdentityException, java.lang.IllegalArgumentException
RoleModule
findRoleById
in interface RoleModule
id
- the role id
IdentityException
java.lang.IllegalArgumentException
public Role findRoleById(java.lang.String id) throws IdentityException, java.lang.IllegalArgumentException
RoleModule
findRoleById
in interface RoleModule
id
- the role id
IdentityException
java.lang.IllegalArgumentException
public Role createRole(java.lang.String name, java.lang.String displayName) throws IdentityException, java.lang.IllegalArgumentException
RoleModule
createRole
in interface RoleModule
name
- the role namedisplayName
- the role display name
IdentityException
java.lang.IllegalArgumentException
public void removeRole(java.lang.Object id) throws IdentityException, java.lang.IllegalArgumentException
RoleModule
removeRole
in interface RoleModule
id
- the role id
IdentityException
java.lang.IllegalArgumentException
public int getRolesCount() throws IdentityException
RoleModule
getRolesCount
in interface RoleModule
IdentityException
public java.util.Set findRoles() throws IdentityException
RoleModule
findRoles
in interface RoleModule
IdentityException
protected LDAPRoleImpl createRoleInstance(javax.naming.directory.SearchResult sr) throws IdentityException
IdentityException
public java.lang.String getRidAttributeID()
public void setRidAttributeID(java.lang.String ridAttributeID)
public LDAPConnectionContext getConnectionContext()
public void setConnectionContext(LDAPConnectionContext connectionContext)
public java.lang.String getContainerDN()
public void setContainerDN(java.lang.String containerDN)
public java.lang.String getDisplayNameAttributeID()
public void setDisplayNameAttributeID(java.lang.String displayNameAttributeID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |