当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
LDAPExtRoleModuleImpl - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.identity2.ldap
Class LDAPExtRoleModuleImpl
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
org.jboss.portal.identity2.ldap.LDAPExtRoleModuleImpl
- All Implemented Interfaces:
- javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, RoleModule, org.jboss.system.Service, org.jboss.system.ServiceMBean
- public class LDAPExtRoleModuleImpl
- extends LDAPRoleModuleImpl
- Version:
- $Revision: 1.1 $
- Author:
- Boleslaw Dawidowicz
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 |
Method Summary |
Role |
createRole(java.lang.String name,
java.lang.String displayName)
Create a new role with the specified name. |
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. |
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 |
LDAPExtRoleModuleImpl
public LDAPExtRoleModuleImpl()
findRoleByName
public Role findRoleByName(java.lang.String name)
throws IdentityException,
java.lang.IllegalArgumentException
- Description copied from interface:
RoleModule
- Retrieves a role by its name
- Specified by:
findRoleByName
in interface RoleModule
- Overrides:
findRoleByName
in class LDAPRoleModuleImpl
- Throws:
IdentityException
java.lang.IllegalArgumentException
findRolesByNames
public java.util.Set findRolesByNames(java.lang.String[] names)
throws IdentityException,
java.lang.IllegalArgumentException
- Description copied from interface:
RoleModule
- Retrieve a collection of role from the role names.
- Specified by:
findRolesByNames
in interface RoleModule
- Overrides:
findRolesByNames
in class LDAPRoleModuleImpl
- Throws:
IdentityException
java.lang.IllegalArgumentException
findRoleById
public Role findRoleById(java.lang.Object id)
throws IdentityException,
java.lang.IllegalArgumentException
- Description copied from interface:
RoleModule
- Retrieves a role by its id.
- Specified by:
findRoleById
in interface RoleModule
- Overrides:
findRoleById
in class LDAPRoleModuleImpl
- Throws:
IdentityException
java.lang.IllegalArgumentException
findRoleById
public Role findRoleById(java.lang.String id)
throws IdentityException,
java.lang.IllegalArgumentException
- Description copied from interface:
RoleModule
- Retrieves a role by its id.
- Specified by:
findRoleById
in interface RoleModule
- Overrides:
findRoleById
in class LDAPRoleModuleImpl
- Throws:
IdentityException
java.lang.IllegalArgumentException
createRole
public Role createRole(java.lang.String name,
java.lang.String displayName)
throws IdentityException,
java.lang.IllegalArgumentException
- Description copied from interface:
RoleModule
- Create a new role with the specified name.
- Specified by:
createRole
in interface RoleModule
- Overrides:
createRole
in class LDAPRoleModuleImpl
- Throws:
IdentityException
java.lang.IllegalArgumentException
removeRole
public void removeRole(java.lang.Object id)
throws IdentityException,
java.lang.IllegalArgumentException
- Description copied from interface:
RoleModule
- Remove a role.
- Specified by:
removeRole
in interface RoleModule
- Overrides:
removeRole
in class LDAPRoleModuleImpl
- Throws:
IdentityException
java.lang.IllegalArgumentException
getRolesCount
public int getRolesCount()
throws IdentityException
- Description copied from interface:
RoleModule
- Returns the number of roles.
- Specified by:
getRolesCount
in interface RoleModule
- Overrides:
getRolesCount
in class LDAPRoleModuleImpl
- Throws:
IdentityException
findRoles
public java.util.Set findRoles()
throws IdentityException
- Description copied from interface:
RoleModule
- Get all the roles
- Specified by:
findRoles
in interface RoleModule
- Overrides:
findRoles
in class LDAPRoleModuleImpl
- Throws:
IdentityException