|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.portal.identity.service.IdentityModuleService
org.jboss.portal.identity.service.RoleModuleService
org.jboss.portal.identity.ldap.LDAPRoleModule
org.jboss.portal.core.identity.cache.CachedLDAPRoleModuleWrapper
public class CachedLDAPRoleModuleWrapper
Field Summary |
---|
Fields inherited from class org.jboss.portal.identity.service.IdentityModuleService |
---|
moduleType |
Constructor Summary | |
---|---|
CachedLDAPRoleModuleWrapper(LDAPRoleModule ldapRoleModule,
IdentityCacheService cacheService)
|
Method Summary | |
---|---|
Role |
createRole(java.lang.String name,
java.lang.String displayName)
Create a new role with the specified name. |
LDAPRoleImpl |
createRoleInstance(javax.naming.directory.Attributes attrs,
java.lang.String dn)
|
Role |
findRoleByDN(java.lang.String dn)
method not belonging to UserModule interface - ldap specific. |
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. |
int |
getRolesCount()
Returns the number of roles. |
void |
removeRole(java.lang.Object id)
Remove a role. |
java.util.List |
searchRoles(java.lang.String filter,
java.lang.Object[] filterArgs)
This method should be used by over modules to perform searches. |
void |
updateDisplayName(LDAPRoleImpl ldapr,
java.lang.String name)
|
Methods inherited from class org.jboss.portal.identity.ldap.LDAPRoleModule |
---|
getConnectionContext, getContainerDN, getDisplayNameAttributeID, getRidAttributeID, getRoleCtxDN, getRoleSearchFilter, getSearchScope, getSearchTimeLimit, setConnectionContext, start |
Methods inherited from class org.jboss.portal.identity.service.RoleModuleService |
---|
fireRoleCreatedEvent, fireRoleDestroyedEvent, fireRoleUpdatedEvent |
Methods inherited from class org.jboss.portal.identity.service.IdentityModuleService |
---|
getConnectionJNDIName, getIdentityConfiguration, getIdentityContext, getIdentityEventBroadcaster, getInitOptions, getJndiBinder, getJNDIName, getModuleType, setConnectionJNDIName, setIdentityContext, setInitOptions, setJndiBinder, setJNDIName, setModuleType, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CachedLDAPRoleModuleWrapper(LDAPRoleModule ldapRoleModule, IdentityCacheService cacheService)
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
public java.util.List searchRoles(java.lang.String filter, java.lang.Object[] filterArgs) throws javax.naming.NamingException, IdentityException
LDAPRoleModule
searchRoles
in class LDAPRoleModule
filter
- that will be concatenated with proper role search filter from the module
javax.naming.NamingException
IdentityException
public void updateDisplayName(LDAPRoleImpl ldapr, java.lang.String name) throws IdentityException
updateDisplayName
in class LDAPRoleModule
IdentityException
public LDAPRoleImpl createRoleInstance(javax.naming.directory.Attributes attrs, java.lang.String dn) throws IdentityException
createRoleInstance
in class LDAPRoleModule
IdentityException
public Role findRoleByDN(java.lang.String dn) throws IdentityException, java.lang.IllegalArgumentException
LDAPRoleModule
findRoleByDN
in class LDAPRoleModule
IdentityException
java.lang.IllegalArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |