public class Hib3AttributeDefDAO extends Hib3DAO implements AttributeDefDAO
| Constructor and Description |
|---|
Hib3AttributeDefDAO() |
| Modifier and Type | Method and Description |
|---|---|
static String |
assignFilterToQuery(String filter,
Boolean splitScope,
StringBuilder whereClause,
ByHqlStatic byHqlStatic,
boolean findByUuidOrName,
String alias) |
static void |
attributeDefCacheAsRootIdsAndNamesAdd(AttributeDef attributeDef)
mark an attribute def as supposed to be cached, and put it in the cache
|
static boolean |
attributeDefCacheAsRootIdsAndNamesContains(Object attributeDefIdOrName) |
static void |
attributeDefCacheClear()
remove all caches
|
static void |
attributeDefCacheRemove(AttributeDef attributeDef)
remove this from all caches
|
void |
delete(AttributeDef attributeDef)
delete the attribute def
|
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
|
Set<AttributeDef> |
findAllAttributeDefsSecure(String scope,
boolean splitScope,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions,
String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName,
Collection<String> totalAttributeDefIds)
do a query based on various params
|
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
|
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
|
AttributeDef |
findByAttributeDefNameIdSecure(String attributeDefNameId,
boolean exceptionIfNotFound)
find by attributeDefNameId.
|
Set<AttributeDef> |
findByCreator(Member member)
find attribute defs by creator
|
AttributeDef |
findById(String id,
boolean exceptionIfNotFound)
find by id.
|
AttributeDef |
findById(String id,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find by id.
|
AttributeDef |
findByIdIndex(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
not a secure method, find by id index
|
AttributeDef |
findByIdIndexSecure(Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
secure method, find by id index
|
AttributeDef |
findByIdSecure(String id,
boolean exceptionIfNotFound)
find by id.
|
AttributeDef |
findByIdSecure(String id,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find by id.
|
Set<AttributeDef> |
findByIdsSecure(Collection<String> ids,
QueryOptions queryOptions)
find by ids secure
|
AttributeDef |
findByName(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attribute def by name.
|
AttributeDef |
findByNameSecure(String name,
boolean exceptionIfNotFound)
find an attribute def by name.
|
AttributeDef |
findByNameSecure(String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attribute def by name.
|
Set<AttributeDef> |
findByStem(String id)
Find all that have the given stem id.
|
AttributeDef |
findByUuidOrName(String id,
String name,
boolean exceptionIfNotFound)
search for an attribute def by id or name
|
AttributeDef |
findByUuidOrName(String id,
String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
search for an attribute def by id or name
|
Set<AttributeDef> |
getAllAttributeDefsSecure(GrouperSession grouperSession,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions)
get all attribute defs secure
|
Set<AttributeDef> |
getAllAttributeDefsSecure(String scope,
GrouperSession grouperSession,
Subject subject,
Set<Privilege> privileges,
QueryOptions queryOptions)
get all attribute defs secure
|
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
|
static void |
massageSortFields(QuerySort querySort)
if there are sort fields, go through them, and replace name with nameDb, etc,
extension for extensionDb
|
static void |
massageSortFields(QuerySort querySort,
String alias)
if there are sort fields, go through them, and replace name with nameDb, etc,
extension for extensionDb
|
void |
saveOrUpdate(AttributeDef attributeDef)
insert or update an attribute def object
|
void |
saveUpdateProperties(AttributeDef attributeDef)
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 attributeDefCacheClear()
public AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound)
AttributeDefDAOfindByIdSecure in interface AttributeDefDAOAttributeDefDAO.findByIdSecure(java.lang.String, boolean)public AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefDAOfindByIdSecure in interface AttributeDefDAOAttributeDefDAO.findByIdSecure(String, boolean, QueryOptions)public AttributeDef findById(String id, boolean exceptionIfNotFound)
AttributeDefDAOfindById in interface AttributeDefDAOAttributeDefDAO.findById(java.lang.String, boolean)public AttributeDef findById(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefDAOfindById in interface AttributeDefDAOAttributeDefDAO.findById(java.lang.String, boolean, QueryOptions)public void saveOrUpdate(AttributeDef attributeDef)
AttributeDefDAOsaveOrUpdate in interface AttributeDefDAOAttributeDefDAO.saveOrUpdate(edu.internet2.middleware.grouper.attr.AttributeDef)public AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound) throws GrouperDAOException, AttributeDefNotFoundException
AttributeDefDAOfindByNameSecure in interface AttributeDefDAOGrouperDAOExceptionAttributeDefNotFoundExceptionAttributeDefDAO.findByNameSecure(java.lang.String, boolean)public AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNotFoundException
AttributeDefDAOfindByNameSecure in interface AttributeDefDAOGrouperDAOExceptionAttributeDefNotFoundExceptionAttributeDefDAO.findByNameSecure(java.lang.String, boolean)public AttributeDef findByAttributeDefNameIdSecure(String attributeDefNameId, boolean exceptionIfNotFound)
AttributeDefDAOfindByAttributeDefNameIdSecure in interface AttributeDefDAOAttributeDefDAO.findByAttributeDefNameIdSecure(java.lang.String, boolean)public Set<AttributeDef> findByStem(String id)
AttributeDefDAOfindByStem in interface AttributeDefDAOAttributeDefDAO.findByStem(java.lang.String)public AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound)
AttributeDefDAOfindByUuidOrName in interface AttributeDefDAOAttributeDefDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)public AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefDAOfindByUuidOrName in interface AttributeDefDAOAttributeDefDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)public void saveUpdateProperties(AttributeDef attributeDef)
AttributeDefDAOsaveUpdateProperties in interface AttributeDefDAOAttributeDefDAO.saveUpdateProperties(edu.internet2.middleware.grouper.attr.AttributeDef)public void delete(AttributeDef attributeDef)
AttributeDefDAOdelete in interface AttributeDefDAOAttributeDefDAO.delete(edu.internet2.middleware.grouper.attr.AttributeDef)public Set<AttributeDef> getAllAttributeDefsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
AttributeDefDAOgetAllAttributeDefsSecure in interface AttributeDefDAOAttributeDefDAO.getAllAttributeDefsSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)public Set<AttributeDef> getAllAttributeDefsSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
AttributeDefDAOgetAllAttributeDefsSecure in interface AttributeDefDAOAttributeDefDAO.getAllAttributeDefsSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)public Set<AttributeDef> findByCreator(Member member)
findByCreator in interface AttributeDefDAOmember - public static String assignFilterToQuery(String filter, Boolean splitScope, StringBuilder whereClause, ByHqlStatic byHqlStatic, boolean findByUuidOrName, String alias)
byHqlStatic - filter - splitScope - default truewhereClause - findByUuidOrName - generally this is falsealias - e.g. theGroup whatever alias in hql querypublic Set<AttributeDef> findAttributeDefsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
AttributeDefDAOfindAttributeDefsInStemWithoutPrivilege in interface AttributeDefDAOAttributeDefDAO#findAttributeDefsInStemWithoutPrivilege(GrouperSession, String, Scope, Subject, Privilege, QueryOptions, boolean, String)public Set<AttributeDef> getAllAttributeDefsSplitScopeSecure(String scope, GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType)
AttributeDefDAOgetAllAttributeDefsSplitScopeSecure in interface AttributeDefDAOAttributeDefDAO.getAllAttributeDefsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType)public static void massageSortFields(QuerySort querySort)
querySort - public static void massageSortFields(QuerySort querySort, String alias)
querySort - alias - public AttributeDef findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException
findByIdIndex in interface AttributeDefDAOAttributeDefNotFoundExceptionpublic AttributeDef findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException
findByIdIndexSecure in interface AttributeDefDAOAttributeDefNotFoundExceptionpublic Set<AttributeDef> findByIdsSecure(Collection<String> ids, QueryOptions queryOptions)
AttributeDefDAOfindByIdsSecure in interface AttributeDefDAOAttributeDefDAO.findByIdsSecure(Collection, QueryOptions)public Set<AttributeDef> findAllAttributeDefsSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> totalAttributeDefIds)
AttributeDefDAOfindAllAttributeDefsSecure in interface AttributeDefDAOAttributeDefDAO#findAllAttributeDefsSecure(String, boolean, Subject, Set, QueryOptions, String, Scope, boolean, Collection)public Set<AttributeDef> findAttributeDefsInStemWithPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
AttributeDefDAOfindAttributeDefsInStemWithPrivilege in interface AttributeDefDAOAttributeDefDAO#findAttributeDefsInStemWithPrivilege(GrouperSession, String, Scope, Subject, Privilege, QueryOptions, boolean, String)public static void attributeDefCacheAsRootIdsAndNamesAdd(AttributeDef attributeDef)
attributeDef - public static boolean attributeDefCacheAsRootIdsAndNamesContains(Object attributeDefIdOrName)
attributeDefIdOrName - or id indexpublic static void attributeDefCacheRemove(AttributeDef attributeDef)
attributeDef - public AttributeDef findByName(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNotFoundException
AttributeDefDAOfindByName in interface AttributeDefDAOGrouperDAOExceptionAttributeDefNotFoundExceptionAttributeDefDAO.findByName(java.lang.String, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions)public Set<AttributeDef> findAllAttributeDefsFromNamesSecure(String scope, boolean splitScope, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions, String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, Collection<String> attributeDefNameIds)
AttributeDefDAOfindAllAttributeDefsFromNamesSecure in interface AttributeDefDAOAttributeDefDAO.findAllAttributeDefsFromNamesSecure(java.lang.String, boolean, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions, java.lang.String, edu.internet2.middleware.grouper.Stem.Scope, boolean, java.util.Collection)Copyright © 2016 Internet2. All rights reserved.