public class Hib3AttributeDefDAO extends Hib3DAO implements AttributeDefDAO
hibernateInitted
Constructor and Description |
---|
Hib3AttributeDefDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(AttributeDef attributeDef)
delete the attribute def
|
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
|
AttributeDef |
findByAttributeDefNameIdSecure(String attributeDefNameId,
boolean exceptionIfNotFound)
find by attributeDefNameId.
|
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 |
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
|
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, initHibernateIfNotInitted, resourceNameFromClassName, session
public AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound)
AttributeDefDAO
findByIdSecure
in interface AttributeDefDAO
AttributeDefDAO.findByIdSecure(java.lang.String, boolean)
public AttributeDef findByIdSecure(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefDAO
findByIdSecure
in interface AttributeDefDAO
AttributeDefDAO.findByIdSecure(String, boolean, QueryOptions)
public AttributeDef findById(String id, boolean exceptionIfNotFound)
AttributeDefDAO
findById
in interface AttributeDefDAO
AttributeDefDAO.findById(java.lang.String, boolean)
public AttributeDef findById(String id, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefDAO
findById
in interface AttributeDefDAO
AttributeDefDAO.findById(java.lang.String, boolean, QueryOptions)
public void saveOrUpdate(AttributeDef attributeDef)
AttributeDefDAO
saveOrUpdate
in interface AttributeDefDAO
AttributeDefDAO.saveOrUpdate(edu.internet2.middleware.grouper.attr.AttributeDef)
public AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound) throws GrouperDAOException, AttributeDefNotFoundException
AttributeDefDAO
findByNameSecure
in interface AttributeDefDAO
GrouperDAOException
AttributeDefNotFoundException
AttributeDefDAO.findByNameSecure(java.lang.String, boolean)
public AttributeDef findByNameSecure(String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNotFoundException
AttributeDefDAO
findByNameSecure
in interface AttributeDefDAO
GrouperDAOException
AttributeDefNotFoundException
AttributeDefDAO.findByNameSecure(java.lang.String, boolean)
public AttributeDef findByAttributeDefNameIdSecure(String attributeDefNameId, boolean exceptionIfNotFound)
AttributeDefDAO
findByAttributeDefNameIdSecure
in interface AttributeDefDAO
AttributeDefDAO.findByAttributeDefNameIdSecure(java.lang.String, boolean)
public Set<AttributeDef> findByStem(String id)
AttributeDefDAO
findByStem
in interface AttributeDefDAO
AttributeDefDAO.findByStem(java.lang.String)
public AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound)
AttributeDefDAO
findByUuidOrName
in interface AttributeDefDAO
AttributeDefDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)
public AttributeDef findByUuidOrName(String id, String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefDAO
findByUuidOrName
in interface AttributeDefDAO
AttributeDefDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)
public void saveUpdateProperties(AttributeDef attributeDef)
AttributeDefDAO
saveUpdateProperties
in interface AttributeDefDAO
AttributeDefDAO.saveUpdateProperties(edu.internet2.middleware.grouper.attr.AttributeDef)
public void delete(AttributeDef attributeDef)
AttributeDefDAO
delete
in interface AttributeDefDAO
AttributeDefDAO.delete(edu.internet2.middleware.grouper.attr.AttributeDef)
public Set<AttributeDef> getAllAttributeDefsSecure(GrouperSession grouperSession, Subject subject, Set<Privilege> privileges, QueryOptions queryOptions)
AttributeDefDAO
getAllAttributeDefsSecure
in interface AttributeDefDAO
AttributeDefDAO.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)
AttributeDefDAO
getAllAttributeDefsSecure
in interface AttributeDefDAO
AttributeDefDAO.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> findAttributeDefsInStemWithoutPrivilege(GrouperSession grouperSession, String stemId, Stem.Scope scope, Subject subject, Privilege privilege, QueryOptions queryOptions, boolean considerAllSubject, String sqlLikeString)
AttributeDefDAO
findAttributeDefsInStemWithoutPrivilege
in interface AttributeDefDAO
AttributeDefDAO#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)
AttributeDefDAO
getAllAttributeDefsSplitScopeSecure
in interface AttributeDefDAO
AttributeDefDAO.getAllAttributeDefsSplitScopeSecure(String, GrouperSession, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType)
public AttributeDef findByIdIndex(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException
findByIdIndex
in interface AttributeDefDAO
AttributeDefNotFoundException
public AttributeDef findByIdIndexSecure(Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNotFoundException
findByIdIndexSecure
in interface AttributeDefDAO
AttributeDefNotFoundException
public Set<AttributeDef> findByIdsSecure(Collection<String> ids, QueryOptions queryOptions)
AttributeDefDAO
findByIdsSecure
in interface AttributeDefDAO
AttributeDefDAO.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)
AttributeDefDAO
findAllAttributeDefsSecure
in interface AttributeDefDAO
AttributeDefDAO#findAllAttributeDefsSecure(String, boolean, Subject, Set, QueryOptions, String, Scope, boolean, Collection)
Copyright © 2016 Internet2. All rights reserved.