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 String
generateQueryCurrent(String filter)
protected String
generateQueryDate(String filter, Date d)
protected void
handleAddGroupToUser(String codiUsuari, String codiGrup)
protected com.soffid.iam.api.Group
handleCreate(com.soffid.iam.api.Group grup)
protected com.soffid.iam.api.GroupUser
handleCreate(com.soffid.iam.api.GroupUser usuariGrup)
protected com.soffid.iam.api.Group
handleCreateHistoric(com.soffid.iam.api.Group grup)
protected void
handleDelete(com.soffid.iam.api.Group grup)
protected void
handleDelete(com.soffid.iam.api.GroupUser usuariGrup)
protected com.soffid.iam.api.Group
handleFindGroupByGroupName(String codi)
protected com.soffid.iam.api.Group
handleFindGroupByGroupNameAndDate(String codi, Date d)
protected com.soffid.iam.api.Group
handleFindGroupById(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.Group
handleFindPrimaryGroupByUserName(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.GroupUser
handleFindUserGroupByUserNameAndGroupName(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.Host
handleGetOfficeServer(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.Group
handleGetSuperGroup(String codiGrup)
protected void
handlePropagateRolsChangesToDispatcher(String grup)
protected void
handleRemoveGroupFormUser(String codiUsuari, String codiGrup)
protected void
handleSetSuperGroup(String codiSubGrup, String codiSuperGrup)
protected com.soffid.iam.api.Group
handleUpdate(com.soffid.iam.api.Group grup)
protected com.soffid.iam.api.GroupUser
handleUpdate(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:
handleGetConselleriesAmbDireccionsGenerals
in 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:
handleFindSubgroupsByGroupName
in 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:
handleFindSubgroupsByGroupNameAndDate
in 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:
handleGetParentList
in 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:
handleFindGroupsByGroupsType
in 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:
handleGetOfficeServer
in classGroupServiceBase
- Throws:
Exception
-
handleGetGroups
protected Collection<com.soffid.iam.api.Group> handleGetGroups() throws Exception
- Specified by:
handleGetGroups
in classGroupServiceBase
- Throws:
Exception
- See Also:
GrupService.getGrups()
-
handleFindGroupByGroupName
protected com.soffid.iam.api.Group handleFindGroupByGroupName(String codi) throws Exception
- Specified by:
handleFindGroupByGroupName
in 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:
handleFindGroupByGroupNameAndDate
in classGroupServiceBase
- Throws:
Exception
-
handleSetSuperGroup
protected void handleSetSuperGroup(String codiSubGrup, String codiSuperGrup) throws Exception
- Specified by:
handleSetSuperGroup
in classGroupServiceBase
- Throws:
Exception
-
handleCreate
protected com.soffid.iam.api.Group handleCreate(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleCreate
in classGroupServiceBase
- Throws:
Exception
-
handleDelete
protected void handleDelete(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleDelete
in 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:
handleFindGroupsByFilter
in 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:
handleFindGroupsByFilter
in classGroupServiceBase
- Throws:
Exception
-
handleUpdate
protected com.soffid.iam.api.Group handleUpdate(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleUpdate
in classGroupServiceBase
- Throws:
Exception
-
handleCreateHistoric
protected com.soffid.iam.api.Group handleCreateHistoric(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleCreateHistoric
in classGroupServiceBase
- Throws:
Exception
-
handleAddGroupToUser
protected void handleAddGroupToUser(String codiUsuari, String codiGrup) throws Exception
- Specified by:
handleAddGroupToUser
in classGroupServiceBase
- Throws:
Exception
-
handleRemoveGroupFormUser
protected void handleRemoveGroupFormUser(String codiUsuari, String codiGrup) throws Exception
- Specified by:
handleRemoveGroupFormUser
in classGroupServiceBase
- Throws:
Exception
-
handleFindPrimaryGroupByUserName
protected com.soffid.iam.api.Group handleFindPrimaryGroupByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindPrimaryGroupByUserName
in classGroupServiceBase
- Throws:
Exception
-
handleFindGroupsByUserName
protected Collection<com.soffid.iam.api.Group> handleFindGroupsByUserName(String codiUsuari) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handleFindGroupsByUserName
in classGroupServiceBase
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleFindGroupsFromRolesByUserName
protected Collection<com.soffid.iam.api.Group> handleFindGroupsFromRolesByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindGroupsFromRolesByUserName
in classGroupServiceBase
- Throws:
Exception
-
handleFindGroupsFromUsersByUserName
protected Collection<com.soffid.iam.api.Group> handleFindGroupsFromUsersByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindGroupsFromUsersByUserName
in classGroupServiceBase
- Throws:
Exception
-
handleCreate
protected com.soffid.iam.api.GroupUser handleCreate(com.soffid.iam.api.GroupUser usuariGrup) throws Exception
- Specified by:
handleCreate
in classGroupServiceBase
- Throws:
Exception
-
handleDelete
protected void handleDelete(com.soffid.iam.api.GroupUser usuariGrup) throws Exception
- Specified by:
handleDelete
in classGroupServiceBase
- Throws:
Exception
-
handleUpdate
protected com.soffid.iam.api.GroupUser handleUpdate(com.soffid.iam.api.GroupUser usuariGrup) throws Exception
- Specified by:
handleUpdate
in classGroupServiceBase
- Throws:
Exception
-
handleFindUserGroupByUserNameAndGroupName
protected com.soffid.iam.api.GroupUser handleFindUserGroupByUserNameAndGroupName(String codiUsuari, String codiGrup) throws Exception
- Specified by:
handleFindUserGroupByUserNameAndGroupName
in classGroupServiceBase
- Throws:
Exception
-
handleGetSuperGroup
protected com.soffid.iam.api.Group handleGetSuperGroup(String codiGrup) throws Exception
- Specified by:
handleGetSuperGroup
in classGroupServiceBase
- Throws:
Exception
-
handleFindUsersRolesWithGroupByUserName
protected Collection<com.soffid.iam.api.RoleAccount> handleFindUsersRolesWithGroupByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindUsersRolesWithGroupByUserName
in classGroupServiceBase
- Throws:
Exception
-
handleFindUsersGroupByUserName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUsersGroupByUserName(String codiUsuari) throws Exception
- Specified by:
handleFindUsersGroupByUserName
in classGroupServiceBase
- Throws:
Exception
-
handleFindUsersBelongtoGroupByGroupName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupName(String codiGrup) throws Exception
- Specified by:
handleFindUsersBelongtoGroupByGroupName
in classGroupServiceBase
- Throws:
Exception
-
handleFindUsersBelongtoGroupByGroupName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupName(String codiGrup, Date date) throws Exception
- Specified by:
handleFindUsersBelongtoGroupByGroupName
in classGroupServiceBase
- Throws:
Exception
-
handleFindGroupById
protected com.soffid.iam.api.Group handleFindGroupById(Long grupId) throws Exception
- Specified by:
handleFindGroupById
in classGroupServiceBase
- Throws:
Exception
-
handleGetRolesFromGroup
protected Collection<com.soffid.iam.api.Role> handleGetRolesFromGroup(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleGetRolesFromGroup
in classGroupServiceBase
- Throws:
Exception
-
handleGetRolesFromGroup
protected Collection<com.soffid.iam.api.GroupRoles> handleGetRolesFromGroup(String codiGrup) throws Exception
- Specified by:
handleGetRolesFromGroup
in classGroupServiceBase
- Throws:
Exception
-
handleFindUsersRolesDomainTypeAndUserGroups
protected Collection<com.soffid.iam.api.RoleAccount> handleFindUsersRolesDomainTypeAndUserGroups(String codiGrup) throws Exception
- Specified by:
handleFindUsersRolesDomainTypeAndUserGroups
in classGroupServiceBase
- Throws:
Exception
-
handleGetRolesFromGroupAndParentGroup
protected Collection<com.soffid.iam.api.GroupRoles> handleGetRolesFromGroupAndParentGroup(com.soffid.iam.api.Group grup) throws Exception
- Specified by:
handleGetRolesFromGroupAndParentGroup
in classGroupServiceBase
- Throws:
Exception
-
handlePropagateRolsChangesToDispatcher
protected void handlePropagateRolsChangesToDispatcher(String grup) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
handlePropagateRolsChangesToDispatcher
in 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:
handleFindGroupByTextAndFilterAsync
in 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:
handleFindGroupHistoryByTextAndFilterAsync
in classGroupServiceBase
- Throws:
Exception
-
handleFindGroupByTextAndFilter
protected List<com.soffid.iam.api.Group> handleFindGroupByTextAndFilter(String text, String filter) throws Exception
- Specified by:
handleFindGroupByTextAndFilter
in 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:
handleFindGroupByTextAndFilter
in classGroupServiceBase
- Throws:
Exception
-
handleFindGroupByText
protected List<com.soffid.iam.api.Group> handleFindGroupByText(String text) throws Exception
- Specified by:
handleFindGroupByText
in classGroupServiceBase
- Throws:
Exception
-
handleFindGroupByTextAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByTextAsync(String text) throws Exception
- Specified by:
handleFindGroupByTextAsync
in 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.EvalException
es.caib.seycon.ng.exception.InternalErrorException
UnsupportedEncodingException
ClassNotFoundException
org.json.JSONException
com.soffid.scimquery.parser.ParseException
com.soffid.scimquery.parser.TokenMgrError
InterruptedException
ExecutionException
-
handleFindGroupByJsonQuery
protected List<com.soffid.iam.api.Group> handleFindGroupByJsonQuery(String query) throws es.caib.seycon.ng.exception.InternalErrorException, Exception
- Specified by:
handleFindGroupByJsonQuery
in classGroupServiceBase
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
Exception
-
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:
handleFindGroupByJsonQuery
in classGroupServiceBase
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
Exception
-
handleFindGroupByJsonQueryAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.Group> handleFindGroupByJsonQueryAsync(String query) throws Exception
- Specified by:
handleFindGroupByJsonQueryAsync
in classGroupServiceBase
- Throws:
Exception
-
handleFindGroupNames
protected Collection<String> handleFindGroupNames() throws Exception
- Specified by:
handleFindGroupNames
in classGroupServiceBase
- Throws:
Exception
-
handleFindUsersBelongtoGroupByGroupNameAsync
protected com.soffid.iam.api.AsyncList<com.soffid.iam.api.GroupUser> handleFindUsersBelongtoGroupByGroupNameAsync(String codiGrup) throws Exception
- Specified by:
handleFindUsersBelongtoGroupByGroupNameAsync
in classGroupServiceBase
- Throws:
Exception
-
handleFindUserGroupHistoryByUserName
protected Collection<com.soffid.iam.api.GroupUser> handleFindUserGroupHistoryByUserName(String userName) throws Exception
- Specified by:
handleFindUserGroupHistoryByUserName
in 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:
handleFindGroupUserByJsonQuery
in classGroupServiceBase
- Throws:
Exception
-
-