Package com.soffid.iam.service
Class GroupServiceImpl
- java.lang.Object
-
- com.soffid.iam.service.GroupServiceBase
-
- com.soffid.iam.service.GroupServiceImpl
-
- All Implemented Interfaces:
com.soffid.iam.service.GroupService
public class GroupServiceImpl extends GroupServiceBase
- See Also:
GrupService
-
-
Constructor Summary
Constructors Constructor Description GroupServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgenerateQueryCurrent(String filter)protected StringgenerateQueryDate(String filter, Date d)protected voidhandleAddGroupToUser(String codiUsuari, String codiGrup)protected com.soffid.iam.api.GrouphandleCreate(com.soffid.iam.api.Group grup)protected com.soffid.iam.api.GroupUserhandleCreate(com.soffid.iam.api.GroupUser usuariGrup)protected com.soffid.iam.api.GrouphandleCreateHistoric(com.soffid.iam.api.Group grup)protected voidhandleDelete(com.soffid.iam.api.Group grup)protected voidhandleDelete(com.soffid.iam.api.GroupUser usuariGrup)protected com.soffid.iam.api.GrouphandleFindGroupByGroupName(String codi)protected com.soffid.iam.api.GrouphandleFindGroupByGroupNameAndDate(String codi, Date d)protected com.soffid.iam.api.GrouphandleFindGroupById(Long grupId)protected List<com.soffid.iam.api.Group>handleFindGroupByJsonQuery(String query)protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group>handleFindGroupByJsonQuery(String query, Integer first, Integer pageSize)protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>handleFindGroupByJsonQueryAsync(String query)protected List<com.soffid.iam.api.Group>handleFindGroupByText(String text)protected List<com.soffid.iam.api.Group>handleFindGroupByTextAndFilter(String text, String filter)protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group>handleFindGroupByTextAndFilter(String text, String filter, Integer first, Integer pageSize)protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>handleFindGroupByTextAndFilterAsync(String text, String filter)protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>handleFindGroupByTextAsync(String text)protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group>handleFindGroupHistoryByTextAndFilterAsync(String text, String filter, Date date)protected Collection<String>handleFindGroupNames()protected Collection<com.soffid.iam.api.Group>handleFindGroupsByFilter(String codi, String pare, String unitatOfimatica, String descripcio, String tipus, String obsolet)protected Collection<com.soffid.iam.api.Group>handleFindGroupsByFilter(String codi, String pare, String unitatOfimatica, String descripcio, String tipus, String obsolet, String servidorOfimatic, String seccioPressupostaria)protected Collection<com.soffid.iam.api.Group>handleFindGroupsByGroupsType(String tipusGrup)protected Collection<com.soffid.iam.api.Group>handleFindGroupsByUserName(String codiUsuari)protected Collection<com.soffid.iam.api.Group>handleFindGroupsFromRolesByUserName(String codiUsuari)protected Collection<com.soffid.iam.api.Group>handleFindGroupsFromUsersByUserName(String codiUsuari)protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.GroupUser>handleFindGroupUserByJsonQuery(String query, Integer startIndex, Integer count)protected com.soffid.iam.api.GrouphandleFindPrimaryGroupByUserName(String codiUsuari)protected Collection<com.soffid.iam.api.Group>handleFindSubgroupsByGroupName(String codiGrup)protected Collection<com.soffid.iam.api.Group>handleFindSubgroupsByGroupNameAndDate(String codiGrup, Date d)protected com.soffid.iam.api.GroupUserhandleFindUserGroupByUserNameAndGroupName(String codiUsuari, String codiGrup)protected Collection<com.soffid.iam.api.GroupUser>handleFindUserGroupHistoryByUserName(String userName)protected Collection<com.soffid.iam.api.GroupUser>handleFindUsersBelongtoGroupByGroupName(String codiGrup)protected Collection<com.soffid.iam.api.GroupUser>handleFindUsersBelongtoGroupByGroupName(String codiGrup, Date date)protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.GroupUser>handleFindUsersBelongtoGroupByGroupNameAsync(String codiGrup)protected Collection<com.soffid.iam.api.GroupUser>handleFindUsersGroupByUserName(String codiUsuari)protected Collection<com.soffid.iam.api.RoleAccount>handleFindUsersRolesDomainTypeAndUserGroups(String codiGrup)protected Collection<com.soffid.iam.api.RoleAccount>handleFindUsersRolesWithGroupByUserName(String codiUsuari)protected Collection<com.soffid.iam.api.Group>handleGetConselleriesAmbDireccionsGenerals()protected Collection<com.soffid.iam.api.Group>handleGetGroups()protected com.soffid.iam.api.HosthandleGetOfficeServer(com.soffid.iam.api.Group grup)protected Collection<com.soffid.iam.api.Group>handleGetParentList(String codiGrup)protected Collection<com.soffid.iam.api.Role>handleGetRolesFromGroup(com.soffid.iam.api.Group grup)protected Collection<com.soffid.iam.api.GroupRoles>handleGetRolesFromGroup(String codiGrup)protected Collection<com.soffid.iam.api.GroupRoles>handleGetRolesFromGroupAndParentGroup(com.soffid.iam.api.Group grup)protected com.soffid.iam.api.GrouphandleGetSuperGroup(String codiGrup)protected voidhandlePropagateRolsChangesToDispatcher(String grup)protected voidhandleRemoveGroupFormUser(String codiUsuari, String codiGrup)protected voidhandleSetSuperGroup(String codiSubGrup, String codiSuperGrup)protected com.soffid.iam.api.GrouphandleUpdate(com.soffid.iam.api.Group grup)protected com.soffid.iam.api.GroupUserhandleUpdate(com.soffid.iam.api.GroupUser usuariGrup)protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group>internalFindGroup(List<com.soffid.iam.api.Group> result, String text, String query, Integer first, Integer pageSize)-
Methods inherited from class com.soffid.iam.service.GroupServiceBase
addGroupToUser, create, create, createHistoric, delete, delete, findGroupByGroupName, findGroupByGroupNameAndDate, findGroupById, findGroupByJsonQuery, findGroupByJsonQuery, findGroupByJsonQueryAsync, findGroupByText, findGroupByTextAndFilter, findGroupByTextAndFilter, findGroupByTextAndFilterAsync, findGroupByTextAsync, findGroupHistoryByTextAndFilterAsync, findGroupNames, findGroupsByFilter, findGroupsByFilter, findGroupsByGroupsType, findGroupsByUserName, findGroupsFromRolesByUserName, findGroupsFromUsersByUserName, findGroupUserByJsonQuery, findPrimaryGroupByUserName, findSubgroupsByGroupName, findSubgroupsByGroupNameAndDate, findUserGroupByUserNameAndGroupName, findUserGroupHistoryByUserName, findUsersBelongtoGroupByGroupName, findUsersBelongtoGroupByGroupName, findUsersBelongtoGroupByGroupNameAsync, findUsersGroupByUserName, findUsersRolesDomainTypeAndUserGroups, findUsersRolesWithGroupByUserName, getApplicationService, getAsyncRunnerService, getAttributeValidationService, getAuthorizationService, getConfigEntityDao, getConselleriesAmbDireccionsGenerals, getGroupAttributeEntityDao, getGroupEntityDao, getGroups, getHostEntityDao, getMetaDataEntityDao, getOfficeServer, getParentList, getPrincipal, getRoleAccountEntityDao, getRoleEntityDao, getRoleGroupEntityDao, getRolesFromGroup, getRolesFromGroup, getRolesFromGroupAndParentGroup, getRuleEvaluatorService, getSuperGroup, getTaskEntityDao, getUserEntityDao, getUserGroupAttributeEntityDao, getUserGroupEntityDao, getUserService, propagateRolsChangesToDispatcher, removeGroupFormUser, setApplicationService, setAsyncRunnerService, setAttributeValidationService, setAuthorizationService, setConfigEntityDao, setGroupAttributeEntityDao, setGroupEntityDao, setHostEntityDao, setMetaDataEntityDao, setRoleAccountEntityDao, setRoleEntityDao, setRoleGroupEntityDao, setRuleEvaluatorService, setSuperGroup, setTaskEntityDao, setUserEntityDao, setUserGroupAttributeEntityDao, setUserGroupEntityDao, setUserService, update, update
-
-
-
-
Method Detail
-
handleGetConselleriesAmbDireccionsGenerals
protected Collection<com.soffid.iam.api.Group> handleGetConselleriesAmbDireccionsGenerals() throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleGetConselleriesAmbDireccionsGeneralsin classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException- See Also:
es.caib.seycon.ng.servei.GrupService#createGrup(es.caib.seycon.ng.comu.Grup)
-
handleFindSubgroupsByGroupName
protected Collection<com.soffid.iam.api.Group> handleFindSubgroupsByGroupName(String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleFindSubgroupsByGroupNamein classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindSubgroupsByGroupNameAndDate
protected Collection<com.soffid.iam.api.Group> handleFindSubgroupsByGroupNameAndDate(String codiGrup, Date d) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleFindSubgroupsByGroupNameAndDatein classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetParentList
protected Collection<com.soffid.iam.api.Group> handleGetParentList(String codiGrup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleGetParentListin classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindGroupsByGroupsType
protected Collection<com.soffid.iam.api.Group> handleFindGroupsByGroupsType(String tipusGrup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleFindGroupsByGroupsTypein classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleGetOfficeServer
protected com.soffid.iam.api.Host handleGetOfficeServer(com.soffid.iam.api.Group grup) throws Exception- Specified by:
handleGetOfficeServerin classGroupServiceBase- Throws:
Exception
-
handleGetGroups
protected Collection<com.soffid.iam.api.Group> handleGetGroups() throws Exception
- Specified by:
handleGetGroupsin classGroupServiceBase- Throws:
Exception- See Also:
GrupService.getGrups()
-
handleFindGroupByGroupName
protected com.soffid.iam.api.Group handleFindGroupByGroupName(String codi) throws Exception
- Specified by:
handleFindGroupByGroupNamein classGroupServiceBase- Throws:
Exception- See Also:
es.caib.seycon.ng.servei.GrupService#findGrupByCodi(java.lang.String)
-
handleFindGroupByGroupNameAndDate
protected com.soffid.iam.api.Group handleFindGroupByGroupNameAndDate(String codi, Date d) throws Exception
- Specified by:
handleFindGroupByGroupNameAndDatein classGroupServiceBase- Throws:
Exception
-
handleSetSuperGroup
protected void handleSetSuperGroup(String codiSubGrup, String codiSuperGrup) throws Exception
- Specified by:
handleSetSuperGroupin classGroupServiceBase- Throws:
Exception
-
handleCreate
protected com.soffid.iam.api.Group handleCreate(com.soffid.iam.api.Group grup) throws Exception- Specified by:
handleCreatein classGroupServiceBase- Throws:
Exception
-
handleDelete
protected void handleDelete(com.soffid.iam.api.Group grup) throws Exception- Specified by:
handleDeletein classGroupServiceBase- Throws:
Exception
-
handleFindGroupsByFilter
protected Collection<com.soffid.iam.api.Group> handleFindGroupsByFilter(String codi, String pare, String unitatOfimatica, String descripcio, String tipus, String obsolet) throws Exception
- Specified by:
handleFindGroupsByFilterin classGroupServiceBase- Throws:
Exception
-
handleFindGroupsByFilter
protected Collection<com.soffid.iam.api.Group> handleFindGroupsByFilter(String codi, String pare, String unitatOfimatica, String descripcio, String tipus, String obsolet, String servidorOfimatic, String seccioPressupostaria) throws Exception
- Specified by:
handleFindGroupsByFilterin classGroupServiceBase- Throws:
Exception
-
handleUpdate
protected com.soffid.iam.api.Group handleUpdate(com.soffid.iam.api.Group grup) throws Exception- Specified by:
handleUpdatein classGroupServiceBase- Throws:
Exception
-
handleCreateHistoric
protected com.soffid.iam.api.Group handleCreateHistoric(com.soffid.iam.api.Group grup) throws Exception- Specified by:
handleCreateHistoricin classGroupServiceBase- Throws:
Exception
-
handleAddGroupToUser
protected void handleAddGroupToUser(String codiUsuari, String codiGrup) throws Exception
- Specified by:
handleAddGroupToUserin classGroupServiceBase- Throws:
Exception
-
handleRemoveGroupFormUser
protected void handleRemoveGroupFormUser(String codiUsuari, String codiGrup) throws Exception
- Specified by:
handleRemoveGroupFormUserin classGroupServiceBase- Throws:
Exception
-
handleFindPrimaryGroupByUserName
protected com.soffid.iam.api.Group handleFindPrimaryGroupByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindPrimaryGroupByUserNamein classGroupServiceBase- Throws:
Exception
-
handleFindGroupsByUserName
protected Collection<com.soffid.iam.api.Group> handleFindGroupsByUserName(String codiUsuari) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleFindGroupsByUserNamein classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindGroupsFromRolesByUserName
protected Collection<com.soffid.iam.api.Group> handleFindGroupsFromRolesByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindGroupsFromRolesByUserNamein classGroupServiceBase- Throws:
Exception
-
handleFindGroupsFromUsersByUserName
protected Collection<com.soffid.iam.api.Group> handleFindGroupsFromUsersByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindGroupsFromUsersByUserNamein classGroupServiceBase- Throws:
Exception
-
handleCreate
protected com.soffid.iam.api.GroupUser handleCreate(com.soffid.iam.api.GroupUser usuariGrup) throws Exception- Specified by:
handleCreatein classGroupServiceBase- Throws:
Exception
-
handleDelete
protected void handleDelete(com.soffid.iam.api.GroupUser usuariGrup) throws Exception- Specified by:
handleDeletein classGroupServiceBase- Throws:
Exception
-
handleUpdate
protected com.soffid.iam.api.GroupUser handleUpdate(com.soffid.iam.api.GroupUser usuariGrup) throws Exception- Specified by:
handleUpdatein classGroupServiceBase- Throws:
Exception
-
handleFindUserGroupByUserNameAndGroupName
protected com.soffid.iam.api.GroupUser handleFindUserGroupByUserNameAndGroupName(String codiUsuari, String codiGrup) throws Exception
- Specified by:
handleFindUserGroupByUserNameAndGroupNamein classGroupServiceBase- Throws:
Exception
-
handleGetSuperGroup
protected com.soffid.iam.api.Group handleGetSuperGroup(String codiGrup) throws Exception
- Specified by:
handleGetSuperGroupin classGroupServiceBase- Throws:
Exception
-
handleFindUsersRolesWithGroupByUserName
protected Collection<com.soffid.iam.api.RoleAccount> handleFindUsersRolesWithGroupByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindUsersRolesWithGroupByUserNamein classGroupServiceBase- Throws:
Exception
-
handleFindUsersGroupByUserName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUsersGroupByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindUsersGroupByUserNamein classGroupServiceBase- Throws:
Exception
-
handleFindUsersBelongtoGroupByGroupName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupName(String codiGrup) throws Exception
- Specified by:
handleFindUsersBelongtoGroupByGroupNamein classGroupServiceBase- Throws:
Exception
-
handleFindUsersBelongtoGroupByGroupName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupName(String codiGrup, Date date) throws Exception
- Specified by:
handleFindUsersBelongtoGroupByGroupNamein classGroupServiceBase- Throws:
Exception
-
handleFindGroupById
protected com.soffid.iam.api.Group handleFindGroupById(Long grupId) throws Exception
- Specified by:
handleFindGroupByIdin classGroupServiceBase- Throws:
Exception
-
handleGetRolesFromGroup
protected Collection<com.soffid.iam.api.Role> handleGetRolesFromGroup(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleGetRolesFromGroupin classGroupServiceBase- Throws:
Exception
-
handleGetRolesFromGroup
protected Collection<com.soffid.iam.api.GroupRoles> handleGetRolesFromGroup(String codiGrup) throws Exception
- Specified by:
handleGetRolesFromGroupin classGroupServiceBase- Throws:
Exception
-
handleFindUsersRolesDomainTypeAndUserGroups
protected Collection<com.soffid.iam.api.RoleAccount> handleFindUsersRolesDomainTypeAndUserGroups(String codiGrup) throws Exception
- Specified by:
handleFindUsersRolesDomainTypeAndUserGroupsin classGroupServiceBase- Throws:
Exception
-
handleGetRolesFromGroupAndParentGroup
protected Collection<com.soffid.iam.api.GroupRoles> handleGetRolesFromGroupAndParentGroup(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleGetRolesFromGroupAndParentGroupin classGroupServiceBase- Throws:
Exception
-
handlePropagateRolsChangesToDispatcher
protected void handlePropagateRolsChangesToDispatcher(String grup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handlePropagateRolsChangesToDispatcherin classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindGroupByTextAndFilterAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByTextAndFilterAsync(String text, String filter) throws Exception
- Specified by:
handleFindGroupByTextAndFilterAsyncin classGroupServiceBase- Throws:
Exception
-
handleFindGroupHistoryByTextAndFilterAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupHistoryByTextAndFilterAsync(String text, String filter, Date date) throws Exception
- Specified by:
handleFindGroupHistoryByTextAndFilterAsyncin classGroupServiceBase- Throws:
Exception
-
handleFindGroupByTextAndFilter
protected List<com.soffid.iam.api.Group> handleFindGroupByTextAndFilter(String text, String filter) throws Exception
- Specified by:
handleFindGroupByTextAndFilterin classGroupServiceBase- Throws:
Exception
-
handleFindGroupByTextAndFilter
protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> handleFindGroupByTextAndFilter(String text, String filter, Integer first, Integer pageSize) throws Exception
- Specified by:
handleFindGroupByTextAndFilterin classGroupServiceBase- Throws:
Exception
-
handleFindGroupByText
protected List<com.soffid.iam.api.Group> handleFindGroupByText(String text) throws Exception
- Specified by:
handleFindGroupByTextin classGroupServiceBase- Throws:
Exception
-
handleFindGroupByTextAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByTextAsync(String text) throws Exception
- Specified by:
handleFindGroupByTextAsyncin classGroupServiceBase- Throws:
Exception
-
internalFindGroup
protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> internalFindGroup(List<com.soffid.iam.api.Group> result, String text, String query, Integer first, Integer pageSize) throws com.soffid.scimquery.EvalException, es.caib.seycon.ng.exception.InternalErrorException, UnsupportedEncodingException, ClassNotFoundException, org.json.JSONException, com.soffid.scimquery.parser.ParseException, com.soffid.scimquery.parser.TokenMgrError, InterruptedException, ExecutionException
- Throws:
com.soffid.scimquery.EvalExceptiones.caib.seycon.ng.exception.InternalErrorExceptionUnsupportedEncodingExceptionClassNotFoundExceptionorg.json.JSONExceptioncom.soffid.scimquery.parser.ParseExceptioncom.soffid.scimquery.parser.TokenMgrErrorInterruptedExceptionExecutionException
-
handleFindGroupByJsonQuery
protected List<com.soffid.iam.api.Group> handleFindGroupByJsonQuery(String query) throws es.caib.seycon.ng.exception.InternalErrorException, Exception
- Specified by:
handleFindGroupByJsonQueryin classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptionException
-
handleFindGroupByJsonQuery
protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.Group> handleFindGroupByJsonQuery(String query, Integer first, Integer pageSize) throws es.caib.seycon.ng.exception.InternalErrorException, Exception
- Specified by:
handleFindGroupByJsonQueryin classGroupServiceBase- Throws:
es.caib.seycon.ng.exception.InternalErrorExceptionException
-
handleFindGroupByJsonQueryAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByJsonQueryAsync(String query) throws Exception
- Specified by:
handleFindGroupByJsonQueryAsyncin classGroupServiceBase- Throws:
Exception
-
handleFindGroupNames
protected Collection<String> handleFindGroupNames() throws Exception
- Specified by:
handleFindGroupNamesin classGroupServiceBase- Throws:
Exception
-
handleFindUsersBelongtoGroupByGroupNameAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupNameAsync(String codiGrup) throws Exception
- Specified by:
handleFindUsersBelongtoGroupByGroupNameAsyncin classGroupServiceBase- Throws:
Exception
-
handleFindUserGroupHistoryByUserName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUserGroupHistoryByUserName(String userName) throws Exception
- Specified by:
handleFindUserGroupHistoryByUserNamein classGroupServiceBase- Throws:
Exception
-
handleFindGroupUserByJsonQuery
protected com.soffid.iam.api.PagedResult<com.soffid.iam.api.GroupUser> handleFindGroupUserByJsonQuery(String query, Integer startIndex, Integer count) throws Exception
- Specified by:
handleFindGroupUserByJsonQueryin classGroupServiceBase- Throws:
Exception
-
-