org.opentox.toxotis.util.aa.policy
Interface IPolicy

All Superinterfaces:
IPolicyWrapper
All Known Implementing Classes:
Policy

public interface IPolicy
extends IPolicyWrapper

Author:
Pantelis Sopasakis, Charalampos Chomenides

Method Summary
 void addRule(IPolicyRule rule)
          Add a rule to the current policy.
 void addSubject(PolicySubject subject)
          Add a new Policy Subject.
 String getPolicyName()
          The name of the policy.
 String getSubjectsCollectionName()
          The name of the collection of subjects.
 String getSubjectsDescription()
          Description of the subject.
 void setPolicyName(String policyName)
          Specify the policy name,
 void setSubjectsCollectionName(String subjectsCollectionName)
          Specify the name of the collection of subjects in the policy.
 void setSubjectsDescription(String subjectsDescription)
          Provide some description for the subjects.
 
Methods inherited from interface org.opentox.toxotis.util.aa.policy.IPolicyWrapper
getDocument, getText, publish
 

Method Detail

addRule

void addRule(IPolicyRule rule)
Add a rule to the current policy.

Parameters:
rule - A new policy rule to be added.
See Also:
IPolicyRule, IPolicyWrapper

addSubject

void addSubject(PolicySubject subject)
Add a new Policy Subject.

Parameters:
subject - The new policy subject to be added
See Also:
PolicySubject, SingleSubject, GroupSubject

getPolicyName

String getPolicyName()
The name of the policy.

Returns:
Policy name as a String.

getSubjectsCollectionName

String getSubjectsCollectionName()
The name of the collection of subjects.

Returns:
Subjects' collection name.

getSubjectsDescription

String getSubjectsDescription()
Description of the subject.

Returns:
Description of the subject as a String.

setPolicyName

void setPolicyName(String policyName)
Specify the policy name,

Parameters:
policyName - A name/title for your policy.

setSubjectsCollectionName

void setSubjectsCollectionName(String subjectsCollectionName)
Specify the name of the collection of subjects in the policy.

Parameters:
subjectsCollectionName - Name of subjects' collection.

setSubjectsDescription

void setSubjectsDescription(String subjectsDescription)
Provide some description for the subjects.

Parameters:
subjectsDescription - Description of subjects.


Copyright © 2011-2012 OpenTox. All Rights Reserved.