|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.xml.WcmDocumentImpl
com.filenet.wcm.toolkit.server.util.xml.WcmXMLObject
com.filenet.wcm.toolkit.server.util.xml.WcmXMLProperties
com.filenet.wcm.toolkit.server.util.xml.WcmXMLSecurityPolicy
WcmXMLProperties derived class for manipulating Security Policy specific XML
Field Summary | |
static java.lang.String |
APPLY_STATE_ID_IN_PROCESS
Apply State Id for an in Process Document |
static java.lang.String |
APPLY_STATE_ID_RELEASED
Apply State Id for a Released Document |
static java.lang.String |
APPLY_STATE_ID_RESERVATION
Apply State Id for a Reservation Document |
static java.lang.String |
APPLY_STATE_ID_SUPERSEDED
Apply State Id for a Superseded Document |
static java.lang.String |
ELEM_SECURITY_TEMPLATE
XPath for a security template node |
static java.lang.String |
ELEM_SECURITY_TEMPLATES
XPath for the security templates node |
static int |
VERSION_STATUS_IN_PROCESS
Value of 1; document version is in a in-process status. |
static int |
VERSION_STATUS_RELEASED
Value of 0; document version is in a released status. |
static int |
VERSION_STATUS_RESERVATION
Value of 2; document version is in a reservation status. |
static int |
VERSION_STATUS_SUPERSEDED
Value of 3; document version is in a superseded status. |
Fields inherited from class com.filenet.wcm.toolkit.server.util.xml.WcmXMLProperties |
ELEM_PROPERTY |
Fields inherited from class com.filenet.wcm.toolkit.server.util.xml.WcmXMLObject |
ELEM_CLASSID, ELEM_CLASSNAME, ELEM_OBJECT, ELEM_OBJECTSTORE |
Fields inherited from class com.filenet.wcm.toolkit.server.util.xml.WcmDocumentImpl |
ELEM_OBJECTSET, thisDoc |
Constructor Summary | |
WcmXMLSecurityPolicy(org.w3c.dom.Document newXMLSecurityPolicy)
Constructor takes the Document object to implement |
Method Summary | |
void |
cancelTemplate()
Remove the buffer template, restore original |
org.w3c.dom.Element |
createSecurityPolicyElement()
Create the customobject Element |
org.w3c.dom.Element |
createTemplatesElement()
Creates a templates element and returns it |
void |
defineTemplate(java.lang.String applyStateId,
java.lang.String name,
boolean enabled)
Defines the template with the given values |
org.w3c.dom.NodeList |
getPermissionsNodeList(java.lang.String applyStateId)
Get the permissions NodeList |
java.lang.String |
getPolicyPreservedDirectPermissions()
Returns the preserved direct permissions value |
org.w3c.dom.Element |
getSecurityPolicy()
Returns the customobject Element or creates a new one |
java.lang.String[] |
getTemplateApplyStateIds()
Returns a String array of applyStateIds |
boolean |
getTemplateIsEnabled(java.lang.String applyStateId)
Indicates if this template is enabled |
java.lang.String |
getTemplateName(java.lang.String applyStateId)
Get the template Name with the given applyStateId |
org.w3c.dom.Element |
getTemplatePermissions()
Writeable get templates permissions |
org.w3c.dom.Element |
getTemplatePermissions(java.lang.String applyStateId)
Read only get templates permissions - Do NOT Modify |
org.w3c.dom.Element |
getTemplatesElement()
Get the Templates element |
static WcmXMLSecurityPolicy |
getXMLSecurityPolicy()
get method returns a new instance of this Security Policy |
static WcmXMLSecurityPolicy |
getXMLSecurityPolicy(org.w3c.dom.Document newXMLSecurityPolicy)
get method creates or contains the Security Policy as one of this type |
boolean |
hasTemplatesNode()
Indicates if this Security Policy has a templates node |
boolean |
isApplicationTemplate(java.lang.String applyStateId)
Indicates if the given applyStateId is for an Application Template |
void |
mergeTemplates(org.w3c.dom.Document templates)
Merges the given templates Document into this Security Policy |
void |
removeTemplate(java.lang.String applyStateId)
Remove the indicated template |
void |
saveTemplate(java.lang.String applyStateId)
Save buffer as a new template, replacing original if found |
void |
setTemplate(java.lang.String applyStateId)
Sets a Buffer template with the give applyStateId |
void |
setTemplate(java.lang.String applyStateId,
java.lang.String name)
Sets a Buffer template with the give applyStateId and name |
int |
templateCount()
Returns the number of templates found |
boolean |
validateTemplate(java.lang.String applyStateId,
java.util.Locale locale)
Validates the template with the given applyStateId |
Methods inherited from class com.filenet.wcm.toolkit.server.util.xml.WcmXMLObject |
getClassdescElement, getClassId, getClassName, getObjectElement, getObjectId, getObjectStoreElement, getObjectStoreId, getObjectTagValue, getObjectXPath, getXMLObject, getXMLObject, setClassDescription, setObjectStoreId, setObjectTagValue, setObjectXPath |
Methods inherited from class com.filenet.wcm.toolkit.server.util.xml.WcmDocumentImpl |
createCDATAChildElement, createChildElement, createChildElement, createNamespace, getDocumentImpl, getElement, getElement, getElementText, getNodeList, getThis |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VERSION_STATUS_RELEASED
public static final int VERSION_STATUS_IN_PROCESS
public static final int VERSION_STATUS_RESERVATION
public static final int VERSION_STATUS_SUPERSEDED
public static final java.lang.String APPLY_STATE_ID_RESERVATION
public static final java.lang.String APPLY_STATE_ID_IN_PROCESS
public static final java.lang.String APPLY_STATE_ID_RELEASED
public static final java.lang.String APPLY_STATE_ID_SUPERSEDED
public static final java.lang.String ELEM_SECURITY_TEMPLATES
public static final java.lang.String ELEM_SECURITY_TEMPLATE
Constructor Detail |
public WcmXMLSecurityPolicy(org.w3c.dom.Document newXMLSecurityPolicy)
newXMLSecurityPolicy
- The new Document objectMethod Detail |
public static WcmXMLSecurityPolicy getXMLSecurityPolicy()
public static WcmXMLSecurityPolicy getXMLSecurityPolicy(org.w3c.dom.Document newXMLSecurityPolicy)
newXMLSecurityPolicy
- The Document to contain
public org.w3c.dom.Element getSecurityPolicy() throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Element createSecurityPolicyElement() throws java.lang.Exception
java.lang.Exception
public boolean hasTemplatesNode() throws java.lang.Exception
java.lang.Exception
public int templateCount() throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Element getTemplatesElement() throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Element createTemplatesElement() throws java.lang.Exception
java.lang.Exception
public void mergeTemplates(org.w3c.dom.Document templates) throws java.lang.Exception
templates
- The templates to merge
java.lang.Exception
public org.w3c.dom.Element getTemplatePermissions() throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Element getTemplatePermissions(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
-
java.lang.Exception
public org.w3c.dom.NodeList getPermissionsNodeList(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
- Desired Template's applyStateId
java.lang.Exception
public java.lang.String getTemplateName(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
- The template's applyStateId
java.lang.Exception
public boolean getTemplateIsEnabled(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
- Desired Template applyStateId
java.lang.Exception
public java.lang.String getPolicyPreservedDirectPermissions() throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getTemplateApplyStateIds() throws java.lang.Exception
java.lang.Exception
public boolean isApplicationTemplate(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
- template to check
java.lang.Exception
public void defineTemplate(java.lang.String applyStateId, java.lang.String name, boolean enabled) throws java.lang.Exception
applyStateId
- desired applyStateIdname
- Name for the templateenabled
- Is this template enabled
java.lang.Exception
public boolean validateTemplate(java.lang.String applyStateId, java.util.Locale locale) throws java.lang.Exception
applyStateId
- Identifies the template to validate
java.lang.Exception
public void cancelTemplate() throws java.lang.Exception
java.lang.Exception
public void setTemplate(java.lang.String applyStateId, java.lang.String name) throws java.lang.Exception
applyStateId
- name
-
java.lang.Exception
public void setTemplate(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
-
java.lang.Exception
public void saveTemplate(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
- identifies the template
java.lang.Exception
public void removeTemplate(java.lang.String applyStateId) throws java.lang.Exception
applyStateId
- Identifies the desired template
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |