|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.groups.ldap.LDAPGroupStore
public class LDAPGroupStore
LDAPGroupStore.
Nested Class Summary | |
---|---|
protected class |
LDAPGroupStore.EntitySet
|
protected class |
LDAPGroupStore.GroupShadow
|
Field Summary | |
---|---|
protected SmartCache |
contexts
|
protected static short |
ELEMENT_NODE
|
protected static java.lang.Class |
group
|
protected java.util.HashMap |
groups
|
protected static java.lang.Class |
iperson
|
protected java.lang.String |
keyfield
|
private static org.apache.commons.logging.Log |
log
|
protected java.lang.String |
logonid
|
protected java.lang.String |
logonpassword
|
protected java.lang.String |
namefield
|
protected SmartCache |
personkeys
|
protected java.lang.String |
url
|
protected java.lang.String |
usercontext
|
Fields inherited from interface org.jasig.portal.groups.IGroupConstants |
---|
CHANNEL_CATEGORIES, CONTAINS, ENDS_WITH, EVERYONE, IS, NODE_SEPARATOR, PORTAL_ADMINISTRATORS, STARTS_WITH |
Constructor Summary | |
---|---|
LDAPGroupStore()
|
|
LDAPGroupStore(org.w3c.dom.Document config)
|
Method Summary | |
---|---|
boolean |
contains(IEntityGroup group,
IGroupMember member)
Answers if group contains member . |
boolean |
containsGroupNamed(IEntityGroup group,
java.lang.String name)
Answers if group contains a member group named
name . |
void |
delete(IEntityGroup group)
Delete this IEntityGroup from the data store. |
IEntityGroup |
find(java.lang.String key)
Returns an instance of the IEntityGroup from the data store. |
java.util.Iterator |
findContainingGroups(IGroupMember gm)
Returns an Iterator over the Collection of
IEntityGroups that the IGroupMember belongs to. |
java.util.Iterator |
findEntitiesForGroup(IEntityGroup group)
Returns an Iterator over the Collection of
IEntities that are members of this IEntityGroup . |
ILockableEntityGroup |
findLockable(java.lang.String key)
Returns an instance of the ILockableEntityGroup from the data store. |
java.lang.String[] |
findMemberGroupKeys(IEntityGroup group)
Returns a String[] containing the keys of IEntityGroups
that are members of this IEntityGroup . |
java.util.Iterator |
findMemberGroups(IEntityGroup group)
Returns an Iterator over the Collection of
IEntityGroups that are members of this IEntityGroup . |
protected javax.naming.directory.DirContext |
getConnection()
|
protected LDAPGroupStore.GroupShadow[] |
getGroupShadows()
|
protected java.lang.String[] |
getPersonKeys(java.lang.String groupKey)
|
protected LDAPGroupStore.GroupShadow |
getShadow(IEntityGroup group)
|
protected void |
init(org.w3c.dom.Document config)
|
protected IEntityGroup |
makeGroup(LDAPGroupStore.GroupShadow shadow)
|
IEntityGroup |
newInstance(java.lang.Class entityType)
|
IEntity |
newInstance(java.lang.String key)
|
IEntity |
newInstance(java.lang.String key,
java.lang.Class type)
|
protected void |
processLdapResults(javax.naming.NamingEnumeration results,
java.util.ArrayList keys)
|
protected LDAPGroupStore.GroupShadow |
processXmlGroupRecursive(org.w3c.dom.Element groupElem)
|
EntityIdentifier[] |
searchForEntities(java.lang.String query,
int method,
java.lang.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(java.lang.String query,
int method,
java.lang.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 |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
protected java.lang.String url
protected java.lang.String logonid
protected java.lang.String logonpassword
protected java.lang.String keyfield
protected java.lang.String namefield
protected java.lang.String usercontext
protected java.util.HashMap groups
protected SmartCache contexts
protected SmartCache personkeys
protected static java.lang.Class iperson
protected static java.lang.Class group
protected static short ELEMENT_NODE
Constructor Detail |
---|
public LDAPGroupStore()
public LDAPGroupStore(org.w3c.dom.Document config)
Method Detail |
---|
protected void init(org.w3c.dom.Document config)
protected java.lang.String[] getPersonKeys(java.lang.String groupKey)
protected LDAPGroupStore.GroupShadow processXmlGroupRecursive(org.w3c.dom.Element groupElem)
protected void processLdapResults(javax.naming.NamingEnumeration results, java.util.ArrayList keys)
protected javax.naming.directory.DirContext getConnection()
protected IEntityGroup makeGroup(LDAPGroupStore.GroupShadow shadow) throws GroupsException
GroupsException
protected LDAPGroupStore.GroupShadow getShadow(IEntityGroup group)
public void delete(IEntityGroup group) throws GroupsException
IEntityGroupStore
IEntityGroup
from the data store.
delete
in interface IEntityGroupStore
group
- org.jasig.portal.groups.IEntityGroup
GroupsException
public IEntityGroup find(java.lang.String key) throws GroupsException
IEntityGroupStore
IEntityGroup
from the data store.
find
in interface IEntityGroupStore
key
- java.lang.String
GroupsException
public java.util.Iterator findContainingGroups(IGroupMember gm) throws GroupsException
IEntityGroupStore
Iterator
over the Collection
of
IEntityGroups
that the IGroupMember
belongs to.
findContainingGroups
in interface IEntityGroupStore
gm
- org.jasig.portal.groups.IEntityGroup
GroupsException
public java.lang.String[] findMemberGroupKeys(IEntityGroup group) throws GroupsException
IEntityGroupStore
String[]
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 IEntityGroupStore
group
- org.jasig.portal.groups.IEntityGroup
GroupsException
public java.util.Iterator findMemberGroups(IEntityGroup group) throws GroupsException
IEntityGroupStore
Iterator
over the Collection
of
IEntityGroups
that are members of this IEntityGroup
.
findMemberGroups
in interface IEntityGroupStore
group
- org.jasig.portal.groups.IEntityGroup
GroupsException
public IEntityGroup newInstance(java.lang.Class entityType) throws GroupsException
newInstance
in interface IEntityGroupStore
GroupsException
public void update(IEntityGroup group) throws GroupsException
IEntityGroupStore
IEntityGroup
AND ITS MEMBERSHIPS to the
data store, as appropriate.
update
in interface IEntityGroupStore
group
- org.jasig.portal.groups.IEntityGroup
GroupsException
public void updateMembers(IEntityGroup group) throws GroupsException
IEntityGroupStore
IEntityGroup
to
the data store.
updateMembers
in interface IEntityGroupStore
group
- org.jasig.portal.groups.IEntityGroup
GroupsException
public ILockableEntityGroup findLockable(java.lang.String key) throws GroupsException
IEntityGroupStore
ILockableEntityGroup
from the data store.
findLockable
in interface IEntityGroupStore
key
- java.lang.String
GroupsException
protected LDAPGroupStore.GroupShadow[] getGroupShadows()
public EntityIdentifier[] searchForGroups(java.lang.String query, int method, java.lang.Class leaftype) throws GroupsException
IEntityGroupStore
searchForGroups
in interface IEntityGroupStore
GroupsException
public java.util.Iterator findEntitiesForGroup(IEntityGroup group) throws GroupsException
IEntityGroupStore
Iterator
over the Collection
of
IEntities
that are members of this IEntityGroup
.
findEntitiesForGroup
in interface IEntityGroupStore
group
- org.jasig.portal.groups.IEntityGroup
GroupsException
public IEntity newInstance(java.lang.String key) throws GroupsException
newInstance
in interface IEntityStore
key
- java.lang.String
GroupsException
public IEntity newInstance(java.lang.String key, java.lang.Class type) throws GroupsException
newInstance
in interface IEntityStore
key
- java.lang.String - the entity's keytype
- java.lang.Class - the entity's Type
GroupsException
public EntityIdentifier[] searchForEntities(java.lang.String query, int method, java.lang.Class type) throws GroupsException
IEntitySearcher
searchForEntities
in interface IEntitySearcher
GroupsException
public boolean contains(IEntityGroup group, IGroupMember member) throws GroupsException
group
contains member
.
contains
in interface IEntityGroupStore
group
- org.jasig.portal.groups.IEntityGroupmember
- org.jasig.portal.groups.IGroupMember
GroupsException
public boolean containsGroupNamed(IEntityGroup group, java.lang.String name) throws GroupsException
group
contains a member group named
name
.
group
- org.jasig.portal.groups.IEntityGroupname
- java.lang.String
GroupsException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |