|
||||||||||
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.common.system.AbstractJBossService org.jboss.portal.core.modules.AbstractModule org.jboss.portal.core.impl.role.RoleModuleImpl
Field Summary | |
protected HibernateProvider |
hibernateProvider
. |
protected org.hibernate.SessionFactory |
sessionFactory
. |
Fields inherited from class org.jboss.portal.core.modules.AbstractModule |
JNDIName |
Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
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 | |
RoleModuleImpl()
|
Method Summary | |
Role |
createRole(java.lang.String name,
java.lang.String displayName)
Create a new role with the specified name. |
Role |
findRoleByDisplayName(java.lang.String displayName)
Retrieves a role by its displayname |
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 |
findRoleMembers(java.lang.String roleName,
int offset,
int limit,
java.lang.String userNameFilter)
Returns role members based on rolename |
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. |
protected org.hibernate.Session |
getCurrentSession()
Can be subclasses to provide testing in a non JTA environement. |
HibernateProvider |
getHibernateProvider()
|
int |
getRolesCount()
Returns the number of roles. |
void |
removeRole(java.lang.Object id)
Remove a role. |
void |
setHibernateProvider(HibernateProvider hibernateProvider)
|
protected void |
startService()
|
void |
stopService()
|
Methods inherited from class org.jboss.portal.core.modules.AbstractModule |
getJNDIName, setJNDIName |
Methods inherited from class org.jboss.portal.common.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 |
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 |
protected HibernateProvider hibernateProvider
protected org.hibernate.SessionFactory sessionFactory
Constructor Detail |
public RoleModuleImpl()
Method Detail |
protected void startService() throws java.lang.Exception
startService
in class AbstractModule
java.lang.Exception
public void stopService() throws java.lang.Exception
stopService
in class AbstractModule
java.lang.Exception
public HibernateProvider getHibernateProvider()
public void setHibernateProvider(HibernateProvider hibernateProvider)
public Role findRoleByName(java.lang.String name) throws ModuleException
RoleModule
findRoleByName
in interface RoleModule
name
- the role name
ModuleException
public java.util.Set findRolesByNames(java.lang.String[] names) throws ModuleException
RoleModule
findRolesByNames
in interface RoleModule
names
- the role names
ModuleException
public Role findRoleByDisplayName(java.lang.String displayName) throws ModuleException
RoleModule
findRoleByDisplayName
in interface RoleModule
ModuleException
public Role findRoleById(java.lang.String id) throws java.lang.IllegalArgumentException, ModuleException
RoleModule
findRoleById
in interface RoleModule
id
- the role id
java.lang.IllegalArgumentException
ModuleException
public Role findRoleById(java.lang.Object id) throws ModuleException
RoleModule
findRoleById
in interface RoleModule
id
- the role id
ModuleException
public Role createRole(java.lang.String name, java.lang.String displayName) throws ModuleException
RoleModule
createRole
in interface RoleModule
name
- the role namedisplayName
- the role display name
ModuleException
public void removeRole(java.lang.Object id) throws ModuleException
RoleModule
removeRole
in interface RoleModule
id
- the role id
ModuleException
public int getRolesCount() throws ModuleException
RoleModule
getRolesCount
in interface RoleModule
ModuleException
public java.util.Set findRoles() throws ModuleException
RoleModule
findRoles
in interface RoleModule
ModuleException
public java.util.Set findRoleMembers(java.lang.String roleName, int offset, int limit, java.lang.String userNameFilter) throws ModuleException
RoleModule
findRoleMembers
in interface RoleModule
roleName
- offset
- limit
-
ModuleException
protected org.hibernate.Session getCurrentSession()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |