Package org.openiam.srvc.am
Interface OrganizationDataService
-
- All Known Implementing Classes:
OrganizationDataServiceImpl
public interface OrganizationDataService
-
-
Method Summary
-
-
-
Method Detail
-
validateEdit
Response validateEdit(Organization organization)
-
getOrganization
Organization getOrganization(String orgId)
-
suggestById
Organization suggestById(String id)
Find a organization in Elasticsearch. Significantly faster than going to the database. Use this method when performance is important and/or data integrity is not 100% required, as the database and ES may be out of sync for a period of time- Parameters:
id
- the role id- Returns:
- group
-
getOrganizationsForUserByType
List<Organization> getOrganizationsForUserByType(String userId, String organizationTypeId)
-
findBeans
OrganizationListResponse findBeans(OrganizationSearchBean searchBean, int from, int size)
-
getParentOrganizations
@Deprecated List<Organization> getParentOrganizations(String orgId, int from, int size)
Deprecated.
-
getChildOrganizations
List<Organization> getChildOrganizations(String orgId, int from, int size)
-
count
int count(OrganizationSearchBean searchBean)
-
getNumOfParentOrganizations
@Deprecated int getNumOfParentOrganizations(String orgId)
Deprecated.
-
getNumOfChildOrganizations
@Deprecated int getNumOfChildOrganizations(String orgId)
Deprecated.
-
saveOrganization
Response saveOrganization(Organization organization)
-
saveOrganizationWithSkipPrePostProcessors
Response saveOrganizationWithSkipPrePostProcessors(Organization organization, boolean skipPrePostProcessors)
-
addChildOrganization
Response addChildOrganization(String organizationId, String childOrganizationId, Set<String> rightIds, Date startDate, Date endDate)
-
addGroupToOrganization
Response addGroupToOrganization(String organizationId, String groupId, Set<String> rightIds, Date startDate, Date endDate)
-
removeGroupFromOrganization
Response removeGroupFromOrganization(String organizationId, String groupId)
-
addRoleToOrganization
Response addRoleToOrganization(String organizationId, String roleId, Set<String> rightIds, Date startDate, Date endDate)
-
removeRoleFromOrganization
Response removeRoleFromOrganization(String organizationId, String roleId)
-
addResourceToOrganization
Response addResourceToOrganization(String organizationId, String resourceId, Set<String> rightIds, Date startDate, Date endDate)
-
removeResourceFromOrganization
Response removeResourceFromOrganization(String organizationId, String resourceId)
-
deleteOrganizationWithSkipPrePostProcessors
Response deleteOrganizationWithSkipPrePostProcessors(String orgId, boolean skipPrePostProcessors)
-
removeChildOrganization
Response removeChildOrganization(String organizationId, String childOrganizationId)
-
canAddUserToOrganization
Response canAddUserToOrganization(String organizationId, String userId, Date startDate, Date endDate)
-
canRemoveUserToOrganization
Response canRemoveUserToOrganization(String organizationId, String userId)
-
getAllowedParentOrganizationsForType
List<Organization> getAllowedParentOrganizationsForType(String orgTypeId)
-
findLocationBeans
List<Location> findLocationBeans(LocationSearchBean searchBean, int from, int size)
-
getNumOfLocations
int getNumOfLocations(LocationSearchBean searchBean)
-
getLocationListByPageForUser
List<Location> getLocationListByPageForUser(String organizationId, int from, int size)
-
getOrganizationAttributes
List<OrganizationAttribute> getOrganizationAttributes(String orgId)
-
isIndexed
boolean isIndexed(String organizationId)
Checks if a Organization has been indexed in the search engine (currently ElasticSearch)- Parameters:
organizationId
-- Returns:
-
getDetachedForUser
OrganizationListResponse getDetachedForUser(String userId, String name, int from, int size)
method is used to detect all user's organizations that are not linked with any resources.- Parameters:
userId
- - id of User to check detached groupsname
- - name for case INSENSITIVE CONTAINS match search.from
- - zero based very first result- Returns:
- -
OrganizationListResponse
-
getWithResources
OrganizationListResponse getWithResources(String userId, OrganizationSearchBean searchBean, Set<String> resourceTypeIds, int from, int size)
method is used to get user's organizaiotn with entitled resources. filter #resourceTypeIds - does't work for organization due to global restrictions. need to refactor.- Parameters:
userId
- - user idsearchBean
- - searchBean for objectsresourceTypeIds
- - types of resources to fetchfrom
- - zero based very first resultsize
- - total size of page.- Returns:
GroupListResponse
with requested objects
-
-