Class EntityFinder
java.lang.Object
edu.internet2.middleware.grouper.entity.EntityFinder
class to find entities.
TODO add in finder by attribute subject id
TODO add former names
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAncestorFolderId
(String theFolderId) add an ancestor folder id to search inaddAncestorFolderName
(String theFolderName) add an ancestor folder name to search inadd an entity id to search foradd an entity name to search foraddParentFolderId
(String parentFolderId) add a parent folder id to search for.addParentFolderName
(String parentFolderName) add a parent folder name to search in, note this is the immediate parent folder name, not an ancentorassignQueryOptions
(QueryOptions queryOptions1) assign query options for sorting and pagingassignTerms
(String theTerms) add a search term, any substring which will be split by spacesfind a list of entitiesfind a list of entities, and the String subjectIdentifierfindEntity
(boolean exceptionIfNotFound) find an entitytoString()
-
Constructor Details
-
EntityFinder
public EntityFinder()
-
-
Method Details
-
assignTerms
add a search term, any substring which will be split by spaces- Parameters:
theTerms
-- Returns:
- this for chaining
-
addId
add an entity id to search for- Parameters:
theId
-- Returns:
- this for chaining
-
addName
add an entity name to search for- Parameters:
theName
-- Returns:
- this for chaining
-
addParentFolderId
add a parent folder id to search for. note, this is the immediate parent folder id, not ancestor- Parameters:
parentFolderId
-- Returns:
- this for chaining
-
addParentFolderName
add a parent folder name to search in, note this is the immediate parent folder name, not an ancentor- Parameters:
parentFolderName
-- Returns:
- this for chaining
-
findEntity
find an entity- Parameters:
exceptionIfNotFound
- true if exception should be thrown if entity not found- Returns:
- the entity or null or exception
-
addAncestorFolderName
add an ancestor folder name to search in- Parameters:
theFolderName
-- Returns:
- the folder name
-
addAncestorFolderId
add an ancestor folder id to search in- Parameters:
theFolderId
-- Returns:
- this for chaining
-
findEntities
find a list of entities- Returns:
- the set of entities never null
-
findEntitiesAndSubjectIdentifier
find a list of entities, and the String subjectIdentifier- Returns:
- the list of entities never null, if there is a subjectIdentifier for the entity, that will be next in the array, else null
-
assignQueryOptions
assign query options for sorting and paging- Parameters:
queryOptions1
-- Returns:
- this for paging
-
toString
-