Interface AttributeDefDAO
- All Superinterfaces:
GrouperDAO
- All Known Implementing Classes:
Hib3AttributeDefDAO
attribute def data access methods
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(AttributeDef attributeDef) delete the attribute deffindAllAttributeDefsFromNamesSecure
(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefNameIds) do a query based on various paramsfindAllAttributeDefsSecure
(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefIds) do a query based on various paramsfindAllAttributeDefsSecure
(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefIds, Collection<String> namesOfAttributeDefs) do a query based on various paramsfindAttributeDefsInStemWithoutPrivilege
(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which attributeDefs do not have this privilegefindAttributeDefsInStemWithPrivilege
(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which attributeDefs do not have this privilegefindByAttributeDefNameIdSecure
(String attributeDefNameId, boolean exceptionIfNotFound) find by attributeDefNameId.findByCreator
(Member member) find attribute defs by creatorfind by id.findById
(String id, boolean exceptionIfNotFound, QueryOptions queryOptions) find by id.findByIdIndex
(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) findByIdIndexSecure
(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) findByIdSecure
(String id, boolean exceptionIfNotFound) find by id.findByIdSecure
(String id, boolean exceptionIfNotFound, QueryOptions queryOptions) find by id.findByIdsSecure
(Collection<String> ids, QueryOptions queryOptions) find by ids securefindByName
(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) find an attribute def by name.findByNameSecure
(String name, boolean exceptionIfNotFound) find an attribute def by name.findByNameSecure
(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) find an attribute def by name.findByStem
(String id) Find all that have the given stem id.findByUuidOrName
(String id, String name, boolean exceptionIfNotFound) search for an attribute def by id or namefindByUuidOrName
(String id, String name, boolean exceptionIfNotFound, QueryOptions queryOptions) search for an attribute def by id or namegetAllAttributeDefsSecure
(GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions) get all attribute defs securegetAllAttributeDefsSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions) get all attribute defs securegetAllAttributeDefsSplitScopeSecure
(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType) get all attribute defs secure, split the scope by whitespacevoid
saveOrUpdate
(AttributeDef attributeDef) insert or update an attribute def objectvoid
saveUpdateProperties
(AttributeDef attributeDef) save the update properties which are auto saved when business method is called
-
Method Details
-
saveOrUpdate
insert or update an attribute def object- Parameters:
attributeDef
-
-
findByIdSecure
find by id. This is a secure method, a grouperSession needs to be open- Parameters:
id
-exceptionIfNotFound
-- Returns:
- the attribute def or null if not there
-
findByCreator
find attribute defs by creator- Parameters:
member
-- Returns:
- the attribute defs
-
findByIdsSecure
find by ids secure- Parameters:
ids
-queryOptions
-- Returns:
- the attributeDefs or null or exception
-
findByIdSecure
find by id. This is a secure method, a grouperSession needs to be open- Parameters:
id
-exceptionIfNotFound
-queryOptions
-- Returns:
- the attribute def or null if not there
-
findById
find by id. This is NOT a secure method, a grouperSession does not need to be open- Parameters:
id
-exceptionIfNotFound
-- Returns:
- the attribute def or null if not there
-
findById
find by id. This is NOT a secure method, a grouperSession does not need to be open- Parameters:
id
-exceptionIfNotFound
-queryOptions
-- Returns:
- the attribute def or null if not there
-
findByAttributeDefNameIdSecure
find by attributeDefNameId. This is a secure method, a grouperSession needs to be open- Parameters:
attributeDefNameId
-exceptionIfNotFound
-- Returns:
- the attribute def or null if not there
-
findByNameSecure
AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound) throws GrouperDAOException, AttributeDefNotFoundException find an attribute def by name. this is a secure method, a grouperSession needs to be open- Parameters:
name
-exceptionIfNotFound
-- Returns:
- attribute def
- Throws:
GrouperDAOException
AttributeDefNotFoundException
-
findByNameSecure
AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNotFoundException find an attribute def by name. this is a secure method, a grouperSession needs to be open- Parameters:
name
-exceptionIfNotFound
-queryOptions
-- Returns:
- attribute def
- Throws:
GrouperDAOException
AttributeDefNotFoundException
-
findByName
AttributeDef findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNotFoundException find an attribute def by name. this is a secure method, a grouperSession needs to be open- Parameters:
name
-exceptionIfNotFound
-queryOptions
-- Returns:
- attribute def
- Throws:
GrouperDAOException
AttributeDefNotFoundException
-
findByStem
Find all that have the given stem id.- Parameters:
id
-- Returns:
- set of stems
-
delete
delete the attribute def- Parameters:
attributeDef
-
-
findByIdIndex
AttributeDef findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException - Parameters:
idIndex
-exceptionIfNotFound
-queryOptions
-- Throws:
AttributeDefNotFoundException
- Since:
- 2.2
-
findByIdIndexSecure
AttributeDef findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException - Parameters:
idIndex
-exceptionIfNotFound
-queryOptions
-- Throws:
AttributeDefNotFoundException
- Since:
- 2.2
-
findByUuidOrName
search for an attribute def by id or name- Parameters:
id
-name
-exceptionIfNotFound
-- Returns:
- the attribute def or null
-
findByUuidOrName
AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound, QueryOptions queryOptions) search for an attribute def by id or name- Parameters:
id
-name
-exceptionIfNotFound
-queryOptions
-- Returns:
- the attribute def or null
-
saveUpdateProperties
save the update properties which are auto saved when business method is called- Parameters:
attributeDef
-
-
getAllAttributeDefsSecure
Set<AttributeDef> getAllAttributeDefsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions) get all attribute defs secure- Parameters:
grouperSession
-subject
-privileges
-queryOptions
-- Returns:
- attribute defs
-
getAllAttributeDefsSecure
Set<AttributeDef> getAllAttributeDefsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions) get all attribute defs secure- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-- Returns:
- set of attribute defs
-
getAllAttributeDefsSplitScopeSecure
Set<AttributeDef> getAllAttributeDefsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType) get all attribute defs secure, split the scope by whitespace- Parameters:
scope
-grouperSession
-subject
-privileges
-queryOptions
-attributeAssignType
-attributeDefType
-- Returns:
- set of attribute defs
-
findAttributeDefsInStemWithoutPrivilege
Set<AttributeDef> findAttributeDefsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which attributeDefs do not have this privilege- Parameters:
grouperSession
-stemId
-scope
-subject
-privilege
-queryOptions
-considerAllSubject
-sqlLikeString
-- Returns:
- the attributeDefs
-
findAllAttributeDefsSecure
Set<AttributeDef> findAllAttributeDefsSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefIds) do a query based on various params- Parameters:
scope
-splitScope
-subject
-privileges
-queryOptions
-parentStemId
-stemScope
-findByUuidOrName
-attributeDefIds
-- Returns:
- the result set
-
findAllAttributeDefsSecure
Set<AttributeDef> findAllAttributeDefsSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefIds, Collection<String> namesOfAttributeDefs) do a query based on various params- Parameters:
scope
-splitScope
-subject
-privileges
-queryOptions
-parentStemId
-stemScope
-findByUuidOrName
-attributeDefIds
-namesOfAttributeDefs
-- Returns:
- the result set
-
findAllAttributeDefsFromNamesSecure
Set<AttributeDef> findAllAttributeDefsFromNamesSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefNameIds) do a query based on various params- Parameters:
scope
-splitScope
-subject
-privileges
-queryOptions
-parentStemId
-stemScope
-findByUuidOrName
-attributeDefNameIds
-- Returns:
- the result set
-
findAttributeDefsInStemWithPrivilege
Set<AttributeDef> findAttributeDefsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString) see which attributeDefs do not have this privilege- Parameters:
grouperSession
-stemId
-scope
-subject
-privilege
-queryOptions
-considerAllSubject
-sqlLikeString
-- Returns:
- the attributeDefs
-