|
|||||||||
| Home >> All >> org >> jeteam >> bean >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jeteam.bean.security
Class RoleServiceBeanImpl

java.lang.Objectorg.jeteam.bean.security.RoleServiceBean
org.jeteam.bean.security.RoleServiceBeanImpl
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- public class RoleServiceBeanImpl
- extends RoleServiceBean
- implements javax.ejb.SessionBean
- extends RoleServiceBean
| Field Summary | |
private javax.ejb.SessionContext |
context
|
| Constructor Summary | |
RoleServiceBeanImpl()
|
|
| Method Summary | |
void |
addPrivilege(RoleDTO role,
PrivilegeDTO privilege)
Associates a privilege to the role. |
void |
clearPrivileges(RoleDTO role)
Removes all privileges associated to this role, only the relationships will be removed; the privileges will not be touched. |
RoleDTO |
createRole(RoleDTO role)
Creates a new role. |
void |
ejbActivate()
|
void |
ejbPassivate()
|
void |
ejbRemove()
|
PrivilegeDTO[] |
getPrivileges(RoleDTO role)
Returns a collection of all privileges associated to this role. |
RoleDTO[] |
getRoles()
Returns all roles in the data source. |
org.jeteam.bean.user.UserDTO[] |
getUsers(RoleDTO role)
Returns all the users implementing the role. |
void |
removePrivilege(RoleDTO role,
PrivilegeDTO privilege)
Removing a privilege from a role will result in removing the privilege from the relationship, it will not be deleted. |
void |
removeRole(RoleDTO role)
Removes a role from the data source. |
void |
setPrivileges(RoleDTO role,
PrivilegeDTO[] privileges)
Sets the privileges associated to the argument role, the previous set of privileges will be cleared. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
updateRole(RoleDTO role)
Updates the properties of the role. |
| Methods inherited from class org.jeteam.bean.security.RoleServiceBean |
ejbCreate, ejbPostCreate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
context
private javax.ejb.SessionContext context
| Constructor Detail |
RoleServiceBeanImpl
public RoleServiceBeanImpl()
| Method Detail |
createRole
public RoleDTO createRole(RoleDTO role) throws RoleException
- Description copied from class:
RoleServiceBean Creates a new role. The name must be unique.
- Specified by:
createRolein classRoleServiceBean
removeRole
public void removeRole(RoleDTO role) throws RoleException
- Description copied from class:
RoleServiceBean Removes a role from the data source.
- Specified by:
removeRolein classRoleServiceBean
getRoles
public RoleDTO[] getRoles() throws RoleException
- Description copied from class:
RoleServiceBean Returns all roles in the data source.
- Specified by:
getRolesin classRoleServiceBean
addPrivilege
public void addPrivilege(RoleDTO role, PrivilegeDTO privilege) throws RoleException
- Description copied from class:
RoleServiceBean Associates a privilege to the role.
- Specified by:
addPrivilegein classRoleServiceBean
removePrivilege
public void removePrivilege(RoleDTO role, PrivilegeDTO privilege) throws RoleException
- Description copied from class:
RoleServiceBean Removing a privilege from a role will result in removing the privilege from the relationship, it will not be deleted.
- Specified by:
removePrivilegein classRoleServiceBean
getPrivileges
public PrivilegeDTO[] getPrivileges(RoleDTO role) throws RoleException
- Description copied from class:
RoleServiceBean Returns a collection of all privileges associated to this role.
- Specified by:
getPrivilegesin classRoleServiceBean
clearPrivileges
public void clearPrivileges(RoleDTO role) throws RoleException
- Description copied from class:
RoleServiceBean Removes all privileges associated to this role, only the relationships will be removed; the privileges will not be touched.
- Specified by:
clearPrivilegesin classRoleServiceBean
getUsers
public org.jeteam.bean.user.UserDTO[] getUsers(RoleDTO role) throws RoleException
- Description copied from class:
RoleServiceBean Returns all the users implementing the role.
- Specified by:
getUsersin classRoleServiceBean
updateRole
public void updateRole(RoleDTO role) throws RoleException
- Description copied from class:
RoleServiceBean Updates the properties of the role. The name can be changed but must remain unique in the set of all roles.
- Specified by:
updateRolein classRoleServiceBean
setPrivileges
public void setPrivileges(RoleDTO role, PrivilegeDTO[] privileges) throws RoleException
- Description copied from class:
RoleServiceBean Sets the privileges associated to the argument role, the previous set of privileges will be cleared.
- Specified by:
setPrivilegesin classRoleServiceBean
setSessionContext
public void setSessionContext(javax.ejb.SessionContext ctx)
- Specified by:
setSessionContextin interfacejavax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemovein interfacejavax.ejb.SessionBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivatein interfacejavax.ejb.SessionBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivatein interfacejavax.ejb.SessionBean
|
|||||||||
| Home >> All >> org >> jeteam >> bean >> [ security overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC