|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.BasicStoreListener com.jalios.jcms.GroupListener
public class GroupListener
This class listens to mutations of Group
instances.
Field Summary | |
---|---|
protected static Map |
dn2GroupMap
|
static String |
REVISION
|
Fields inherited from interface com.jalios.util.JaliosConstants |
---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
Constructor Summary | |
---|---|
GroupListener()
|
Method Summary | |
---|---|
static void |
addGroupInDnToGroupMap(String dn,
Group group)
Add the given new group to the index of DN to Group Map. |
static Group |
getGroupFromDN(String dn)
Returns a LDAP group from its distinguish name. |
void |
handleCommitUpdate(Storable storable,
Storable oldStorable,
boolean firstTime)
This method gets called when after a storable has been updated. |
void |
handleCreate(Storable storable,
boolean firstTime)
This method gets called when a storable is created. |
void |
handleDelete(Storable storable,
boolean firstTime)
This method gets called when a storable is deleted. |
protected void |
refreshWorkspacesMembers(Group group)
Refresh member index of workspace |
static void |
removeGroupFromDnToGroupMap(String dn)
Remove the given group from the index of DN to Group Map. |
static void |
updateDnToGroupMap(Group oldGroup,
Group newGroup)
Update the given group in the index of DN to Group Map. |
protected void |
updateMembers(Group group)
Invalidate canManageContent foreach members of this group |
protected void |
updateWorkspaces(Group group,
boolean add)
Add Group to workspace groupSet |
Methods inherited from class com.jalios.jcms.BasicStoreListener |
---|
handlePrepareUpdate, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
protected static final Map dn2GroupMap
Constructor Detail |
---|
public GroupListener()
Method Detail |
---|
public void handleCreate(Storable storable, boolean firstTime)
StoreListener
handleCreate
in interface StoreListener
handleCreate
in class BasicStoreListener
storable
- the storablefirstTime
- true if it is the first time this operation is processedStoreListener.handleCreate(Storable, boolean)
public void handleCommitUpdate(Storable storable, Storable oldStorable, boolean firstTime)
StoreListener
handleCommitUpdate
in interface StoreListener
handleCommitUpdate
in class BasicStoreListener
storable
- the storable, this instance is the object that was created
at first and that will be stored in jcms until deletion of the storable
with this ID.
You should always manipulate this object if you maintain any index.oldStorable
- the previous version of the storable, it is a clone, do not use
in any index, it should only be used to access old values.firstTime
- true if it is the first time this operation is processedStoreListener.handleCommitUpdate(Storable, Storable, boolean)
public void handleDelete(Storable storable, boolean firstTime)
StoreListener
handleDelete
in interface StoreListener
handleDelete
in class BasicStoreListener
storable
- the storablefirstTime
- true if it is the first time this operation is processedStoreListener.handleDelete(Storable, boolean)
protected void updateMembers(Group group)
group
- the group to be updatedprotected void updateWorkspaces(Group group, boolean add)
group
- the group to be added/removedadd
- true means "add", false means "remove"protected void refreshWorkspacesMembers(Group group)
group
- the group to refresh the memberspublic static void addGroupInDnToGroupMap(String dn, Group group)
public static void updateDnToGroupMap(Group oldGroup, Group newGroup)
public static void removeGroupFromDnToGroupMap(String dn)
public static Group getGroupFromDN(String dn)
dn
- the dn of the group
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |