|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO
edu.internet2.middleware.grouper.internal.dao.hib3.Hib3AttributeDefNameDAO
public class Hib3AttributeDefNameDAO
Data Access Object for attribute def name
Field Summary |
---|
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
---|
hibernateInitted |
Constructor Summary | |
---|---|
Hib3AttributeDefNameDAO()
|
Method Summary | |
---|---|
void |
delete(AttributeDefName attributeDefName)
delete this attribute def name |
java.util.Set<AttributeDefName> |
findAllAttributeNamesSecure(java.lang.String scope,
boolean splitScope,
GrouperSession grouperSession,
java.lang.String attributeDefId,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType)
get all attribute names secure, split the scope by whitespace |
java.util.Set<AttributeDefName> |
findAllAttributeNamesSecure(java.lang.String scope,
boolean splitScope,
GrouperSession grouperSession,
java.lang.String attributeDefId,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType,
ServiceRole serviceRole,
boolean anyServiceRole)
get all attribute names secure, split the scope by whitespace |
java.util.Set<AttributeDefName> |
findAllAttributeNamesSecure(java.lang.String scope,
boolean splitScope,
GrouperSession grouperSession,
java.lang.String attributeDefId,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType,
ServiceRole serviceRole,
boolean anyServiceRole,
java.lang.String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName)
get all attribute names secure, split the scope by whitespace |
java.util.Set<AttributeDefName> |
findAllAttributeNamesSecure(java.lang.String scope,
boolean splitScope,
GrouperSession grouperSession,
java.lang.String attributeDefId,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType,
ServiceRole serviceRole,
boolean anyServiceRole,
java.lang.String parentStemId,
Stem.Scope stemScope,
boolean findByUuidOrName,
java.util.Set<java.lang.String> idsOfAttributeDefNames)
get all attribute names secure, split the scope by whitespace |
java.util.Set<AttributeDefName> |
findAllAttributeNamesSplitScopeSecure(java.lang.String scope,
GrouperSession grouperSession,
java.lang.String attributeDefId,
edu.internet2.middleware.subject.Subject subject,
java.util.Set<Privilege> privileges,
QueryOptions queryOptions,
AttributeAssignType attributeAssignType,
AttributeDefType attributeDefType)
get all attribute names secure, split the scope by whitespace |
java.util.Set<AttributeDefName> |
findAllSecure(java.lang.String searchField,
java.util.Set<java.lang.String> searchInAttributeDefIds,
QueryOptions queryOptions)
search for attributeDefName by name, display name, or description. |
java.util.Set<AttributeDefName> |
findByAttributeDef(java.lang.String id)
Find all that have the given attribute def id. |
java.util.Set<AttributeDefName> |
findByAttributeDefLike(java.lang.String attributeDefId,
java.lang.String likeString)
search for all by attribute def id, and like string |
AttributeDefName |
findById(java.lang.String id,
boolean exceptionIfNotFound)
|
AttributeDefName |
findByIdIndex(java.lang.Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
not a secure method, find by id index |
AttributeDefName |
findByIdIndexSecure(java.lang.Long idIndex,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
secure method, find by id index |
AttributeDefName |
findByIdSecure(java.lang.String id,
boolean exceptionIfNotFound)
|
java.util.Set<AttributeDefName> |
findByIdsSecure(java.util.Collection<java.lang.String> ids,
QueryOptions queryOptions)
find by ids secure |
AttributeDefName |
findByNameSecure(java.lang.String name,
boolean exceptionIfNotFound)
find an attribute def name by name |
AttributeDefName |
findByNameSecure(java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find an attribute def name by name |
java.util.Set<AttributeDefName> |
findByStem(java.lang.String id)
Find all that have the given stem id. |
AttributeDefName |
findByUuidOrName(java.lang.String id,
java.lang.String name,
boolean exceptionIfNotFound)
find a record by uuid or name |
AttributeDefName |
findByUuidOrName(java.lang.String id,
java.lang.String name,
boolean exceptionIfNotFound,
QueryOptions queryOptions)
find a record by uuid or name |
AttributeDefName |
findLegacyAttributeByName(java.lang.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 |
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
---|
evict, evictEntity, evictQueries, getConfiguration, getSessionFactory, initHibernateIfNotInitted, resourceNameFromClassName, session |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hib3AttributeDefNameDAO()
Method Detail |
---|
public AttributeDefName findByIdSecure(java.lang.String id, boolean exceptionIfNotFound)
findByIdSecure
in interface AttributeDefNameDAO
AttributeDefNameDAO.findByIdSecure(java.lang.String, boolean)
public AttributeDefName findById(java.lang.String id, boolean exceptionIfNotFound)
findById
in interface AttributeDefNameDAO
AttributeDefNameDAO.findById(java.lang.String, boolean)
public void saveOrUpdate(AttributeDefName attributeDefName)
AttributeDefNameDAO
saveOrUpdate
in interface AttributeDefNameDAO
AttributeDefNameDAO.saveOrUpdate(edu.internet2.middleware.grouper.attr.AttributeDefName)
public AttributeDefName findByNameSecure(java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions) throws GrouperDAOException, AttributeDefNameNotFoundException
AttributeDefNameDAO
findByNameSecure
in interface AttributeDefNameDAO
GrouperDAOException
AttributeDefNameNotFoundException
AttributeDefNameDAO.findByNameSecure(java.lang.String, boolean, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public AttributeDefName findByNameSecure(java.lang.String name, boolean exceptionIfNotFound) throws GrouperDAOException, AttributeDefNameNotFoundException
AttributeDefNameDAO
findByNameSecure
in interface AttributeDefNameDAO
GrouperDAOException
AttributeDefNameNotFoundException
AttributeDefNameDAO.findByNameSecure(java.lang.String, boolean)
public void delete(AttributeDefName attributeDefName)
AttributeDefNameDAO
delete
in interface AttributeDefNameDAO
AttributeDefNameDAO.delete(AttributeDefName)
public java.util.Set<AttributeDefName> findByStem(java.lang.String id)
AttributeDefNameDAO
findByStem
in interface AttributeDefNameDAO
AttributeDefNameDAO.findByStem(java.lang.String)
public AttributeDefName findByUuidOrName(java.lang.String id, java.lang.String name, boolean exceptionIfNotFound)
AttributeDefNameDAO
findByUuidOrName
in interface AttributeDefNameDAO
AttributeDefNameDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean)
public AttributeDefName findByUuidOrName(java.lang.String id, java.lang.String name, boolean exceptionIfNotFound, QueryOptions queryOptions)
AttributeDefNameDAO
findByUuidOrName
in interface AttributeDefNameDAO
AttributeDefNameDAO.findByUuidOrName(java.lang.String, java.lang.String, boolean, QueryOptions)
public void saveUpdateProperties(AttributeDefName attributeDefName)
AttributeDefNameDAO
saveUpdateProperties
in interface AttributeDefNameDAO
AttributeDefNameDAO.saveUpdateProperties(edu.internet2.middleware.grouper.attr.AttributeDefName)
public java.util.Set<AttributeDefName> findByAttributeDef(java.lang.String id)
AttributeDefNameDAO
findByAttributeDef
in interface AttributeDefNameDAO
AttributeDefNameDAO.findByAttributeDef(java.lang.String)
public java.util.Set<AttributeDefName> findAllSecure(java.lang.String searchField, java.util.Set<java.lang.String> searchInAttributeDefIds, QueryOptions queryOptions)
AttributeDefNameDAO
findAllSecure
in interface AttributeDefNameDAO
searchField
- substring to search forsearchInAttributeDefIds
- ids to search in or null for all
AttributeDefNameDAO.findAllSecure(java.lang.String, java.util.Set, QueryOptions)
public java.util.Set<AttributeDefName> findByAttributeDefLike(java.lang.String attributeDefId, java.lang.String likeString)
AttributeDefNameDAO
findByAttributeDefLike
in interface AttributeDefNameDAO
AttributeDefNameDAO.findByAttributeDefLike(String, String)
public java.util.Set<AttributeDefName> findAllAttributeNamesSecure(java.lang.String scope, boolean splitScope, GrouperSession grouperSession, java.lang.String attributeDefId, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType)
AttributeDefNameDAO
findAllAttributeNamesSecure
in interface AttributeDefNameDAO
attributeDefId
- optional if filtering by names in a certain attribute definition
AttributeDefNameDAO.findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType)
public AttributeDefName findByIdIndex(java.lang.Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNameNotFoundException
findByIdIndex
in interface AttributeDefNameDAO
AttributeDefNameNotFoundException
public AttributeDefName findByIdIndexSecure(java.lang.Long idIndex, boolean exceptionIfNotFound, QueryOptions queryOptions) throws AttributeDefNameNotFoundException
findByIdIndexSecure
in interface AttributeDefNameDAO
AttributeDefNameNotFoundException
public java.util.Set<AttributeDefName> findAllAttributeNamesSecure(java.lang.String scope, boolean splitScope, GrouperSession grouperSession, java.lang.String attributeDefId, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, ServiceRole serviceRole, boolean anyServiceRole)
AttributeDefNameDAO
findAllAttributeNamesSecure
in interface AttributeDefNameDAO
attributeDefId
- optional if filtering by names in a certain attribute definitionanyServiceRole
- will see if the user has any role in a service, and return those services
AttributeDefNameDAO.findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType, ServiceRole, boolean)
public java.util.Set<AttributeDefName> findAllAttributeNamesSplitScopeSecure(java.lang.String scope, GrouperSession grouperSession, java.lang.String attributeDefId, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType)
AttributeDefNameDAO
findAllAttributeNamesSplitScopeSecure
in interface AttributeDefNameDAO
attributeDefId
- optional if filtering by names in a certain attribute definition
AttributeDefNameDAO.findAllAttributeNamesSplitScopeSecure(String, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType)
public AttributeDefName findLegacyAttributeByName(java.lang.String name, boolean exceptionIfNull)
AttributeDefNameDAO
findLegacyAttributeByName
in interface AttributeDefNameDAO
name
- the name of the legacy attribute (without prefix or path)
AttributeDefNameDAO.findLegacyAttributeByName(java.lang.String, boolean)
public java.util.Set<AttributeDefName> findByIdsSecure(java.util.Collection<java.lang.String> ids, QueryOptions queryOptions)
AttributeDefNameDAO
findByIdsSecure
in interface AttributeDefNameDAO
AttributeDefNameDAO.findByIdsSecure(Collection, QueryOptions)
public java.util.Set<AttributeDefName> findAllAttributeNamesSecure(java.lang.String scope, boolean splitScope, GrouperSession grouperSession, java.lang.String attributeDefId, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, ServiceRole serviceRole, boolean anyServiceRole, java.lang.String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName)
AttributeDefNameDAO
findAllAttributeNamesSecure
in interface AttributeDefNameDAO
attributeDefId
- 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 name
AttributeDefNameDAO#findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType, ServiceRole, boolean, String, Scope, boolean)
public java.util.Set<AttributeDefName> findAllAttributeNamesSecure(java.lang.String scope, boolean splitScope, GrouperSession grouperSession, java.lang.String attributeDefId, edu.internet2.middleware.subject.Subject subject, java.util.Set<Privilege> privileges, QueryOptions queryOptions, AttributeAssignType attributeAssignType, AttributeDefType attributeDefType, ServiceRole serviceRole, boolean anyServiceRole, java.lang.String parentStemId, Stem.Scope stemScope, boolean findByUuidOrName, java.util.Set<java.lang.String> idsOfAttributeDefNames)
AttributeDefNameDAO
findAllAttributeNamesSecure
in interface AttributeDefNameDAO
attributeDefId
- 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 lookup
AttributeDefNameDAO#findAllAttributeNamesSecure(String, boolean, GrouperSession, String, Subject, Set, QueryOptions, AttributeAssignType, AttributeDefType, ServiceRole, boolean, String, Scope, boolean, Set)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |