|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.apps.server.util.PropertiesFilterUtil
Field Summary | |
static java.lang.String |
DEFAULT_OBJECT_STORE_NAME
|
static java.lang.String |
MODE_RECORDS_MANAGEMENT
|
static java.lang.String |
MODE_WORKPLACE
|
protected static java.lang.String |
XPath_ALL_PROPDESC
|
protected static java.lang.String |
XPath_PROPDESCS
|
protected static java.lang.String |
XPath_PROPERTIES
|
Constructor Summary | |
PropertiesFilterUtil()
|
Method Summary | |
void |
copyFromDefault(java.lang.String defaultObjectStore,
java.lang.String objectStoreName,
java.lang.String objectType,
org.w3c.dom.Document xml)
|
org.w3c.dom.Document |
createDefaultXML()
Create default filter properties |
void |
filterPropertiesBySymbolicName(org.w3c.dom.Document domProps,
java.lang.String[] organizedPropDescs,
java.lang.String[] propertyLabels)
Helper method to reorder the property description list based on the passed in order. |
void |
filterPropertyDescritionsBySymbolicName(org.w3c.dom.Document domPropDescs,
java.lang.String[] organizedPropDescs,
java.lang.String[] propertyLabels)
Helper method to reorder the property description list based on the passed in order. |
java.lang.String |
getClassId(org.w3c.dom.Document classXML,
int type)
|
java.lang.String |
getLabel(java.lang.String objectStoreName,
java.lang.String type,
java.lang.String symName,
java.util.Locale locale,
org.w3c.dom.Document filteredProperties,
org.w3c.dom.Document propDescs)
|
static java.lang.String[] |
getPropDescsList(org.w3c.dom.Document filteredProperties,
java.lang.String objectStoreName,
java.lang.String objectType,
java.util.Locale locale)
Retrieve property descriptions as symbolic names list in order |
static java.lang.String[] |
getPropLabelsList(org.w3c.dom.Document filteredProperties,
org.w3c.dom.Document propDescs,
java.lang.String objectStoreName,
java.lang.String objectType,
java.util.Locale locale)
Retrieve filtered property labels as symbolic names list in order |
boolean |
isObjectExist(java.lang.String objectStoreName,
java.lang.String objectType,
org.w3c.dom.Document xml)
|
boolean |
isObjectExist(java.lang.String mode,
java.lang.String objectStoreName,
java.lang.String objectType,
javax.servlet.ServletContext context,
java.util.Locale locale)
|
boolean |
isObjectStoreExist(java.lang.String objectStoreName,
org.w3c.dom.Document xml)
|
boolean |
isObjectStoreExist(java.lang.String mode,
java.lang.String objectStoreName,
javax.servlet.ServletContext context,
java.util.Locale locale)
|
void |
organizePropertyDescritionsBySymbolicName(org.w3c.dom.Document domPropDescs,
java.lang.String[] organizedPropDescs)
Helper method to reordere the property description list based on the passed in order. |
org.w3c.dom.Document |
readFromFile(java.lang.String mode,
java.util.Locale locale,
javax.servlet.ServletContext context)
Read the properties file from local storage indicated by mode parameter |
void |
removeObject(java.lang.String mode,
java.lang.String objectStoreName,
java.lang.String objectType,
javax.servlet.ServletContext context,
java.util.Locale locale)
|
boolean |
updateProps(java.lang.String objectStoreName,
java.lang.String type,
java.util.Locale locale,
org.w3c.dom.Document filteredProps,
org.w3c.dom.Document propDescsDoc,
javax.servlet.http.HttpServletRequest request)
Updates the Document with values returned in the request object. |
void |
writeToFile(java.lang.String mode,
org.w3c.dom.Document xml,
java.util.Locale locale,
javax.servlet.ServletContext context)
Save the Template to local storage indicated by mode parameter |
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 DEFAULT_OBJECT_STORE_NAME
public static final java.lang.String MODE_RECORDS_MANAGEMENT
public static final java.lang.String MODE_WORKPLACE
protected static final java.lang.String XPath_PROPERTIES
protected static final java.lang.String XPath_PROPDESCS
protected static final java.lang.String XPath_ALL_PROPDESC
Constructor Detail |
public PropertiesFilterUtil()
Method Detail |
public static java.lang.String[] getPropDescsList(org.w3c.dom.Document filteredProperties, java.lang.String objectStoreName, java.lang.String objectType, java.util.Locale locale) throws java.lang.Exception
filteredProperties
- Document object holding list of property descriptions
java.lang.Exception
- if there were errorspublic static java.lang.String[] getPropLabelsList(org.w3c.dom.Document filteredProperties, org.w3c.dom.Document propDescs, java.lang.String objectStoreName, java.lang.String objectType, java.util.Locale locale) throws java.lang.Exception
filteredProperties
- Document object holding list of property descriptions
java.lang.Exception
- if there were errorspublic void organizePropertyDescritionsBySymbolicName(org.w3c.dom.Document domPropDescs, java.lang.String[] organizedPropDescs) throws java.lang.Exception
domPropDescs
- 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 void filterPropertyDescritionsBySymbolicName(org.w3c.dom.Document domPropDescs, java.lang.String[] organizedPropDescs, java.lang.String[] propertyLabels) throws java.lang.Exception
domPropDescs
- 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 void filterPropertiesBySymbolicName(org.w3c.dom.Document domProps, java.lang.String[] organizedPropDescs, java.lang.String[] propertyLabels) 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 java.lang.String getLabel(java.lang.String objectStoreName, java.lang.String type, java.lang.String symName, java.util.Locale locale, org.w3c.dom.Document filteredProperties, org.w3c.dom.Document propDescs) throws java.lang.Exception
java.lang.Exception
public boolean updateProps(java.lang.String objectStoreName, java.lang.String type, java.util.Locale locale, org.w3c.dom.Document filteredProps, org.w3c.dom.Document propDescsDoc, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
objectStoreName
- Object store nametype
- Object type; "document", "folder", or "custom"locale
- LocalefilteredProps
- The filtered system properties XML Document.propDescsDoc
- The property descriptions XML Document.request
- The HttpServletRequest object.
java.lang.Exception
public org.w3c.dom.Document createDefaultXML() throws java.lang.Exception
java.lang.Exception
public boolean isObjectStoreExist(java.lang.String objectStoreName, org.w3c.dom.Document xml) throws java.lang.Exception
java.lang.Exception
public boolean isObjectExist(java.lang.String objectStoreName, java.lang.String objectType, org.w3c.dom.Document xml) throws java.lang.Exception
java.lang.Exception
public boolean isObjectStoreExist(java.lang.String mode, java.lang.String objectStoreName, javax.servlet.ServletContext context, java.util.Locale locale) throws java.lang.Exception
java.lang.Exception
public boolean isObjectExist(java.lang.String mode, java.lang.String objectStoreName, java.lang.String objectType, javax.servlet.ServletContext context, java.util.Locale locale) throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Document readFromFile(java.lang.String mode, java.util.Locale locale, javax.servlet.ServletContext context) throws java.lang.Exception
mode
- mode to indicate local storage path and file name ("WEB-INF/filteredproperteis.xml")
java.lang.Exception
public void writeToFile(java.lang.String mode, org.w3c.dom.Document xml, java.util.Locale locale, javax.servlet.ServletContext context) throws java.lang.Exception
mode
- mode to indicate local storage path and file name ("WEB-INF/filteredproperteis.xml")
java.lang.Exception
public java.lang.String getClassId(org.w3c.dom.Document classXML, int type) throws java.lang.Exception
java.lang.Exception
public void copyFromDefault(java.lang.String defaultObjectStore, java.lang.String objectStoreName, java.lang.String objectType, org.w3c.dom.Document xml) throws java.lang.Exception
java.lang.Exception
public void removeObject(java.lang.String mode, java.lang.String objectStoreName, java.lang.String objectType, javax.servlet.ServletContext context, java.util.Locale locale) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |