|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.groups.pags.PersonAttributesGroupStore
public class PersonAttributesGroupStore
The Person Attributes Group Store uses attributes stored in the IPerson object to determine group membership. It can use attributes from any data source supported by the PersonDirectory service.
| Nested Class Summary | |
|---|---|
static class |
PersonAttributesGroupStore.GroupDefinition
|
static class |
PersonAttributesGroupStore.TestGroup
|
| 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 | |
|---|---|
PersonAttributesGroupStore()
|
|
| Method Summary | |
|---|---|
boolean |
contains(IEntityGroup group,
IGroupMember member)
Answers if group contains member. |
void |
delete(IEntityGroup group)
Delete this IEntityGroup from the data store. |
IEntityGroup |
find(String key)
Returns an instance of the IEntityGroup from the data store. |
Iterator |
findContainingGroups(IGroupMember member)
Returns an Iterator over the Collection of
IEntityGroups that the IGroupMember belongs to. |
Iterator |
findEntitiesForGroup(IEntityGroup group)
Returns an Iterator over the Collection of
IEntities that are members of this IEntityGroup. |
ILockableEntityGroup |
findLockable(String key)
Returns an instance of the ILockableEntityGroup from the data store. |
String[] |
findMemberGroupKeys(IEntityGroup group)
Returns a String[] containing the keys of IEntityGroups
that are members of this IEntityGroup. |
Iterator<IEntityGroup> |
findMemberGroups(IEntityGroup group)
Returns an Iterator over the Collection of
IEntityGroups that are members of this IEntityGroup. |
IEntityGroup |
newInstance(Class entityType)
|
IEntity |
newInstance(String key)
|
IEntity |
newInstance(String key,
Class type)
|
EntityIdentifier[] |
searchForEntities(String query,
int method,
Class type)
Find EntityIdentifiers for entities whose name matches the query string according to the specified method and is of the specified type |
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 |
void |
update(IEntityGroup group)
Adds or updates the IEntityGroup AND ITS MEMBERSHIPS to the
data store, as appropriate. |
void |
updateMembers(IEntityGroup group)
Commits the group memberships of the IEntityGroup to
the data store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersonAttributesGroupStore()
| Method Detail |
|---|
public boolean contains(IEntityGroup group,
IGroupMember member)
throws GroupsException
IEntityGroupStoregroup contains member.
contains in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroupmember - org.jasig.portal.groups.IGroupMember
GroupsException
public void delete(IEntityGroup group)
throws GroupsException
IEntityGroupStoreIEntityGroup from the data store.
delete in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public IEntityGroup find(String key)
throws GroupsException
IEntityGroupStoreIEntityGroup from the data store.
find in interface IEntityGroupStorekey - java.lang.String
GroupsException
public Iterator findContainingGroups(IGroupMember member)
throws GroupsException
IEntityGroupStoreIterator over the Collection of
IEntityGroups that the IGroupMember belongs to.
findContainingGroups in interface IEntityGroupStoremember - org.jasig.portal.groups.IEntityGroup
GroupsException
public Iterator findEntitiesForGroup(IEntityGroup group)
throws GroupsException
IEntityGroupStoreIterator over the Collection of
IEntities that are members of this IEntityGroup.
findEntitiesForGroup in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public ILockableEntityGroup findLockable(String key)
throws GroupsException
IEntityGroupStoreILockableEntityGroup from the data store.
findLockable in interface IEntityGroupStorekey - java.lang.String
GroupsException
public String[] findMemberGroupKeys(IEntityGroup group)
throws GroupsException
IEntityGroupStoreString[] containing the keys of IEntityGroups
that are members of this IEntityGroup. In a composite group
system, a group may contain a member group from a different service. This is
called a foreign membership, and is only possible in an internally-managed
service. A group store in such a service can return the key of a foreign member
group, but not the group itself, which can only be returned by its local store.
findMemberGroupKeys in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public Iterator<IEntityGroup> findMemberGroups(IEntityGroup group)
throws GroupsException
IEntityGroupStoreIterator over the Collection of
IEntityGroups that are members of this IEntityGroup.
findMemberGroups in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public IEntityGroup newInstance(Class entityType)
throws GroupsException
newInstance in interface IEntityGroupStoreGroupsException
public EntityIdentifier[] searchForGroups(String query,
int method,
Class leaftype)
throws GroupsException
IEntityGroupStore
searchForGroups in interface IEntityGroupStoreGroupsException
public void update(IEntityGroup group)
throws GroupsException
IEntityGroupStoreIEntityGroup AND ITS MEMBERSHIPS to the
data store, as appropriate.
update in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public void updateMembers(IEntityGroup group)
throws GroupsException
IEntityGroupStoreIEntityGroup to
the data store.
updateMembers in interface IEntityGroupStoregroup - org.jasig.portal.groups.IEntityGroup
GroupsException
public IEntity newInstance(String key,
Class type)
throws GroupsException
newInstance in interface IEntityStorekey - java.lang.String - the entity's keytype - java.lang.Class - the entity's Type
GroupsException
public IEntity newInstance(String key)
throws GroupsException
newInstance in interface IEntityStorekey - java.lang.String
GroupsException
public EntityIdentifier[] searchForEntities(String query,
int method,
Class type)
throws GroupsException
IEntitySearcher
searchForEntities in interface IEntitySearcherGroupsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||