| java.lang.Object org.jasig.portal.layout.dlm.EditManager
EditManager | public class EditManager (Code) | | Handles ILF node edit directives recorded in the PLF.
version: $Revision: 36299 $ $Date: 2005-11-11 14:05:08 -0700 (Fri, 11 Nov 2005) $ since: uPortal 2.5 |
Method Summary | |
static void | addEditDirective(Element plfNode, String attributeName, IPerson person) Create and append an edit directive to the edit set if not there. | public static void | addPrefsDirective(Element plfNode, String attributeName, IPerson person) Create and append a user preferences edit directive to the edit set if
not there. | public static boolean | applyEditSet(Element plfChild, Element original) Evaluate whether attribute changes exist in the ilfChild and if so
apply them. | public static void | removeEditDirective(String elementId, String attributeName, IPerson person) Searches for a dlm:edit command which indicates that a node attribute was
reset to the value in the fragment and if found removes it from the
user's PLF. | public static void | removePreferenceDirective(IPerson person, String elementId, String attributeName) Searches for a dlm:pref command which indicates that a user preference
was change and if found removes it from the user's PLF. |
addEditDirective | static void addEditDirective(Element plfNode, String attributeName, IPerson person) throws PortalException(Code) | | Create and append an edit directive to the edit set if not there.
This only records that the attribute was changed
and the value in the plf copy node should be used, if
allowed, during the merge at login time.
|
addPrefsDirective | public static void addPrefsDirective(Element plfNode, String attributeName, IPerson person) throws PortalException(Code) | | Create and append a user preferences edit directive to the edit set if
not there. This only records that the attribute was changed. The value
will be in the user preferences object for the user.
|
applyEditSet | public static boolean applyEditSet(Element plfChild, Element original)(Code) | | Evaluate whether attribute changes exist in the ilfChild and if so
apply them. Returns true if some changes existed. If changes existed
but matched those in the original node then they are not applicable,
are removed from the editSet, and false is returned.
|
removeEditDirective | public static void removeEditDirective(String elementId, String attributeName, IPerson person)(Code) | | Searches for a dlm:edit command which indicates that a node attribute was
reset to the value in the fragment and if found removes it from the
user's PLF.
|
removePreferenceDirective | public static void removePreferenceDirective(IPerson person, String elementId, String attributeName)(Code) | | Searches for a dlm:pref command which indicates that a user preference
was change and if found removes it from the user's PLF.
|
|
|