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 String
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
-
Constructor Summary
Constructors Constructor Description GroupServiceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroupToUser(String codiUsuari, String codiGrup)
com.soffid.iam.api.Group
create(com.soffid.iam.api.Group grup)
com.soffid.iam.api.GroupUser
create(com.soffid.iam.api.GroupUser usuariGrup)
void
delete(com.soffid.iam.api.Group grup)
void
delete(com.soffid.iam.api.GroupUser usuariGrup)
void
ejbCreate()
Initizlizes beenvoid
ejbRemove()
com.soffid.iam.api.Group
findGroupByGroupName(String codi)
com.soffid.iam.api.Group
findGroupByGroupNameAndDate(String codi, Date date)
com.soffid.iam.api.Group
findGroupById(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.BeanFactory
getBeanFactory()
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.SessionContext
getSessionContext()
com.soffid.iam.api.Group
getSuperGroup(String codiGrup)
protected void
onEjbCreate()
protected void
onEjbRemove()
void
removeGroupFormUser(String codiUsuari, String codiGrup)
void
setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
void
setBeanFactoryLocatorKey(String arg0)
void
setSessionContext(javax.ejb.SessionContext sessionContext)
Override default BeanFactoryLocator implementation to provide singleton loading of the application context Bean factory.com.soffid.iam.api.Group
update(com.soffid.iam.api.Group grup)
com.soffid.iam.api.GroupUser
update(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:
findGroupByJsonQueryAsync
in 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:
findGroupByTextAndFilterAsync
in 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:
findGroupByTextAsync
in 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:
findGroupHistoryByTextAndFilterAsync
in 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:
findUsersBelongtoGroupByGroupNameAsync
in 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:
findGroupByJsonQuery
in 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:
findGroupByTextAndFilter
in 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:
findGroupUserByJsonQuery
in 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:
create
in 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:
findGroupByGroupNameAndDate
in 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:
findGroupByGroupName
in 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:
findGroupById
in 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:
getSuperGroup
in 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:
update
in 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:
create
in 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:
update
in 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:
findGroupsByFilter
in 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:
findUsersRolesDomainTypeAndUserGroups
in 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:
findSubgroupsByGroupName
in 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:
findSubgroupsByGroupNameAndDate
in 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:
findUserGroupHistoryByUserName
in 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:
findUsersGroupByUserName
in 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:
findUsersBelongtoGroupByGroupName
in 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:
findUsersBelongtoGroupByGroupName
in 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:
getConselleriesAmbDireccionsGenerals
in 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:
getParentList
in 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:
getRolesFromGroup
in 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:
getRolesFromGroupAndParentGroup
in 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:
findGroupByJsonQuery
in 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:
findGroupByText
in 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:
findGroupByTextAndFilter
in 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:
addGroupToUser
in 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:
delete
in 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:
delete
in 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:
removeGroupFormUser
in 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:
ejbCreate
in classorg.springframework.ejb.support.AbstractStatelessSessionBean
- Throws:
javax.ejb.CreateException
- See Also:
AbstractStatelessSessionBean.onEjbCreate()
-
onEjbCreate
protected void onEjbCreate()
- Specified by:
onEjbCreate
in 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:
setSessionContext
in interfacejavax.ejb.SessionBean
- See Also:
SessionBean.setSessionContext(javax.ejb.SessionContext)
-
getSessionContext
public final javax.ejb.SessionContext getSessionContext()
- Specified by:
getSessionContext
in 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()
-
-