public interface PolicyRegistryObject
Modifier and Type | Method and Description |
---|---|
void |
addAssociation(Association association)
Adds the given association to the underlying JAXR object.
|
void |
addAssociation(RegistryObject targetObject,
java.lang.String associationTypeId)
Creates and adds(if not present already) an association from this object to the target object with the given.
|
java.util.Collection<Concept> |
getAllClassifiedConcepts(java.lang.String classificationSchemeId)
Returns all the concepts under which the underlying JAXR object is classified under the specified classification
scheme.
|
java.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteRegistryObject> |
getAllJAXRObjects()
Returns the Collection of registry objects which are part of this Policy object including itself.
|
java.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteRegistryObject> |
getAllObsoleteObjects()
Returns the Collection of registry objects which are part of this Policy object including itself.
|
java.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteAssociation> |
getAssociations()
Returns the Associations of the underlying JAXR object.
|
java.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteAssociation> |
getAssociations(java.lang.String associationTypeId)
Returns all the associations of the underlying JAXR object made to the specified association type.
|
java.util.Collection<Classification> |
getClassifications()
Returns the classifications of the underlying JAXR object.
|
com.centrasite.jaxr.infomodel.CentraSiteConcept |
getClassifiedConcept(java.lang.String classificationSchemeId)
Returns the concept under which the underlying JAXR object is classified under the specified classification scheme
Should there be more than one classification to some concepts under the specified taxonomy, the first such
classification's concept will be returned.
|
com.centrasite.jaxr.infomodel.CentraSiteInternationalString |
getDescription()
Returns the description of the underlying JAXR object.
|
com.centrasite.jaxr.infomodel.CentraSiteRegistryObject |
getJAXRObject()
Returns the underlying JAXR object.
|
com.centrasite.jaxr.CentraSiteRegistryService |
getJAXRRegistryService()
Returns the CentraSiteRegistryService which was used to create this Policy object.
|
Key |
getKey()
Returns the Key of the underlying JAXR object.
|
java.util.Locale |
getLoggedInUserLocale()
Gets the locale of the logged in user.
|
com.centrasite.jaxr.infomodel.CentraSiteInternationalString |
getName()
Returns the name of the underlying JAXR object.
|
void |
removeAllAssociations(java.lang.String associationTypeId)
Removes all the associations of the underlying JAXR object made to the specified association type.
|
void |
removeAllClassifications(java.lang.String classificationSchemeId)
Removes all the classifications of the underlying JAXR object made to the specified classification scheme.
|
void |
setDescription(com.centrasite.jaxr.infomodel.CentraSiteInternationalString description)
Sets the description of the underlying JAXR object.
|
void |
setName(com.centrasite.jaxr.infomodel.CentraSiteInternationalString name)
Sets the name of the underlying JAXR object.
|
java.lang.String |
toXMLForRepair()
Returns to XML Repair as String.
|
com.centrasite.jaxr.infomodel.CentraSiteInternationalString getName() throws JAXRException
JAXRException
- if an internal error occurs on retrieving the JAXR object namevoid setName(com.centrasite.jaxr.infomodel.CentraSiteInternationalString name) throws JAXRException
name
- the name for the policy objectJAXRException
- if an internal error occurs on updating JAXR object namecom.centrasite.jaxr.infomodel.CentraSiteInternationalString getDescription() throws JAXRException
JAXRException
- if an internal error occurs on retrieving JAXR the object descriptionvoid setDescription(com.centrasite.jaxr.infomodel.CentraSiteInternationalString description) throws JAXRException
description
- the description for the policy objectJAXRException
- if an internal error occurs on updating JAXR the object descriptioncom.centrasite.jaxr.infomodel.CentraSiteRegistryObject getJAXRObject()
com.centrasite.jaxr.CentraSiteRegistryService getJAXRRegistryService()
java.util.Locale getLoggedInUserLocale()
Key getKey() throws JAXRException
JAXRException
- if an internal error occurs on retrieving the JAXR object keyjava.util.Collection<Classification> getClassifications() throws JAXRException
JAXRException
- if an internal error occurs on retrieving the JAXR object classificationsjava.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteAssociation> getAssociations() throws JAXRException
JAXRException
- if an internal error occurs on retrieving the JAXR object associationscom.centrasite.jaxr.infomodel.CentraSiteConcept getClassifiedConcept(java.lang.String classificationSchemeId) throws JAXRException
classificationSchemeId
- the ID of the Classification scheme.JAXRException
- if an internal error occurs on retrieving the JAXR object classified conceptjava.util.Collection<Concept> getAllClassifiedConcepts(java.lang.String classificationSchemeId) throws JAXRException
classificationSchemeId
- the ID of the Classification scheme.JAXRException
- if an internal error occurs on retrieving the JAXR object all classified conceptvoid removeAllAssociations(java.lang.String associationTypeId) throws JAXRException
associationTypeId
- the ID of the association typeJAXRException
- if an internal error occurs on removing the JAXR object all associationsvoid removeAllClassifications(java.lang.String classificationSchemeId) throws JAXRException
classificationSchemeId
- the ID of the Classification scheme.JAXRException
- if an internal error occurs on removing the JAXR object all classificationsvoid addAssociation(Association association) throws JAXRException
association
- the association to be addedJAXRException
- if an internal error occurs on adding the JAXR object associationvoid addAssociation(RegistryObject targetObject, java.lang.String associationTypeId) throws JAXRException
targetObject
- the target object of the associationassociationTypeId
- Id of the association typeJAXRException
- if an internal error occurs on adding the JAXR object associationjava.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteAssociation> getAssociations(java.lang.String associationTypeId) throws JAXRException
associationTypeId
- Id of the association typeJAXRException
- if an internal error occurs on retrieving JAXR object associationjava.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteRegistryObject> getAllJAXRObjects() throws JAXRException, PolicyException
JAXRException
- if an internal error occurs on adding all the JAXR objectsPolicyException
- if an internal error occursjava.util.Collection<com.centrasite.jaxr.infomodel.CentraSiteRegistryObject> getAllObsoleteObjects() throws JAXRException, PolicyException
JAXRException
- if an internal error occurs on adding all Obsolete JAXR objectsPolicyException
- if an internal error occursjava.lang.String toXMLForRepair() throws JAXRException, PolicyException
JAXRException
- if an internal error occurs while dealing with xml for repairPolicyException
- if an internal error occurs