public class StartCenterLoader
extends java.lang.Object
Constructor and Description |
---|
StartCenterLoader(UserInfo ui)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(org.w3c.dom.Element parentElement,
org.w3c.dom.Element childElement,
int spaces)
Adds child element to parent element element
|
void |
addChildren(java.lang.String id,
MboSetRemote portletDataSet,
org.w3c.dom.Element rootElement,
org.w3c.dom.Element portletElement,
java.lang.String tagName,
java.lang.String[] attributes)
Creates children for a given portlet type, sets indentation and data.
|
java.lang.String |
getWebClientProperty(java.lang.String prop,
java.lang.String defaultValue)
Returns webclient properties
|
void |
loadStartCenterForUser(java.lang.String groupName)
Reads XML from database, creates a dom and inserts info into Start Center and Portlet Tables
|
long |
loadStartCenterFromTemplate(java.lang.String templateId,
java.lang.String groupName,
boolean modifyTemplate)
Main method for loading a start center based on a template and for a given group.
|
void |
saveStartCenterXML(java.lang.String startCenterId)
Used to save the XML for a template being created/edited.
Takes start center information for a given template (as its sat in SCCONFIG), creates XML DOM for it and stores it the database for the selected groups.
|
void |
setAttributes(java.lang.String currentSaveContentUID,
java.lang.String[] attributes,
MboRemote mbo,
org.w3c.dom.Element element,
java.lang.String parentTagName)
Sets information from a given MboRemote into an Element for the given set of attributes
|
org.w3c.dom.Text |
spaceAndNewLine(org.w3c.dom.Document doc,
int spaces)
Returns a node with spaces and new line for formatting
|
public StartCenterLoader(UserInfo ui)
ui
- public void loadStartCenterForUser(java.lang.String groupName) throws MXException
groupName
- Group Nameui
- UserInfoMXException
public long loadStartCenterFromTemplate(java.lang.String templateId, java.lang.String groupName, boolean modifyTemplate) throws MXException
templateId
- SCTEMPLATE.SCTEMPLATEIDgroupName
- group namemodifyTemplate
- flag that tells if this is during a edit of a templateMXException
public void setAttributes(java.lang.String currentSaveContentUID, java.lang.String[] attributes, MboRemote mbo, org.w3c.dom.Element element, java.lang.String parentTagName) throws MXException, java.rmi.RemoteException
attributes
- mbo
- element
- MXException
java.rmi.RemoteException
public void saveStartCenterXML(java.lang.String startCenterId)
startCenterId
- which start center has to be copiedpublic org.w3c.dom.Text spaceAndNewLine(org.w3c.dom.Document doc, int spaces)
doc
- forChild
- public void addChild(org.w3c.dom.Element parentElement, org.w3c.dom.Element childElement, int spaces)
public void addChildren(java.lang.String id, MboSetRemote portletDataSet, org.w3c.dom.Element rootElement, org.w3c.dom.Element portletElement, java.lang.String tagName, java.lang.String[] attributes)
id
- contentuid to be used on the elementportletDataSet
- MboSetRemote for portlet datarootElement
- Root elementportletElement
- portlet elementtagName
- tag name for the portlet dataattributes
- array of attribute namespublic java.lang.String getWebClientProperty(java.lang.String prop, java.lang.String defaultValue)