public class AttributeDefNameFinder extends Object
| Constructor and Description |
|---|
AttributeDefNameFinder() |
| Modifier and Type | Method and Description |
|---|---|
AttributeDefNameFinder |
addIdOfAttributeDefName(String theIdsOfAttributeDefName)
id of attribute def name
|
AttributeDefNameFinder |
addPrivilege(Privilege privilege)
add a privilege to filter by that the subject has on the attribute definition
|
AttributeDefNameFinder |
assignAnyRole(boolean theAnyRole)
mutually exclusive with serviceRole...
|
AttributeDefNameFinder |
assignAttributeAssignType(AttributeAssignType theAttributeAssignType)
the type of assignment that the attributes can have
|
AttributeDefNameFinder |
assignAttributeDefId(String theAttributeDefId)
find attribute def names based on one attribute definition
|
AttributeDefNameFinder |
assignFindByUuidOrName(boolean theFindByUuidOrName)
if we are looking up an attributedefname, only look by uuid or name
|
AttributeDefNameFinder |
assignIdsOfAttributeDefNames(Collection<String> theIdsOfAttributeDefNames)
id of attribute def name
|
AttributeDefNameFinder |
assignParentStemId(String theParentStemId)
parent or ancestor stem of the attribute def
|
AttributeDefNameFinder |
assignPrivileges(Set<Privilege> thePrivileges)
assign privileges to filter by that the subject has on the attribute definition
|
AttributeDefNameFinder |
assignQueryOptions(QueryOptions theQueryOptions)
if sorting, paging, caching, etc
|
AttributeDefNameFinder |
assignScope(String theScope)
scope to look for attribute def names Wildcards will be appended or percent is the wildcard
|
AttributeDefNameFinder |
assignServiceRole(ServiceRole theServiceRole)
if filtering by service, this is the service role, or null for all
|
AttributeDefNameFinder |
assignSplitScope(boolean theSplitScope)
if the scope has spaces in it, then split by whitespace, and find results that contain all of the scope strings
|
AttributeDefNameFinder |
assignStemScope(Stem.Scope theStemScope)
if passing in a stem, this is the stem scope...
|
AttributeDefNameFinder |
assignSubject(Subject theSubject)
this is the subject that has certain privileges or is in the service
|
static Set<AttributeDefName> |
findAll(String searchField,
Set<String> searchInAttributeDefIds,
QueryOptions queryOptions)
search for attributeDefName by name, display name, or description.
|
AttributeDefName |
findAttributeName()
find the stem
|
Set<AttributeDefName> |
findAttributeNames()
find all the attribute def names
|
static AttributeDefName |
findById(String id,
boolean exceptionIfNotFound)
find an attributeDefName by id.
|
static AttributeDefName |
findById(String id,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attributeDefName by id.
|
static AttributeDefName |
findByIdAsRoot(String id,
boolean exceptionIfNotFound)
find an attributeDefName by id.
|
static AttributeDefName |
findByIdIndexSecure(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
Find an attributeDefName within the registry by ID index.
|
static AttributeDefName |
findByName(String name,
boolean exceptionIfNotFound)
find an attributeDefName by name.
|
static AttributeDefName |
findByName(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attributeDefName by name.
|
static AttributeDefName |
findByNameAsRoot(String name,
boolean exceptionIfNotFound)
find an attributeDefName by name.
|
static AttributeDefName |
findByNameCache(String name,
boolean exceptionIfNotFound)
Deprecated.
|
public AttributeDefNameFinder addIdOfAttributeDefName(String theIdsOfAttributeDefName)
theIdsOfAttributeDefName - public AttributeDefNameFinder assignIdsOfAttributeDefNames(Collection<String> theIdsOfAttributeDefNames)
theIdsOfAttributeDefNames - public AttributeDefNameFinder assignParentStemId(String theParentStemId)
theParentStemId - public AttributeDefNameFinder assignStemScope(Stem.Scope theStemScope)
theStemScope - public AttributeDefNameFinder assignScope(String theScope)
theScope - public AttributeDefNameFinder assignAttributeDefId(String theAttributeDefId)
theAttributeDefId - public AttributeDefNameFinder assignServiceRole(ServiceRole theServiceRole)
theServiceRole - public AttributeDefNameFinder assignSubject(Subject theSubject)
theSubject - public AttributeDefNameFinder assignPrivileges(Set<Privilege> thePrivileges)
thePrivileges - public AttributeDefNameFinder addPrivilege(Privilege privilege)
privilege - should be AttributeDefPrivilegepublic AttributeDefNameFinder assignQueryOptions(QueryOptions theQueryOptions)
theQueryOptions - public AttributeDefNameFinder assignSplitScope(boolean theSplitScope)
theSplitScope - public AttributeDefNameFinder assignAttributeAssignType(AttributeAssignType theAttributeAssignType)
theAttributeAssignType - public static AttributeDefName findById(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
id - of attributeDefNameexceptionIfNotFound - true if exception should be thrown if nullqueryOptions - AttributeDefNameNotFoundExceptionpublic static AttributeDefName findById(String id, boolean exceptionIfNotFound)
id - of attributeDefNameexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNameNotFoundExceptionpublic static AttributeDefName findByIdAsRoot(String id, boolean exceptionIfNotFound)
id - of attributeDefNameexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNameNotFoundExceptionpublic Set<AttributeDefName> findAttributeNames()
public AttributeDefNameFinder assignAnyRole(boolean theAnyRole)
theAnyRole - public AttributeDefNameFinder assignFindByUuidOrName(boolean theFindByUuidOrName)
theFindByUuidOrName - public AttributeDefName findAttributeName()
public static AttributeDefName findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNameNotFoundException
idIndex - id index of attributeDefName to find.exceptionIfNotFound - true if exception if not foundqueryOptions - AttributeDefNameAttributeDefNameNotFoundException - if not found an exceptionIfNotFound is truepublic static AttributeDefName findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
name - of attributeDefNameexceptionIfNotFound - true if exception should be thrown if nullqueryOptions - AttributeDefNameNotFoundExceptionpublic static AttributeDefName findByName(String name, boolean exceptionIfNotFound)
name - of attributeDefNameexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNameNotFoundExceptionpublic static AttributeDefName findByNameAsRoot(String name, boolean exceptionIfNotFound)
name - of attributeDefNameexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNameNotFoundException@Deprecated public static AttributeDefName findByNameCache(String name, boolean exceptionIfNotFound)
name - of attributeDefNameexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNameNotFoundExceptionpublic static Set<AttributeDefName> findAll(String searchField, Set<String> searchInAttributeDefIds, QueryOptions queryOptions)
searchField - substring to search forsearchInAttributeDefIds - ids to search in or null for allqueryOptions - Copyright © 2016 Internet2. All rights reserved.