|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.apps.server.util.SystemPropertiesFilterUtil
Constructor Summary | |
SystemPropertiesFilterUtil()
|
Method Summary | |
static org.w3c.dom.Document |
copyFromDefault(java.lang.String objectStoreName,
java.lang.String objectType,
org.w3c.dom.Document xml)
|
static void |
filterPropertiesBySymbolicName(org.w3c.dom.Document domProps,
java.lang.String[] organizedPropDescs,
java.util.Locale locale)
Helper method to reorder the property description list based on the passed in order. |
static void |
filterPropertyDescritionsBySymbolicName(org.w3c.dom.Document domPropDescs,
java.lang.String[] organizedPropDescs,
java.lang.String[] alwaysShowPropDescs,
java.util.Locale locale)
Helper method to reorder the property description list based on the passed in order. |
static org.w3c.dom.Document |
getCustomLabels(org.w3c.dom.Document propDescsXML,
java.util.Locale locale)
|
static java.lang.String[] |
getPropDefaultAndCustomLabelsList(org.w3c.dom.Document propDescs,
java.lang.String[] propSymnames,
java.util.Locale locale)
Retrieve filtered property labels as symbolic names list in order |
static java.lang.String[] |
getPropDescsList(org.w3c.dom.Document filteredProps,
java.lang.String objectStoreName,
java.lang.String objectType)
Retrieve property descriptions as symbolic names list in order |
static java.lang.String[] |
getPropDescsList(java.lang.String objectStoreName,
java.lang.String objectType)
Retrieve property descriptions as symbolic names list in order |
static org.w3c.dom.Document |
getSystemPropertiesDocument()
|
static boolean |
isObjectExist(java.lang.String objectStoreName,
java.lang.String objectType)
|
static boolean |
isObjectExist(java.lang.String objectStoreName,
java.lang.String objectType,
org.w3c.dom.Document filteredProps)
|
static void |
load(java.io.InputStream in)
|
static void |
load(java.lang.String path)
Read the properties file from local storage indicated by mode parameter |
static void |
main(java.lang.String[] args)
|
static org.w3c.dom.Document |
removeObject(java.lang.String objectStoreName,
java.lang.String objectType,
org.w3c.dom.Document xml)
|
static org.w3c.dom.Document |
replaceObject(java.lang.String objectStoreName,
java.lang.String objectType,
java.lang.String[] properties,
org.w3c.dom.Document xml)
|
static void |
save(java.io.OutputStream os)
Save the Template to local storage indicated by mode parameter |
static void |
setSystemPropertiesDocument(org.w3c.dom.Document doc,
java.lang.String objectStore,
boolean rmEnabled)
|
static org.w3c.dom.Document |
updateProps(java.lang.String objectStoreName,
java.lang.String type,
org.w3c.dom.Document filteredProps,
org.w3c.dom.Document propDescsXML,
javax.servlet.http.HttpServletRequest request)
Updates the Document with values returned in the request object. |
protected static void |
writeConfigurableLabelsXML(java.lang.String fileName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SystemPropertiesFilterUtil()
Method Detail |
public static void load(java.lang.String path) throws java.lang.Exception
path
- - local storage path file name (\WEB-INF\SystemPropertiesView.xml)
java.lang.Exception
public static void load(java.io.InputStream in) throws java.lang.Exception
java.lang.Exception
public static void save(java.io.OutputStream os) throws java.lang.Exception
os
- output steam ( \WEB_INF\SystemPropertiesView.xml)
java.lang.Exception
public static org.w3c.dom.Document getSystemPropertiesDocument() throws java.lang.Exception
java.lang.Exception
public static void setSystemPropertiesDocument(org.w3c.dom.Document doc, java.lang.String objectStore, boolean rmEnabled) throws java.lang.Exception
java.lang.Exception
public static java.lang.String[] getPropDescsList(java.lang.String objectStoreName, java.lang.String objectType) throws java.lang.Exception
objectStoreName
- - Object store nameobjectType
- - Object type
java.lang.Exception
- if there were errorspublic static java.lang.String[] getPropDescsList(org.w3c.dom.Document filteredProps, java.lang.String objectStoreName, java.lang.String objectType) throws java.lang.Exception
objectStoreName
- - Object store nameobjectType
- - Object type
java.lang.Exception
- if there were errorspublic static java.lang.String[] getPropDefaultAndCustomLabelsList(org.w3c.dom.Document propDescs, java.lang.String[] propSymnames, java.util.Locale locale) throws java.lang.Exception
propSymnames
- an array of symnames to get the custom names
java.lang.Exception
- if there were errorspublic static void filterPropertyDescritionsBySymbolicName(org.w3c.dom.Document domPropDescs, java.lang.String[] organizedPropDescs, java.lang.String[] alwaysShowPropDescs, java.util.Locale locale) throws java.lang.Exception
domPropDescs
- The property descriptions as XML to reorder.organizedPropDescs
- the list of symbolic property names in the correct orderalwaysShowPropDescs
- items in this array will always be shown even when they are marked as hidden.
java.lang.Exception
- if there were errors.public static void filterPropertiesBySymbolicName(org.w3c.dom.Document domProps, java.lang.String[] organizedPropDescs, java.util.Locale locale) throws java.lang.Exception
domProps
- The property descriptions as XML to reorder.organizedPropDescs
- the list of symbolic property names in the correct order
java.lang.Exception
- if there were errors.public static org.w3c.dom.Document updateProps(java.lang.String objectStoreName, java.lang.String type, org.w3c.dom.Document filteredProps, org.w3c.dom.Document propDescsXML, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
objectStoreName
- Object store nametype
- Object type; "document", "folder", or "custom"filteredProps
- The filtered system properties XML Document.request
- The HttpServletRequest object.
java.lang.Exception
public static boolean isObjectExist(java.lang.String objectStoreName, java.lang.String objectType) throws java.lang.Exception
java.lang.Exception
public static boolean isObjectExist(java.lang.String objectStoreName, java.lang.String objectType, org.w3c.dom.Document filteredProps) throws java.lang.Exception
java.lang.Exception
public static org.w3c.dom.Document copyFromDefault(java.lang.String objectStoreName, java.lang.String objectType, org.w3c.dom.Document xml) throws java.lang.Exception
java.lang.Exception
public static org.w3c.dom.Document removeObject(java.lang.String objectStoreName, java.lang.String objectType, org.w3c.dom.Document xml) throws java.lang.Exception
java.lang.Exception
public static org.w3c.dom.Document replaceObject(java.lang.String objectStoreName, java.lang.String objectType, java.lang.String[] properties, org.w3c.dom.Document xml) throws java.lang.Exception
java.lang.Exception
public static org.w3c.dom.Document getCustomLabels(org.w3c.dom.Document propDescsXML, java.util.Locale locale) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
protected static void writeConfigurableLabelsXML(java.lang.String fileName) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |