public interface Policy extends CentraSiteRegistryObject
PolicyType
Modifier and Type | Method and Description |
---|---|
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<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
|
boolean |
isGlobal()
this policy applicable to all organizations
|
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 |
setGlobal(boolean isGlobal)
set true, in case of policy is global
|
void |
setPolicyActions(java.util.Collection<CentraSitePolicyActionInstance> actionInstances)
set the applicable action instances associated to the policy
|
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
policy