public interface Policy extends CentraSiteRegistryObject
PolicyType
Modifier and Type | Method and Description |
---|---|
void |
addAssociationsForPostStateChange(java.util.Collection<LCMState> lcmStates) |
void |
addAssociationsForPreStateChange(java.util.Collection<LCMState> lcmStates) |
java.util.Collection<CentraSiteObject> |
getApplicableAssets()
Gets the applicable assets matching the conditions
|
java.util.Collection<CentraSiteRegistryObjectType> |
getApplicableTypes()
return the types to which this policy is applicable
|
java.util.Collection<LCMState> |
getAssociationsForPostStateChange() |
java.util.Collection<LCMState> |
getAssociationsForPreStateChange() |
java.util.Collection<Category> |
getEventTypes()
Returns the
Collection of event types which are set for this policy. |
java.util.Collection<Category> |
getObjectTypes() |
java.util.Collection<CentraSitePolicyActionInstance> |
getPolicyActions()
return the action instances associated to the policy
|
java.util.Collection<CSOSearchCondition> |
getPolicyConstraints()
Return the constraints associated to the policy
|
PolicyType |
getPolicyType()
return the type of the policy i.e DesignTime or RuntimePolicy
|
java.lang.String |
getPriority() |
boolean |
isActive()
Find whether the given LCM is active or not.
|
boolean |
isGlobal()
this policy applicable to all organizations
|
boolean |
isRetired() |
boolean |
isSystemDefined() |
void |
setApplicableTypes(java.util.Collection<CentraSiteRegistryObjectType> applicableTypes)
Sets the types to which this policy is applicable
|
void |
setConditions(java.util.Collection<CSOSearchCondition> policyConstraints)
Sets the constraints associated to the policy
|
void |
setEventTypes(java.util.Collection<Category> eventTypeConcepts) |
void |
setGlobal(boolean isGlobal)
set true, in case of policy is global
|
void |
setObjectTypes(java.util.Collection<Category> applicableTypes) |
void |
setPolicyActions(java.util.Collection<CentraSitePolicyActionInstance> actionInstances)
set the applicable action instances associated to the policy
|
void |
setPriority(java.lang.String priority) |
getConsumedAssets, getConsumers, getDescription, getDescription, getDisplayVersion, getInitialVirtualAssetName, getLastModifiedTimeStamp, getLCMAssignment, getLocalName, getMandatoryAttributeProfiles, getName, getName, getNameSpace, getNextVersion, getNextVersions, getOrganization, getOwner, getPendingApprovals, getPreviousVersion, getPreviousVersions, getRegistryObject, getRelationShipValueMap, getRequestedUser, getSubscribers, getSystemVersion, getTitle, getType, getUserVersion, getVisiblePrimaryProfiles, getVisibleProfile, isDeployedOn, isLatestVersionObject, isPropagatePermissions, isPropagateProfilePermissions, removeConsumedAssets, removeConsumers, setDescription, setDescription, setDisplayVersion, setLCMState, setLocalName, setName, setName, setNameSpace, setOrganization, setOwner, setPropagatePermissions, setPropagateProfilePermissions, setRelationShipValueMap, setUserVersion
delete, getAttributeLink, getAttributeValue, getAttributeValue, getAttributeValue, getId, isModified, isPredefined, isReadOnly, save, setAttributeValue, setAttributeValue, setAttributeValue
boolean isGlobal() throws CLLException
CLLException
- in case of failed to find the weather the policy is globalvoid setGlobal(boolean isGlobal) throws CLLException
isGlobal
- true - global policyCLLException
- in case of failed to set the policy as global policyjava.util.Collection<CentraSiteRegistryObjectType> getApplicableTypes() throws CLLException
CLLException
- in case of failed to get the applicable typesvoid setApplicableTypes(java.util.Collection<CentraSiteRegistryObjectType> applicableTypes) throws CLLException
applicableTypes
- The Collection
of CentraSiteRegistryObjectType
objectsCLLException
- the types to which policy can be associated.java.util.Collection<CSOSearchCondition> getPolicyConstraints() throws CLLException
CLLException
- in case of failed to get the policy constraintsvoid setConditions(java.util.Collection<CSOSearchCondition> policyConstraints) throws CLLException
policyConstraints
- Collection
of CSOSearchCondition
objects containing the policy constraintsCLLException
- policy the set the given policy constraints.PolicyType getPolicyType() throws CLLException
PolicyType
CLLException
- failed to find the type of the policyjava.util.Collection<CentraSiteObject> getApplicableAssets()
void setPolicyActions(java.util.Collection<CentraSitePolicyActionInstance> actionInstances) throws CLLException
actionInstances
- the policy action instancesCLLException
- in case of failed to set the policy action instances to
policyjava.util.Collection<CentraSitePolicyActionInstance> getPolicyActions() throws CLLException
CLLException
- in case of failed to the action instances associated to the
policyjava.util.Collection<Category> getEventTypes() throws CLLException
Collection
of event types which are set for this policy. It is realized as Category
instances.Collection
of Category
objects each pointing to an event typeCLLException
- If an error occurs while getting the applied event types for the policy.boolean isActive() throws CLLException
CLLException
- In case of a failure to find whether the LCM is active or not.void setEventTypes(java.util.Collection<Category> eventTypeConcepts) throws CLLException
CLLException
java.lang.String getPriority() throws CLLException
CLLException
void setPriority(java.lang.String priority) throws CLLException
CLLException
boolean isSystemDefined() throws CLLException
CLLException
void addAssociationsForPreStateChange(java.util.Collection<LCMState> lcmStates) throws CLLException
CLLException
void addAssociationsForPostStateChange(java.util.Collection<LCMState> lcmStates) throws CLLException
CLLException
boolean isRetired() throws CLLException
CLLException
java.util.Collection<LCMState> getAssociationsForPreStateChange() throws CLLException
CLLException
java.util.Collection<LCMState> getAssociationsForPostStateChange() throws CLLException
CLLException
java.util.Collection<Category> getObjectTypes() throws CLLException
CLLException
void setObjectTypes(java.util.Collection<Category> applicableTypes) throws CLLException
CLLException