|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.layout.dlm.FragmentActivator
public class FragmentActivator
Field Summary | |
---|---|
private static int |
CHANNELS
|
private RDBMDistributedLayoutStore |
dls
|
private static int |
FOLDERS
|
private FragmentDefinition[] |
fragments
|
private IUserIdentityStore |
identityStore
|
private static org.apache.commons.logging.Log |
LOG
|
private IRoleUpdater |
mRoleUpdater
|
static java.lang.String |
RCS_ID
|
Constructor Summary | |
---|---|
FragmentActivator(RDBMDistributedLayoutStore dls,
FragmentDefinition[] fragments)
|
Method Summary | |
---|---|
(package private) void |
activateFragments()
|
private IPerson |
bindToOwner(FragmentDefinition fragment)
|
private int |
createOwner(IPerson owner,
FragmentDefinition fragment)
|
private void |
fragmentizeIds(java.lang.String labelBase,
DistributedUserPreferences up,
int which)
Changes user preference ids of folders or channels from the uPortal default of sXX for folders and nXX for channels to a globally safe value containing the user id and layout id from which the node came. |
(package private) void |
fragmentizeLayout(UserView view,
FragmentDefinition fragment)
Removes all top level folders that are hidden, header, or footer and then changes all node ids to their globally safe incorporated version. |
(package private) void |
fragmentizeSSUP(UserView view,
FragmentDefinition fragment)
Changes channel and folder ids on the structure stylesheet user preference object to the globally safe version containing user id and layout id from which they came. |
(package private) void |
fragmentizeTSUP(UserView view,
FragmentDefinition fragment)
Changes channel ids on the theme stylesheet user preference object to the globally safe version containing user id and layout id from which they came. |
private void |
loadLayout(UserView view,
FragmentDefinition fragment,
IPerson owner)
|
private void |
loadPreferences(UserView view,
FragmentDefinition fragment)
|
private void |
saveLayout(UserView view,
IPerson owner)
Saves the loaded layout in the database for the user and profile. |
private void |
setIdsAndAttribs(org.w3c.dom.Element parent,
java.lang.String labelBase,
java.lang.String index,
java.lang.String precedence)
Recursive method that passes through a layout tree and changes all ids from the regular format of sXX or nXX to the globally safe incorporated id of form uXlXsXX or uXlXnXX indicating the user id and layout id from which this node came. |
private void |
updateOwnerRoles(FragmentDefinition definition)
Makes sure that the fragment owner has the roles specified and no others. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RCS_ID
private static org.apache.commons.logging.Log LOG
private FragmentDefinition[] fragments
private IUserIdentityStore identityStore
private RDBMDistributedLayoutStore dls
private IRoleUpdater mRoleUpdater
private static final int CHANNELS
private static final int FOLDERS
Constructor Detail |
---|
public FragmentActivator(RDBMDistributedLayoutStore dls, FragmentDefinition[] fragments)
Method Detail |
---|
void activateFragments()
private void saveLayout(UserView view, IPerson owner) throws java.lang.Exception
view
- owner
-
java.lang.Exception
private void updateOwnerRoles(FragmentDefinition definition)
definition
- The frament definitionprivate IPerson bindToOwner(FragmentDefinition fragment)
private int createOwner(IPerson owner, FragmentDefinition fragment)
private void loadLayout(UserView view, FragmentDefinition fragment, IPerson owner)
private void loadPreferences(UserView view, FragmentDefinition fragment)
void fragmentizeSSUP(UserView view, FragmentDefinition fragment)
void fragmentizeTSUP(UserView view, FragmentDefinition fragment)
private void fragmentizeIds(java.lang.String labelBase, DistributedUserPreferences up, int which)
void fragmentizeLayout(UserView view, FragmentDefinition fragment)
private void setIdsAndAttribs(org.w3c.dom.Element parent, java.lang.String labelBase, java.lang.String index, java.lang.String precedence)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |