public class AttributeDefFinder extends Object
| Constructor and Description |
|---|
AttributeDefFinder() |
| Modifier and Type | Method and Description |
|---|---|
AttributeDefFinder |
addAttributeDefId(String attributeDefId)
add a attribute def id to search for
|
AttributeDefFinder |
addAttributeDefNameId(String attributeDefNameId)
add a attribute def id to search for
|
AttributeDefFinder |
addPrivilege(Privilege privilege)
add a privilege to filter by that the subject has on the attribute definition
|
AttributeDefFinder |
assignAttributeDefIds(Collection<String> theAttributeDefIds)
assign attributeDef ids to search for
|
AttributeDefFinder |
assignAttributeDefNameIds(Collection<String> theAttributeDefNameIds)
assign attributeDef ids to search for
|
AttributeDefFinder |
assignFindByUuidOrName(boolean theFindByUuidOrName)
if we are looking up a attribute def, only look by uuid or name
|
AttributeDefFinder |
assignParentStemId(String theParentStemId)
parent or ancestor stem of the attribute def
|
AttributeDefFinder |
assignPrivileges(Set<Privilege> thePrivileges)
assign privileges to filter by that the subject has on the attribute definition
|
AttributeDefFinder |
assignQueryOptions(QueryOptions theQueryOptions)
if sorting, paging, caching, etc
|
AttributeDefFinder |
assignScope(String theScope)
scope to look for attribute defs Wildcards will be appended or percent is the wildcard
|
AttributeDefFinder |
assignSplitScope(boolean theSplitScope)
if the scope has spaces in it, then split by whitespace, and find results that contain all of the scope strings
|
AttributeDefFinder |
assignStemScope(Stem.Scope theStemScope)
if passing in a stem, this is the stem scope...
|
AttributeDefFinder |
assignSubject(Subject theSubject)
this is the subject that has certain privileges or is in the service
|
AttributeDef |
findAttribute()
find the attributeDef
|
Set<AttributeDef> |
findAttributes()
find all the attribute defs
|
static AttributeDef |
findByAttributeDefNameId(String id,
boolean exceptionIfNotFound)
find an attributeDef by attribute def name id.
|
static AttributeDef |
findById(String id,
boolean exceptionIfNotFound)
find an attributeDef by id.
|
static AttributeDef |
findById(String id,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attributeDef by id.
|
static AttributeDef |
findByIdAsRoot(String id,
boolean exceptionIfNotFound)
find an attributeDef by id.
|
static AttributeDef |
findByIdIndexSecure(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
Find an attributeDef within the registry by ID index.
|
static AttributeDef |
findByName(String name,
boolean exceptionIfNotFound)
find an attributeDef by name.
|
static AttributeDef |
findByName(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attributeDef by name.
|
static AttributeDef |
findByNameAsRoot(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attributeDef by name.
|
public static AttributeDef findById(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
id - of attributeDefexceptionIfNotFound - true if exception should be thrown if null
GrouperDAOFactory.getFactory().getAttributeDef().findByIdSecure(id, exceptionIfNotFound, queryOptions);queryOptions - AttributeDefNotFoundExceptionpublic static AttributeDef findById(String id, boolean exceptionIfNotFound)
id - of attributeDefexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNotFoundExceptionpublic static AttributeDef findByIdAsRoot(String id, boolean exceptionIfNotFound)
id - of attributeDefexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNotFoundExceptionpublic static AttributeDef findByAttributeDefNameId(String id, boolean exceptionIfNotFound)
id - of attributeDefexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNotFoundExceptionpublic static AttributeDef findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
name - of attributeDefexceptionIfNotFound - true if exception should be thrown if nullqueryOptions - AttributeDefNotFoundExceptionpublic static AttributeDef findByNameAsRoot(String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
name - of attributeDefexceptionIfNotFound - true if exception should be thrown if nullqueryOptions - AttributeDefNotFoundExceptionpublic static AttributeDef findByName(String name, boolean exceptionIfNotFound)
name - of attributeDefexceptionIfNotFound - true if exception should be thrown if nullAttributeDefNotFoundExceptionpublic static AttributeDef findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException
idIndex - id index of attributeDef to find.exceptionIfNotFound - true if exception if not foundqueryOptions - AttributeDefAttributeDefNotFoundException - if not found an exceptionIfNotFound is truepublic AttributeDefFinder addPrivilege(Privilege privilege)
privilege - should be AttributeDefPrivilegepublic AttributeDefFinder assignParentStemId(String theParentStemId)
theParentStemId - public AttributeDefFinder assignPrivileges(Set<Privilege> thePrivileges)
thePrivileges - public AttributeDefFinder assignQueryOptions(QueryOptions theQueryOptions)
theQueryOptions - public AttributeDefFinder assignScope(String theScope)
theScope - public AttributeDefFinder assignSplitScope(boolean theSplitScope)
theSplitScope - public AttributeDefFinder assignStemScope(Stem.Scope theStemScope)
theStemScope - public AttributeDefFinder assignSubject(Subject theSubject)
theSubject - public Set<AttributeDef> findAttributes()
public AttributeDefFinder assignFindByUuidOrName(boolean theFindByUuidOrName)
theFindByUuidOrName - public AttributeDef findAttribute()
public AttributeDefFinder addAttributeDefId(String attributeDefId)
attributeDefId - public AttributeDefFinder addAttributeDefNameId(String attributeDefNameId)
attributeDefNameId - public AttributeDefFinder assignAttributeDefIds(Collection<String> theAttributeDefIds)
theAttributeDefIds - public AttributeDefFinder assignAttributeDefNameIds(Collection<String> theAttributeDefNameIds)
theAttributeDefNameIds - Copyright © 2016 Internet2. All rights reserved.