public class SecurityManagementXMLUtilBean extends CRMBase
| Constructor and Description |
|---|
SecurityManagementXMLUtilBean()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertAssignmentsToXML(java.util.Set<com.crm.dataobject.securitymanagement.SecurityOrganisationalUnit> configurationCollection)
Converts the security management assignments to xml.
|
java.lang.String |
convertConditionsToXML(java.util.Set<com.crm.dataobject.securitymanagement.SecurityEntityCondition> configurationCollection)
Converts the security management conditions to xml.
|
java.lang.String |
convertReadOnlyAccessesToXML(java.util.Set<com.crm.dataobject.securitymanagement.BNConfigurationReadOnlyAccess> configurationCollection)
Converts the security management read only accesses to xml.
|
java.util.Set<com.crm.dataobject.securitymanagement.SecurityEntityCondition> |
getConditions(org.w3c.dom.Document doc,
java.lang.String entityID)
Loads the conditions from a document.
|
org.w3c.dom.NodeList |
getNodeList(org.w3c.dom.Document doc,
java.lang.String expr)
Returns the node list.
|
java.lang.String |
getSubNodeText(org.w3c.dom.Node n,
java.lang.String expr)
Returns the sub node text.
|
java.util.Set<com.crm.dataobject.securitymanagement.SecurityOrganisationalUnit> |
loadAssignmentsFromXML(java.lang.String xml)
Loads the assignments from an xml file.
|
java.util.Set<com.crm.dataobject.securitymanagement.SecurityEntityCondition> |
loadConditionsFromXML(java.lang.String xml,
java.lang.String entityID)
Loads conditions from an xml file.
|
java.util.Set<com.crm.dataobject.securitymanagement.BNConfigurationReadOnlyAccess> |
loadReadOnlyAccessesFromXML(java.lang.String xml)
Loads the read only accesses from an xml file.
|
void |
setConfigurationOuRelations(com.crm.dataobject.securitymanagement.BNConfigurationReadOnlyAccess configuration)
Sets the configuration organisational unit relations.
|
void |
setConfigurationOuRelations(com.crm.dataobject.securitymanagement.SecurityOrganisationalUnit configuration)
Sets the configuration organisational unit relations.
|
dispatch, getCRMSession, getCRMSessionHandle, getEJBHomeInterface, getInitialContext, getSessionContext, invoke, setCRMSessionHandle, setInitialContext, setSessionContextpublic SecurityManagementXMLUtilBean()
public java.lang.String convertConditionsToXML(java.util.Set<com.crm.dataobject.securitymanagement.SecurityEntityCondition> configurationCollection)
throws java.lang.Exception
configurationCollection - - the configuration collection to convertjava.lang.Exceptionpublic java.lang.String convertReadOnlyAccessesToXML(java.util.Set<com.crm.dataobject.securitymanagement.BNConfigurationReadOnlyAccess> configurationCollection)
throws java.lang.Exception
configurationCollection - - the configuration collection to convertjava.lang.Exceptionpublic java.lang.String convertAssignmentsToXML(java.util.Set<com.crm.dataobject.securitymanagement.SecurityOrganisationalUnit> configurationCollection)
throws java.lang.Exception
configurationCollection - - the configuration collection to convertjava.lang.Exceptionpublic java.util.Set<com.crm.dataobject.securitymanagement.SecurityEntityCondition> loadConditionsFromXML(java.lang.String xml,
java.lang.String entityID)
throws java.lang.Exception
xml - - the xml file to load the conditions fromjava.lang.Exceptionpublic java.util.Set<com.crm.dataobject.securitymanagement.SecurityEntityCondition> getConditions(org.w3c.dom.Document doc,
java.lang.String entityID)
throws java.lang.Exception
doc - - the document to load the conditions fromjava.lang.Exceptionpublic org.w3c.dom.NodeList getNodeList(org.w3c.dom.Document doc,
java.lang.String expr)
doc - - the document to get the node list fromexpr - - an expression to compile the xpath forpublic java.lang.String getSubNodeText(org.w3c.dom.Node n,
java.lang.String expr)
n - - the node to get the sub node fromexpr - - an expression to compile the xpath forpublic java.util.Set<com.crm.dataobject.securitymanagement.BNConfigurationReadOnlyAccess> loadReadOnlyAccessesFromXML(java.lang.String xml)
throws java.lang.Exception
xml - - the xml file to load the read only accesses fromjava.lang.Exceptionpublic void setConfigurationOuRelations(com.crm.dataobject.securitymanagement.BNConfigurationReadOnlyAccess configuration)
configuration - - the configuration to set the type topublic java.util.Set<com.crm.dataobject.securitymanagement.SecurityOrganisationalUnit> loadAssignmentsFromXML(java.lang.String xml)
throws java.lang.Exception
xml - - the xml file to load the assignments fromjava.lang.Exceptionpublic void setConfigurationOuRelations(com.crm.dataobject.securitymanagement.SecurityOrganisationalUnit configuration)
throws com.crm.exception.DAOException
configuration - - the configuration to set the path and type tocom.crm.exception.DAOException