public class Hib3AttributeDefNameDAO extends Hib3DAO implements AttributeDefNameDAO
| Constructor and Description |
|---|
Hib3AttributeDefNameDAO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
attributeDefNameCacheAsRootIdsAndNamesAdd(AttributeDefName attributeDefName) |
static boolean |
attributeDefNameCacheAsRootIdsAndNamesContains(Object uuidOrNameOfAttributeDefName) |
static void |
attributeDefNameCacheClear()
remove all caches
|
static void |
attributeDefNameCacheRemove(AttributeDefName attributeDefName)
remove this from all caches
|
void |
delete(AttributeDefName attributeDefName)
delete this attribute def name
|
Set<AttributeDefName> |
findAllAttributeNamesSecure(String scope,
boolean splitScope,
GrouperSession grouperSession,
String attributeDefId,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType)
get all attribute names secure, split the scope by whitespace
|
Set<AttributeDefName> |
findAllAttributeNamesSecure(String scope,
boolean splitScope,
GrouperSession grouperSession,
String attributeDefId,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType,
ServiceRole serviceRole,
boolean anyServiceRole)
get all attribute names secure, split the scope by whitespace
|
Set<AttributeDefName> |
findAllAttributeNamesSecure(String scope,
boolean splitScope,
GrouperSession grouperSession,
String attributeDefId,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType,
ServiceRole serviceRole,
boolean anyServiceRole,
String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName)
get all attribute names secure, split the scope by whitespace
|
Set<AttributeDefName> |
findAllAttributeNamesSecure(String scope,
boolean splitScope,
GrouperSession grouperSession,
String attributeDefId,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType,
ServiceRole serviceRole,
boolean anyServiceRole,
String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName,
Set<String> idsOfAttributeDefNames)
get all attribute names secure, split the scope by whitespace
|
Set<AttributeDefName> |
findAllAttributeNamesSplitScopeSecure(String scope,
GrouperSession grouperSession,
String attributeDefId,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType)
get all attribute names secure, split the scope by whitespace
|
Set<AttributeDefName> |
findAllSecure(String searchField,
Set<String> searchInAttributeDefIds,
QueryOptions queryOptions)
search for attributeDefName by name, display name, or description.
|
Set<AttributeDefName> |
findByAttributeDef(String id)
Find all that have the given attribute def id.
|
Set<AttributeDefName> |
findByAttributeDefLike(String attributeDefId,
String likeString)
search for all by attribute def id, and like string
|
AttributeDefName |
findById(String id,
boolean exceptionIfNotFound) |
AttributeDefName |
findByIdIndex(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
not a secure method, find by id index
|
AttributeDefName |
findByIdIndexSecure(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
secure method, find by id index
|
AttributeDefName |
findByIdSecure(String id,
boolean exceptionIfNotFound) |
AttributeDefName |
findByIdSecure(String id,
boolean exceptionIfNotFound,
QueryOptions queryOptions) |
Set<AttributeDefName> |
findByIdsSecure(Collection<String> ids,
QueryOptions queryOptions)
find by ids secure
|
AttributeDefName |
findByName(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attribute def name by name as root (no security)
|
AttributeDefName |
findByNameSecure(String name,
boolean exceptionIfNotFound)
find an attribute def name by name
|
AttributeDefName |
findByNameSecure(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attribute def name by name
|
Set<AttributeDefName> |
findByStem(String id)
Find all that have the given stem id.
|
AttributeDefName |
findByUuidOrName(String id,
String name,
boolean exceptionIfNotFound)
find a record by uuid or name
|
AttributeDefName |
findByUuidOrName(String id,
String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find a record by uuid or name
|
AttributeDefName |
findLegacyAttributeByName(String name,
boolean exceptionIfNull)
Returns legacy attribute that was either migrated or created in the new attribute framework.
|
void |
saveOrUpdate(AttributeDefName attributeDefName)
insert or update an attribute def name object
|
void |
saveUpdateProperties(AttributeDefName attributeDefName)
save the update properties which are auto saved when business method is called
|
evict, evictEntity, evictQueries, getConfiguration, getConfiguration, getSessionFactory, getSessionFactory, hibernateInitted, initHibernateIfNotInitted, initHibernateIfNotInitted, resourceNameFromClassName, session, sessionpublic static void attributeDefNameCacheClear()
public AttributeDefName findByIdSecure(String id, boolean exceptionIfNotFound)
findByIdSecure in interface AttributeDefNameDAOAttributeDefNameDAO.findByIdSecure(java.lang.String, boolean)public AttributeDefName findByIdSecure(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
findByIdSecure in interface AttributeDefNameDAOAttributeDefNameDAO.findByIdSecure(java.lang.String, boolean, QueryOptions)public AttributeDefName findById(String id, boolean exceptionIfNotFound)
findById in interface AttributeDefNameDAOAttributeDefNameDAO.findById(java.lang.String, boolean)public void saveOrUpdate(AttributeDefName attributeDefName)
AttributeDefNameDAOsaveOrUpdate in interface AttributeDefNameDAOAttributeDefNameDAO.saveOrUpdate(edu.internet2.middleware.grouper.attr.AttributeDefName)public AttributeDefName findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNameNotFoundException
AttributeDefNameDAOfindByNameSecure in interface AttributeDefNameDAOGrouperDAOExceptionAttributeDefNameNotFoundExceptionAttributeDefNameDAO.findByNameSecure(java.lang.String, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions)public AttributeDefName findByNameSecure(String name, boolean exceptionIfNotFound) throws GrouperDAOException, AttributeDefNameNotFoundException
AttributeDefNameDAOfindByNameSecure in interface AttributeDefNameDAOGrouperDAOExceptionAttributeDefNameNotFoundExceptionAttributeDefNameDAO.findByNameSecure(java.lang.String, boolean)public void delete(AttributeDefName attributeDefName)
AttributeDefNameDAOdelete in interface AttributeDefNameDAOAttributeDefNameDAO.delete(AttributeDefName)public Set<AttributeDefName> findByStem(String id)
AttributeDefNameDAOfindByStem in interface AttributeDefNameDAOAttributeDefNameDAO.findByStem(java.lang.String)public AttributeDefName findByUuidOrName(String id, String name, boolean exceptionIfNotFound)
AttributeDefNameDAOfindByUuidOrName in interface AttributeDefNameDAOAttributeDefNameDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)public AttributeDefName findByUuidOrName(String id, String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefNameDAOfindByUuidOrName in interface AttributeDefNameDAOAttributeDefNameDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean, QueryOptions)public void saveUpdateProperties(AttributeDefName attributeDefName)
AttributeDefNameDAOsaveUpdateProperties in interface AttributeDefNameDAOAttributeDefNameDAO.saveUpdateProperties(edu.internet2.middleware.grouper.attr.AttributeDefName)public Set<AttributeDefName> findByAttributeDef(String id)
AttributeDefNameDAOfindByAttributeDef in interface AttributeDefNameDAOAttributeDefNameDAO.findByAttributeDef(java.lang.String)public Set<AttributeDefName> findAllSecure(String searchField, Set<String> searchInAttributeDefIds, QueryOptions queryOptions)
AttributeDefNameDAOfindAllSecure in interface AttributeDefNameDAOsearchField - substring to search forsearchInAttributeDefIds - ids to search in or null for allAttributeDefNameDAO.findAllSecure(java.lang.String, java.util.Set, QueryOptions)public Set<AttributeDefName> findByAttributeDefLike(String attributeDefId, String likeString)
AttributeDefNameDAOfindByAttributeDefLike in interface AttributeDefNameDAOAttributeDefNameDAO.findByAttributeDefLike(String, String)public Set<AttributeDefName> findAllAttributeNamesSecure(String scope, boolean splitScope, GrouperSession grouperSession, String attributeDefId, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType)
AttributeDefNameDAOfindAllAttributeNamesSecure in interface AttributeDefNameDAOattributeDefId - optional if filtering by names in a certain attribute definitionAttributeDefNameDAO.findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType)public AttributeDefName findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNameNotFoundException
findByIdIndex in interface AttributeDefNameDAOAttributeDefNameNotFoundExceptionpublic AttributeDefName findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNameNotFoundException
findByIdIndexSecure in interface AttributeDefNameDAOAttributeDefNameNotFoundExceptionpublic Set<AttributeDefName> findAllAttributeNamesSecure(String scope, boolean splitScope, GrouperSession grouperSession, String attributeDefId, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, ServiceRole serviceRole, boolean anyServiceRole)
AttributeDefNameDAOfindAllAttributeNamesSecure in interface AttributeDefNameDAOattributeDefId - optional if filtering by names in a certain attribute definitionanyServiceRole - will see if the user has any role in a service, and return those servicesAttributeDefNameDAO.findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType, ServiceRole, boolean)public Set<AttributeDefName> findAllAttributeNamesSplitScopeSecure(String scope, GrouperSession grouperSession, String attributeDefId, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType)
AttributeDefNameDAOfindAllAttributeNamesSplitScopeSecure in interface AttributeDefNameDAOattributeDefId - optional if filtering by names in a certain attribute definitionAttributeDefNameDAO.findAllAttributeNamesSplitScopeSecure(String, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType)public AttributeDefName findLegacyAttributeByName(String name, boolean exceptionIfNull)
AttributeDefNameDAOfindLegacyAttributeByName in interface AttributeDefNameDAOname - the name of the legacy attribute (without prefix or path)AttributeDefNameDAO.findLegacyAttributeByName(java.lang.String, boolean)public Set<AttributeDefName> findByIdsSecure(Collection<String> ids, QueryOptions queryOptions)
AttributeDefNameDAOfindByIdsSecure in interface AttributeDefNameDAOAttributeDefNameDAO.findByIdsSecure(Collection, QueryOptions)public Set<AttributeDefName> findAllAttributeNamesSecure(String scope, boolean splitScope, GrouperSession grouperSession, String attributeDefId, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, ServiceRole serviceRole, boolean anyServiceRole, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName)
AttributeDefNameDAOfindAllAttributeNamesSecure in interface AttributeDefNameDAOattributeDefId - optional if filtering by names in a certain attribute definitionanyServiceRole - will see if the user has any role in a service, and return those servicesparentStemId - is the id of the parent or ancestor of the object returnedstemScope - is if the stem scope is ONE or SUBfindByUuidOrName - if looking for attribute def names by uuid or nameAttributeDefNameDAO#findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType, ServiceRole, boolean, String, Scope, boolean)public Set<AttributeDefName> findAllAttributeNamesSecure(String scope, boolean splitScope, GrouperSession grouperSession, String attributeDefId, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, ServiceRole serviceRole, boolean anyServiceRole, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Set<String> idsOfAttributeDefNames)
AttributeDefNameDAOfindAllAttributeNamesSecure in interface AttributeDefNameDAOattributeDefId - optional if filtering by names in a certain attribute definitionanyServiceRole - will see if the user has any role in a service, and return those servicesparentStemId - is the id of the parent or ancestor of the object returnedstemScope - is if the stem scope is ONE or SUBfindByUuidOrName - if looking for attribute def names by uuid or nameidsOfAttributeDefNames - ids of attribute def names to lookupAttributeDefNameDAO#findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType, ServiceRole, boolean, String, Scope, boolean, Set)public static void attributeDefNameCacheAsRootIdsAndNamesAdd(AttributeDefName attributeDefName)
attributeDefName - public static boolean attributeDefNameCacheAsRootIdsAndNamesContains(Object uuidOrNameOfAttributeDefName)
uuidOrNameOfAttributeDefName - or id indexpublic static void attributeDefNameCacheRemove(AttributeDefName attributeDefName)
attributeDefName - public AttributeDefName findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNameNotFoundException
AttributeDefNameDAOfindByName in interface AttributeDefNameDAOGrouperDAOExceptionAttributeDefNameNotFoundExceptionAttributeDefNameDAO.findByName(java.lang.String, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions)Copyright © 2016 Internet2. All rights reserved.