Package com.soffid.iam.service.ejb
Class GroupServiceBean
- java.lang.Object
-
- org.springframework.ejb.support.AbstractStatelessSessionBean
-
- com.soffid.iam.service.ejb.GroupServiceBean
-
- All Implemented Interfaces:
com.soffid.iam.service.ejb.GroupService,Serializable,javax.ejb.EnterpriseBean,javax.ejb.SessionBean,org.springframework.ejb.support.SmartSessionBean
public class GroupServiceBean extends org.springframework.ejb.support.AbstractStatelessSessionBean implements com.soffid.iam.service.ejb.GroupService- See Also:
com.soffid.iam.service.GroupService,,es.caib.seycon.ng.servei.GrupService,, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description GroupServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddGroupToUser(String codiUsuari, String codiGrup)com.soffid.iam.api.Groupcreate(com.soffid.iam.api.Group grup)com.soffid.iam.api.GroupUsercreate(com.soffid.iam.api.GroupUser usuariGrup)voiddelete(com.soffid.iam.api.Group grup)voiddelete(com.soffid.iam.api.GroupUser usuariGrup)voidejbCreate()Initizlizes beenvoidejbRemove()com.soffid.iam.api.GroupfindGroupByGroupName(String codi)com.soffid.iam.api.GroupfindGroupByGroupNameAndDate(String codi, Date date)com.soffid.iam.api.GroupfindGroupById(Long grupId)List<com.soffid.iam.api.Group>findGroupByJsonQuery(String query)com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group>findGroupByJsonQuery(String query, Integer startIndex, Integer count)com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>findGroupByJsonQueryAsync(String query)List<com.soffid.iam.api.Group>findGroupByText(String text)List<com.soffid.iam.api.Group>findGroupByTextAndFilter(String text, String filter)com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group>findGroupByTextAndFilter(String text, String filter, Integer first, Integer pageSize)com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>findGroupByTextAndFilterAsync(String text, String filter)com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>findGroupByTextAsync(String text)com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>findGroupHistoryByTextAndFilterAsync(String text, String filter, Date date)Collection<com.soffid.iam.api.Group>findGroupsByFilter(String codi, String pare, String unitatOfimatica, String descripcio, String tipus, String obsolet, String servidorOfimatic, String seccioPressupostaria)com.soffid.iam.api.PagedResult<com.soffid.iam.api.GroupUser>findGroupUserByJsonQuery(String query, Integer startIndex, Integer count)Collection<com.soffid.iam.api.Group>findSubgroupsByGroupName(String codi)Collection<com.soffid.iam.api.Group>findSubgroupsByGroupNameAndDate(String codi, Date date)Collection<com.soffid.iam.api.GroupUser>findUserGroupHistoryByUserName(String userName)Collection<com.soffid.iam.api.GroupUser>findUsersBelongtoGroupByGroupName(String codiGrup)Collection<com.soffid.iam.api.GroupUser>findUsersBelongtoGroupByGroupName(String codiGrup, Date date)com.soffid.iam.api.AsyncList<com.soffid.iam.api.GroupUser>findUsersBelongtoGroupByGroupNameAsync(String codiGrup)Collection<com.soffid.iam.api.GroupUser>findUsersGroupByUserName(String codiUsuari)Collection<com.soffid.iam.api.RoleAccount>findUsersRolesDomainTypeAndUserGroups(String codiGrup)protected org.springframework.beans.factory.BeanFactorygetBeanFactory()Collection<com.soffid.iam.api.Group>getConselleriesAmbDireccionsGenerals()Collection<com.soffid.iam.api.Group>getParentList(String codiGrup)Collection<com.soffid.iam.api.Role>getRolesFromGroup(com.soffid.iam.api.Group grup)Collection<com.soffid.iam.api.GroupRoles>getRolesFromGroupAndParentGroup(com.soffid.iam.api.Group grup)javax.ejb.SessionContextgetSessionContext()com.soffid.iam.api.GroupgetSuperGroup(String codiGrup)protected voidonEjbCreate()protected voidonEjbRemove()voidremoveGroupFormUser(String codiUsuari, String codiGrup)voidsetBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)voidsetBeanFactoryLocatorKey(String arg0)voidsetSessionContext(javax.ejb.SessionContext sessionContext)Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.com.soffid.iam.api.Groupupdate(com.soffid.iam.api.Group grup)com.soffid.iam.api.GroupUserupdate(com.soffid.iam.api.GroupUser usuariGrup)-
Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean
ejbActivate, ejbPassivate
-
-
-
-
Field Detail
-
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
public static final String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
findGroupByJsonQueryAsync
@PermitAll public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupByJsonQueryAsync(String query) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByJsonQueryAsyncin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByTextAndFilterAsync
@PermitAll public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupByTextAndFilterAsync(String text, String filter) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByTextAndFilterAsyncin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByTextAsync
@PermitAll public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupByTextAsync(String text) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByTextAsyncin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupHistoryByTextAndFilterAsync
@PermitAll public com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> findGroupHistoryByTextAndFilterAsync(String text, String filter, Date date) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupHistoryByTextAndFilterAsyncin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUsersBelongtoGroupByGroupNameAsync
@PermitAll public com.soffid.iam.api.AsyncList<com.soffid.iam.api.GroupUser> findUsersBelongtoGroupByGroupNameAsync(String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUsersBelongtoGroupByGroupNameAsyncin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByJsonQuery
@PermitAll public com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> findGroupByJsonQuery(String query, Integer startIndex, Integer count) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByJsonQueryin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByTextAndFilter
@PermitAll public com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> findGroupByTextAndFilter(String text, String filter, Integer first, Integer pageSize) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByTextAndFilterin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupUserByJsonQuery
@PermitAll public com.soffid.iam.api.PagedResult<com.soffid.iam.api.GroupUser> findGroupUserByJsonQuery(String query, Integer startIndex, Integer count) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupUserByJsonQueryin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll public com.soffid.iam.api.Group create(com.soffid.iam.api.Group grup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByGroupNameAndDate
@PermitAll public com.soffid.iam.api.Group findGroupByGroupNameAndDate(String codi, Date date) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByGroupNameAndDatein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByGroupName
@PermitAll public com.soffid.iam.api.Group findGroupByGroupName(String codi) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByGroupNamein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupById
@PermitAll public com.soffid.iam.api.Group findGroupById(Long grupId) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByIdin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getSuperGroup
@PermitAll public com.soffid.iam.api.Group getSuperGroup(String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getSuperGroupin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll public com.soffid.iam.api.Group update(com.soffid.iam.api.Group grup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updatein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
create
@PermitAll public com.soffid.iam.api.GroupUser create(com.soffid.iam.api.GroupUser usuariGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
createin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
update
@PermitAll public com.soffid.iam.api.GroupUser update(com.soffid.iam.api.GroupUser usuariGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
updatein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupsByFilter
@PermitAll public Collection<com.soffid.iam.api.Group> findGroupsByFilter(String codi, String pare, String unitatOfimatica, String descripcio, String tipus, String obsolet, String servidorOfimatic, String seccioPressupostaria) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupsByFilterin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUsersRolesDomainTypeAndUserGroups
@PermitAll public Collection<com.soffid.iam.api.RoleAccount> findUsersRolesDomainTypeAndUserGroups(String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUsersRolesDomainTypeAndUserGroupsin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findSubgroupsByGroupName
@PermitAll public Collection<com.soffid.iam.api.Group> findSubgroupsByGroupName(String codi) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findSubgroupsByGroupNamein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findSubgroupsByGroupNameAndDate
@PermitAll public Collection<com.soffid.iam.api.Group> findSubgroupsByGroupNameAndDate(String codi, Date date) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findSubgroupsByGroupNameAndDatein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUserGroupHistoryByUserName
@PermitAll public Collection<com.soffid.iam.api.GroupUser> findUserGroupHistoryByUserName(String userName) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUserGroupHistoryByUserNamein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUsersGroupByUserName
@PermitAll public Collection<com.soffid.iam.api.GroupUser> findUsersGroupByUserName(String codiUsuari) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUsersGroupByUserNamein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUsersBelongtoGroupByGroupName
@PermitAll public Collection<com.soffid.iam.api.GroupUser> findUsersBelongtoGroupByGroupName(String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUsersBelongtoGroupByGroupNamein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findUsersBelongtoGroupByGroupName
@PermitAll public Collection<com.soffid.iam.api.GroupUser> findUsersBelongtoGroupByGroupName(String codiGrup, Date date) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findUsersBelongtoGroupByGroupNamein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getConselleriesAmbDireccionsGenerals
@PermitAll public Collection<com.soffid.iam.api.Group> getConselleriesAmbDireccionsGenerals() throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getConselleriesAmbDireccionsGeneralsin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getParentList
@PermitAll public Collection<com.soffid.iam.api.Group> getParentList(String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getParentListin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getRolesFromGroup
@PermitAll public Collection<com.soffid.iam.api.Role> getRolesFromGroup(com.soffid.iam.api.Group grup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getRolesFromGroupin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getRolesFromGroupAndParentGroup
@PermitAll public Collection<com.soffid.iam.api.GroupRoles> getRolesFromGroupAndParentGroup(com.soffid.iam.api.Group grup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
getRolesFromGroupAndParentGroupin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByJsonQuery
@PermitAll public List<com.soffid.iam.api.Group> findGroupByJsonQuery(String query) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByJsonQueryin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByText
@PermitAll public List<com.soffid.iam.api.Group> findGroupByText(String text) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByTextin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
findGroupByTextAndFilter
@PermitAll public List<com.soffid.iam.api.Group> findGroupByTextAndFilter(String text, String filter) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
findGroupByTextAndFilterin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
addGroupToUser
@PermitAll public void addGroupToUser(String codiUsuari, String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
addGroupToUserin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
delete
@PermitAll public void delete(com.soffid.iam.api.Group grup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
deletein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
delete
@PermitAll public void delete(com.soffid.iam.api.GroupUser usuariGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException- Specified by:
deletein interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
removeGroupFormUser
@PermitAll public void removeGroupFormUser(String codiUsuari, String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException, es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
removeGroupFormUserin interfacecom.soffid.iam.service.ejb.GroupService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
ejbCreate
@PostConstruct public void ejbCreate() throws javax.ejb.CreateException
Initizlizes been- Overrides:
ejbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean- Throws:
javax.ejb.CreateException- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreatein classorg.springframework.ejb.support.AbstractStatelessSessionBean
-
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.- Specified by:
setSessionContextin interfacejavax.ejb.SessionBean- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContextin interfaceorg.springframework.ejb.support.SmartSessionBean
-
setBeanFactoryLocator
public void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
-
setBeanFactoryLocatorKey
public void setBeanFactoryLocatorKey(String arg0)
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
ejbRemove
public void ejbRemove()
-
onEjbRemove
protected void onEjbRemove()
-
-