|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.policy.util.KAoSPolicyBuilderImpl
public class KAoSPolicyBuilderImpl
Class building an Ontology (DAML or OWL) Policy representation within com.hp.hpl.jena.ontology.OntModel
| Constructor Summary | |
|---|---|
KAoSPolicyBuilderImpl()
|
|
KAoSPolicyBuilderImpl(PolicyMsg msg)
Constructor. |
|
| Method Summary | |
|---|---|
KAoSConditionBuilder |
getConditionActionClass()
Get the condition action. |
KAoSRoleValueMapContainer |
getConditionActionRVMContainer()
|
KAoSClassBuilderImpl |
getControlsActionClass()
Get the action that is controlled (authorized or not authorized) by this policy. |
KAoSRoleValueMapContainer |
getControlsActionRVMContainer()
|
java.lang.String |
getHasSiteOfEnforcement()
Get the site of enforcment for the current policy. |
java.lang.String |
getModalityType()
Get the value of the modality type for the current policy. |
ObligationConstraintsBuilder |
getObligationConstraints()
set the obligation constraints for this policy |
OntologyPolicyContainer |
getPolicy()
Return the built policy as OntModels in a container. |
java.lang.String |
getPolicyAsText()
Return the built policy as text. |
java.lang.String |
getPolicyDesc()
Get the value of the policy description for the current policy. |
java.lang.String |
getPolicyID()
Get the id of the current policy. |
java.lang.String |
getPolicyName()
Get the value of the policy name for the current policy. |
KAoSRoleValueMapContainer |
getPolicyRVMContainer()
|
int |
getPriority()
Get the priority for the current policy. |
KAoSClassBuilderImpl |
getTriggerActionClass()
Get the trigger action which make this policy applicable. |
KAoSRoleValueMapContainer |
getTriggerActionRVMContainer()
|
java.lang.Long |
getUpdateTimeStamp()
Get the value of the time stamp for the current policy. |
void |
readConditionFromConditionContainer(OntologyConditionContainer occ)
|
void |
readControlActionFromModel(SerializableOntModelImpl dm,
java.lang.String classURI)
|
void |
readObligationConstraintsFromModel(SerializableOntModelImpl dm,
java.lang.String classURI)
|
void |
readPolicyFromModel(SerializableOntModelImpl dm)
A method to recreate a DAMLPolicyBuilder object by reading from a DAMLModel object |
void |
readTriggerActionFromModel(SerializableOntModelImpl dm,
java.lang.String classURI)
|
void |
resetPolicyBuilding()
Starts building the new policy, delete any existing state of the previously build policy. |
void |
setConditionActionClass(KAoSConditionBuilder condition)
Set the condition action of this policy. |
void |
setControlsActionClass(KAoSClassBuilderImpl controls)
Set the action that is controlled (authorized or not authorized) by this policy. |
void |
setControlsActionRVMContainer(KAoSRoleValueMapContainer container)
|
void |
setHasSiteOfEnforcement(java.lang.String _siteName)
Set the site of enforcment for the build policy. |
void |
setObligationConstraints(ObligationConstraintsBuilder ocb)
set the obligation constraints for this policy |
void |
setPolicyDesc(java.lang.String desc)
Set the description of the defined policy. |
void |
setPolicyIDAndModalityType(java.lang.String policyID,
java.lang.String modalityType)
Set the ID of the defined policy and its modality type. |
void |
setPolicyName(java.lang.String pName)
Set the name of the defined policy. |
void |
setPriority(int priority)
Set the priority of the defined policy. |
void |
setTriggerActionClass(KAoSClassBuilderImpl trigger)
Set the action that will make this policy applicable (will 'trigger' this policy into being applied). |
void |
setTriggerActionRVMContainer(KAoSRoleValueMapContainer container)
|
void |
showPolicy()
A utility method to print the policy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KAoSPolicyBuilderImpl()
public KAoSPolicyBuilderImpl(PolicyMsg msg)
| Method Detail |
|---|
public void resetPolicyBuilding()
public OntologyPolicyContainer getPolicy()
throws PolicyBuildingNotCompleted
PolicyBuildingNotCompleted - if the current policy is not fully specifiedpublic java.lang.String getPolicyAsText()
PolicyBuildingNotCompleted - if the current policy is not fully specified
public java.lang.Long getUpdateTimeStamp()
throws ValueNotSet
ValueNotSet - if value of the time stamp is not known
public void setPolicyIDAndModalityType(java.lang.String policyID,
java.lang.String modalityType)
throws SpecifiedModalityTypeNotExists
policyName - the name of the policymodalityType - the name (url) of the class representing the modality type of policy, one of:
PosAuthorizationPolicy
NegAuthorizationPolicy
PosObligationPolicy
NegObligationPolicy
SpecifiedModalityTypeNotExists - if the modality type does not existkaos.ontology.PolicyConcepts
public java.lang.String getPolicyID()
throws ValueNotSet
ValueNotSet - if value of the policy ID is not knownpublic KAoSRoleValueMapContainer getPolicyRVMContainer()
public java.lang.String getModalityType()
throws ValueNotSet
ValueNotSet - if value of the modalitytype is not knownpublic void setPolicyName(java.lang.String pName)
pName - the name of the policy
public java.lang.String getPolicyName()
throws ValueNotSet
ValueNotSet - if value of the modalitytype is not knownpublic void setPolicyDesc(java.lang.String desc)
desc - description of the policy
public java.lang.String getPolicyDesc()
throws ValueNotSet
ValueNotSet - if value of the modalitytype is not known
public void setPriority(int priority)
throws PriorityNotValid,
PolicyNameNotSet
priority - priority of the policy
PriorityNotValid
PolicyNameNotSet
public int getPriority()
throws ValueNotSet
ValueNotSet - if value of the priority is not known
public void setHasSiteOfEnforcement(java.lang.String _siteName)
throws PolicyNameNotSet,
SiteOfEnforcementTypeNotExists
_siteName - the name (url) of the class representing the site of policy enforcment, currently one of:
ActorSite
TargetSite
AnySite
PolicyNameNotSet - if the name of the policy was not set yet; the construction of the policy was not really started
SpecifiedSiteOfEnforcementTypeNotExists - if the value of the site of enforcement does not exist
SiteOfEnforcementTypeNotExistskaos.ontology.PolicyConcepts
public java.lang.String getHasSiteOfEnforcement()
throws ValueNotSet
ValueNotSet - if value of the site of enforcment is not knownpublic void setControlsActionClass(KAoSClassBuilderImpl controls)
controls - the action to be controlledpublic KAoSClassBuilderImpl getControlsActionClass()
public void setControlsActionRVMContainer(KAoSRoleValueMapContainer container)
public KAoSRoleValueMapContainer getControlsActionRVMContainer()
public void setTriggerActionClass(KAoSClassBuilderImpl trigger)
trigger - the triggering actionpublic KAoSClassBuilderImpl getTriggerActionClass()
public KAoSRoleValueMapContainer getTriggerActionRVMContainer()
public void setTriggerActionRVMContainer(KAoSRoleValueMapContainer container)
public void setConditionActionClass(KAoSConditionBuilder condition)
condition - the condition actionpublic KAoSConditionBuilder getConditionActionClass()
public KAoSRoleValueMapContainer getConditionActionRVMContainer()
public void setObligationConstraints(ObligationConstraintsBuilder ocb)
public ObligationConstraintsBuilder getObligationConstraints()
public void showPolicy()
public void readPolicyFromModel(SerializableOntModelImpl dm)
dm - the model from which to read
public void readControlActionFromModel(SerializableOntModelImpl dm,
java.lang.String classURI)
public void readTriggerActionFromModel(SerializableOntModelImpl dm,
java.lang.String classURI)
public void readConditionFromConditionContainer(OntologyConditionContainer occ)
public void readObligationConstraintsFromModel(SerializableOntModelImpl dm,
java.lang.String classURI)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||