|
|||||||||
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.Hib3StemDAO
public class Hib3StemDAO
Basic Hibernate Stem
DAO interface.
Field Summary |
---|
Fields inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
---|
hibernateInitted |
Constructor Summary | |
---|---|
Hib3StemDAO()
|
Method Summary | |
---|---|
void |
createChildAttributeDef(Stem _stem,
AttributeDef attributeDef)
|
void |
createChildAttributeDefName(Stem _parent,
AttributeDefName attributeDefName)
|
void |
createChildGroup(Stem _stem,
Group _group,
Member _member,
Map<String,String> attributes)
|
void |
createChildStem(Stem _child)
|
void |
createRootStem(Stem _root)
|
void |
delete(Stem _ns)
|
boolean |
exists(String uuid)
|
Set<Stem> |
findAllByApproximateDisplayExtension(String val)
|
Set<Stem> |
findAllByApproximateDisplayExtension(String val,
String scope)
|
Set<Stem> |
findAllByApproximateDisplayName(String val)
|
Set<Stem> |
findAllByApproximateDisplayName(String val,
String scope)
|
Set<Stem> |
findAllByApproximateExtension(String val)
|
Set<Stem> |
findAllByApproximateExtension(String val,
String scope)
|
Set<Stem> |
findAllByApproximateName(String val)
|
Set<Stem> |
findAllByApproximateName(String val,
String scope)
|
Set<Stem> |
findAllByApproximateNameAny(String name)
|
Set<Stem> |
findAllByApproximateNameAny(String name,
String scope)
|
Set<Stem> |
findAllByCreatedAfter(Date d)
|
Set<Stem> |
findAllByCreatedAfter(Date d,
String scope)
|
Set<Stem> |
findAllByCreatedBefore(Date d)
|
Set<Stem> |
findAllByCreatedBefore(Date d,
String scope)
|
Set<Group> |
findAllChildGroups(Stem ns,
Stem.Scope scope)
Find all child groups within specified scope. |
Set<Group> |
findAllChildGroupsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Find all child groups within specified scope, and make sure the grouper session can see them |
Set<Group> |
findAllChildMembershipGroupsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Find all child groups within specified scope, and make sure the grouper session can see them |
Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope)
Find all child stems within specified scope. |
Set<Stem> |
findAllChildStems(Stem ns,
Stem.Scope scope,
boolean orderByName)
Find all child stems within specified scope. |
Set<Stem> |
findAllChildStemsSecure(Stem ns,
Stem.Scope scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
Find all child stems within specified scope, and make sure the grouper session can see them |
Set<Stem> |
findByCreatorOrModifier(Member member)
find stems by creator or modifier |
Stem |
findByName(String name)
Deprecated. |
Stem |
findByName(String name,
boolean exceptionIfNull)
|
Stem |
findByName(String name,
boolean exceptionIfNull,
QueryOptions queryOptions)
|
Stem |
findByUuid(String uuid)
Deprecated. |
Stem |
findByUuid(String uuid,
boolean exceptionIfNull)
|
Stem |
findByUuid(String uuid,
boolean exceptionIfNull,
QueryOptions queryOptions)
|
Set<Stem> |
getAllStems()
|
Set<Stem> |
getAllStemsSecure(GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
|
Set<Stem> |
getAllStemsSecure(String scope,
GrouperSession grouperSession,
edu.internet2.middleware.subject.Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
|
Set<Stem> |
getImmediateChildrenSecure(GrouperSession grouperSession,
Stem stem,
edu.internet2.middleware.subject.Subject subject,
Set<Privilege> inPrivSet,
QueryOptions queryOptions)
get immediate children (stems) secure |
void |
renameStemAndChildren(Stem _ns,
Set children)
|
void |
update(Stem _ns)
|
void |
updateLastMembershipChange(String stemId)
|
void |
updateLastMembershipChangeIncludeAncestorGroups(String groupId)
This will update last_membership_change for stem owners where group member in groupSet is the given groupId. |
Methods inherited from class edu.internet2.middleware.grouper.internal.dao.hib3.Hib3DAO |
---|
getConfiguration, initHibernateIfNotInitted, resourceNameFromClassName, session |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hib3StemDAO()
Method Detail |
---|
public void createChildGroup(Stem _stem, Group _group, Member _member, Map<String,String> attributes) throws GrouperDAOException
createChildGroup
in interface StemDAO
_stem
- _group
- _member
- attributes
-
GrouperDAOException
public void createChildAttributeDef(Stem _stem, AttributeDef attributeDef) throws GrouperDAOException
createChildAttributeDef
in interface StemDAO
_stem
- attributeDef
-
GrouperDAOException
public void createChildStem(Stem _child) throws GrouperDAOException
createChildStem
in interface StemDAO
_child
-
GrouperDAOException
public void createRootStem(Stem _root) throws GrouperDAOException
createRootStem
in interface StemDAO
_root
-
GrouperDAOException
public void delete(Stem _ns) throws GrouperDAOException
delete
in interface StemDAO
_ns
-
GrouperDAOException
public boolean exists(String uuid) throws GrouperDAOException
exists
in interface StemDAO
uuid
-
GrouperDAOException
public Set<Stem> findAllByApproximateDisplayExtension(String val) throws GrouperDAOException
findAllByApproximateDisplayExtension
in interface StemDAO
val
-
GrouperDAOException
public Set<Stem> findAllByApproximateDisplayExtension(String val, String scope) throws GrouperDAOException
findAllByApproximateDisplayExtension
in interface StemDAO
val
- scope
-
GrouperDAOException
public Set<Stem> findAllByApproximateDisplayName(String val) throws GrouperDAOException
findAllByApproximateDisplayName
in interface StemDAO
val
-
GrouperDAOException
public Set<Stem> findAllByApproximateDisplayName(String val, String scope) throws GrouperDAOException
findAllByApproximateDisplayName
in interface StemDAO
val
- scope
-
GrouperDAOException
public Set<Stem> findAllByApproximateExtension(String val) throws GrouperDAOException
findAllByApproximateExtension
in interface StemDAO
val
-
GrouperDAOException
public Set<Stem> findAllByApproximateExtension(String val, String scope) throws GrouperDAOException
findAllByApproximateExtension
in interface StemDAO
val
- scope
-
GrouperDAOException
public Set<Stem> findAllByApproximateName(String val) throws GrouperDAOException
findAllByApproximateName
in interface StemDAO
val
-
GrouperDAOException
public Set<Stem> findAllByApproximateName(String val, String scope) throws GrouperDAOException
findAllByApproximateName
in interface StemDAO
val
- scope
-
GrouperDAOException
public Set<Stem> findAllByApproximateNameAny(String name) throws GrouperDAOException
findAllByApproximateNameAny
in interface StemDAO
name
-
GrouperDAOException
public Set<Stem> findAllByApproximateNameAny(String name, String scope) throws GrouperDAOException
findAllByApproximateNameAny
in interface StemDAO
name
- scope
-
GrouperDAOException
public Set<Stem> findAllByCreatedAfter(Date d) throws GrouperDAOException
findAllByCreatedAfter
in interface StemDAO
d
-
GrouperDAOException
public Set<Stem> findAllByCreatedAfter(Date d, String scope) throws GrouperDAOException
findAllByCreatedAfter
in interface StemDAO
d
- scope
-
GrouperDAOException
public Set<Stem> findAllByCreatedBefore(Date d) throws GrouperDAOException
findAllByCreatedBefore
in interface StemDAO
d
-
GrouperDAOException
public Set<Stem> findAllByCreatedBefore(Date d, String scope) throws GrouperDAOException
findAllByCreatedBefore
in interface StemDAO
d
- scope
-
GrouperDAOException
public Set<Group> findAllChildGroups(Stem ns, Stem.Scope scope) throws GrouperDAOException
StemDAO
findAllChildGroups
in interface StemDAO
GrouperDAOException
StemDAO.findAllChildGroups(Stem, Stem.Scope)
public Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope) throws GrouperDAOException, IllegalStateException
StemDAO
findAllChildStems
in interface StemDAO
IllegalStateException
- if unknown scope.
GrouperDAOException
StemDAO.findAllChildStems(Stem, Stem.Scope)
public Set<Stem> findAllChildStems(Stem ns, Stem.Scope scope, boolean orderByName) throws GrouperDAOException, IllegalStateException
StemDAO
findAllChildStems
in interface StemDAO
ns
- scope
- orderByName
-
GrouperDAOException
IllegalStateException
- if unknown scope.StemDAO.findAllChildStems(Stem, Stem.Scope)
@Deprecated public Stem findByName(String name) throws GrouperDAOException, StemNotFoundException
findByName
in interface StemDAO
name
-
GrouperDAOException
StemNotFoundException
public Stem findByName(String name, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByName
in interface StemDAO
name
- exceptionIfNull
-
GrouperDAOException
StemNotFoundException
@Deprecated public Stem findByUuid(String uuid) throws GrouperDAOException, StemNotFoundException
findByUuid
in interface StemDAO
uuid
-
GrouperDAOException
StemNotFoundException
public Stem findByUuid(String uuid, boolean exceptionIfNull) throws GrouperDAOException, StemNotFoundException
findByUuid
in interface StemDAO
uuid
- exceptionIfNull
-
GrouperDAOException
StemNotFoundException
public Set<Stem> getAllStems() throws GrouperDAOException
getAllStems
in interface StemDAO
GrouperDAOException
public void renameStemAndChildren(Stem _ns, Set children) throws GrouperDAOException
renameStemAndChildren
in interface StemDAO
_ns
- children
-
GrouperDAOException
public void update(Stem _ns) throws GrouperDAOException
update
in interface StemDAO
_ns
-
GrouperDAOException
public Set<Stem> findByCreatorOrModifier(Member member)
findByCreatorOrModifier
in interface StemDAO
member
-
public Set<Group> findAllChildGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAO
findAllChildGroupsSecure
in interface StemDAO
inPrivSet
- is a set of privs that the subject must have one of to display a row. AccessPrivilege
has some pre-baked set constants available
GrouperDAOException
StemDAO.findAllChildGroupsSecure(edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public Set<Group> findAllChildMembershipGroupsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAO
findAllChildMembershipGroupsSecure
in interface StemDAO
inPrivSet
- is a set of privs that the subject must have one of to display a row. AccessPrivilege
has some pre-baked set constants available
GrouperDAOException
StemDAO.findAllChildMembershipGroupsSecure(edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public Set<Stem> findAllChildStemsSecure(Stem ns, Stem.Scope scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAO
findAllChildStemsSecure
in interface StemDAO
inPrivSet
- is a set of privs that the subject must have one of to display a row. NamingPrivilege
has some pre-baked set constants available
GrouperDAOException
StemDAO.findAllChildStemsSecure(edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.grouper.Stem.Scope, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public Set<Stem> getImmediateChildrenSecure(GrouperSession grouperSession, Stem stem, edu.internet2.middleware.subject.Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
StemDAO
getImmediateChildrenSecure
in interface StemDAO
inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll.
There are some constants in AccessPrivilege of pre-canned sets
GrouperDAOException
StemDAO.getImmediateChildrenSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.grouper.Stem, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public Set<Stem> getAllStemsSecure(GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
getAllStemsSecure
in interface StemDAO
inPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll.
There are some constants in NamingPrivilege of pre-canned sets
GrouperDAOException
StemDAO.getAllStemsSecure(edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public Set<Stem> getAllStemsSecure(String scope, GrouperSession grouperSession, edu.internet2.middleware.subject.Subject subject, Set<Privilege> inPrivSet, QueryOptions queryOptions) throws GrouperDAOException
getAllStemsSecure
in interface StemDAO
scope
- is blank for no scopeinPrivSet
- means that each row must have a matching priv in this set to user or GrouperAll.
There are some constants in NamingPrivilege of pre-canned sets
GrouperDAOException
StemDAO.getAllStemsSecure(java.lang.String, edu.internet2.middleware.grouper.GrouperSession, edu.internet2.middleware.subject.Subject, java.util.Set, edu.internet2.middleware.grouper.internal.dao.QueryOptions)
public void createChildAttributeDefName(Stem _parent, AttributeDefName attributeDefName) throws GrouperDAOException
createChildAttributeDefName
in interface StemDAO
_parent
- attributeDefName
-
GrouperDAOException
public void updateLastMembershipChange(String stemId)
updateLastMembershipChange
in interface StemDAO
StemDAO.updateLastMembershipChange(java.lang.String)
public void updateLastMembershipChangeIncludeAncestorGroups(String groupId)
StemDAO
updateLastMembershipChangeIncludeAncestorGroups
in interface StemDAO
StemDAO.updateLastMembershipChangeIncludeAncestorGroups(java.lang.String)
public Stem findByName(String name, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByName
in interface StemDAO
name
- exceptionIfNull
-
GrouperDAOException
StemNotFoundException
public Stem findByUuid(String uuid, boolean exceptionIfNull, QueryOptions queryOptions) throws GrouperDAOException, StemNotFoundException
findByUuid
in interface StemDAO
uuid
- exceptionIfNull
- queryOptions
-
GrouperDAOException
StemNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |