|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.groups.RDBMEntityGroupStore
public class RDBMEntityGroupStore
Store for EntityGroupImpl.
| Field Summary |
|---|
| Fields inherited from interface org.jasig.portal.groups.IGroupConstants |
|---|
CHANNEL_CATEGORIES, CONTAINS, ENDS_WITH, EVERYONE, IS, NODE_SEPARATOR, PORTAL_ADMINISTRATORS, STARTS_WITH |
| Constructor Summary | |
|---|---|
RDBMEntityGroupStore()
RDBMEntityGroupStore constructor. |
|
| Method Summary | |
|---|---|
protected static void |
commit(Connection conn)
|
boolean |
contains(IEntityGroup group,
IGroupMember member)
Answers if IGroupMember member is a member of group. |
boolean |
containsGroupNamed(IEntityGroup containingGroup,
String memberName)
|
void |
delete(IEntityGroup group)
If this entity exists, delete it. |
IEntityGroup |
find(String groupID)
Find and return an instance of the group. |
Iterator |
findContainingGroups(IEntity ent)
Find the groups that this entity belongs to. |
Iterator |
findContainingGroups(IEntityGroup group)
Find the groups that this group belongs to. |
Iterator |
findContainingGroups(IGroupMember gm)
Find the groups that this group member belongs to. |
Iterator |
findEntitiesForGroup(IEntityGroup group)
Find the IEntities that are members of the IEntityGroup. |
Iterator |
findGroupsByCreator(String creatorID)
Find the groups with this creatorID. |
ILockableEntityGroup |
findLockable(String groupID)
Find and return an instance of the group. |
String[] |
findMemberGroupKeys(IEntityGroup group)
Find the keys of groups that are members of group. |
Iterator |
findMemberGroups(IEntityGroup group)
Find the IUserGroups that are members of the group. |
protected static void |
logNoTransactionWarning()
|
IEntity |
newEntity(Class type,
String key)
|
IEntityGroup |
newInstance(Class type)
|
protected static void |
rollback(Connection conn)
|
EntityIdentifier[] |
searchForGroups(String query,
int method,
Class leaftype)
Find EntityIdentifiers for groups whose name matches the query string according to the specified method and matches the provided leaf type |
protected static void |
setAutoCommit(Connection conn,
boolean newValue)
|
static RDBMEntityGroupStore |
singleton()
|
void |
update(IEntityGroup group)
Commit this entity AND ITS MEMBERSHIPS to the underlying store. |
void |
updateMembers(IEntityGroup eg)
Insert and delete group membership rows inside a transaction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RDBMEntityGroupStore()
| Method Detail |
|---|
protected static void commit(Connection conn)
throws SQLException
conn - java.sql.Connection
SQLException
public boolean contains(IEntityGroup group,
IGroupMember member)
throws GroupsException
IGroupMember member is a member of group.
contains in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroupmember - org.jasig.portal.groups.IGroupMember
GroupsException
public boolean containsGroupNamed(IEntityGroup containingGroup,
String memberName)
throws GroupsException
GroupsException
public void delete(IEntityGroup group)
throws GroupsException
delete in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public IEntityGroup find(String groupID)
throws GroupsException
find in interface IEntityGroupStoregroupID - the group ID
GroupsException
public Iterator findContainingGroups(IEntity ent)
throws GroupsException
ent - the entity in question
GroupsException
public Iterator findContainingGroups(IEntityGroup group)
throws GroupsException
group - org.jasig.portal.groups.IEntityGroup
GroupsException
public Iterator findContainingGroups(IGroupMember gm)
throws GroupsException
findContainingGroups in interface IEntityGroupStoregm - the group member in question
GroupsException
public Iterator findEntitiesForGroup(IEntityGroup group)
throws GroupsException
IEntities that are members of the IEntityGroup.
findEntitiesForGroup in interface IEntityGroupStoregroup - the entity group in question
GroupsException
public Iterator findGroupsByCreator(String creatorID)
throws GroupsException
creatorID -
GroupsException
public ILockableEntityGroup findLockable(String groupID)
throws GroupsException
findLockable in interface IEntityGroupStoregroupID - the group ID
GroupsException
public String[] findMemberGroupKeys(IEntityGroup group)
throws GroupsException
findMemberGroupKeys in interface IEntityGroupStoregroup - the org.jasig.portal.groups.IEntityGroup
GroupsException
public Iterator findMemberGroups(IEntityGroup group)
throws GroupsException
findMemberGroups in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsExceptionprotected static void logNoTransactionWarning()
public IEntity newEntity(Class type,
String key)
throws GroupsException
GroupsException
public IEntityGroup newInstance(Class type)
throws GroupsException
newInstance in interface IEntityGroupStoreGroupsException
protected static void rollback(Connection conn)
throws SQLException
conn - java.sql.Connection
SQLException
public EntityIdentifier[] searchForGroups(String query,
int method,
Class leaftype)
throws GroupsException
IEntityGroupStore
searchForGroups in interface IEntityGroupStoreGroupsException
protected static void setAutoCommit(Connection conn,
boolean newValue)
throws SQLException
conn - java.sql.ConnectionnewValue - boolean
SQLException - The exception description.
public static RDBMEntityGroupStore singleton()
throws GroupsException
GroupsException
public void update(IEntityGroup group)
throws GroupsException
update in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public void updateMembers(IEntityGroup eg)
throws GroupsException
updateMembers in interface IEntityGroupStoreeg - org.jasig.portal.groups.IEntityGroup
GroupsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||