|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.presenter.Presenter<M>
org.openpermis.editor.policy.presenter.PartPresenter<org.openpermis.policy.bean.PolicyBean>
org.openpermis.editor.policy.presenter.DecisionPresenter
public class DecisionPresenter
Presentation model for the decision test view.
Constructor Summary | |
---|---|
DecisionPresenter(org.openpermis.policy.bean.PolicyBean policy,
PolicyContext context)
Creates a new presenter. |
Method Summary | |
---|---|
org.openpermis.policy.bean.ActionBean |
getAction()
Gets the currently selected action. |
Set<org.openpermis.policy.Role> |
getAssignedRoles(org.openpermis.policy.TimeStamp timeStamp,
Set<org.openpermis.policy.Role> roles)
|
org.openpermis.policy.Authority |
getAuthority()
Gets the currently selected authority. |
Color |
getDecisionColor()
Gets the current decision as a colour value. |
String |
getDecisionText()
Gets the current decision in text form. |
org.openpermis.policy.TimeStamp |
getEvaluationTimeStamp()
Gets the current evaluation time for the decision tester. |
URI |
getIdentity()
|
Set<org.openpermis.Subject> |
getIssuersOf(org.openpermis.policy.Role role)
|
org.openpermis.editor.policy.presenter.DecisionPresenter.ParameterTableModel |
getParameterTableModel()
|
org.openpermis.policy.Domain |
getResourceDomain()
Gets the currently selected resource domain. |
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> |
getSelectedRoles()
Gets the list where selected roles get stored. |
org.openpermis.basic.TimePeriod |
getValidityOf(org.openpermis.policy.Role role,
org.openpermis.Subject issuer)
|
boolean |
identityMandatory()
|
void |
policyChanged()
|
void |
setAction(org.openpermis.policy.bean.ActionBean action)
Selects an action. |
void |
setAuthority(org.openpermis.policy.Authority authority)
Sets the selected authority. |
void |
setEvaluationTimeStamp(org.openpermis.policy.TimeStamp timeStamp)
Selects an evaluation time for the decision tester. |
void |
setResourceDomain(org.openpermis.policy.Domain domain)
Selects a resource domain. |
Methods inherited from class org.openpermis.editor.policy.presenter.PartPresenter |
---|
change, change, containsSerial, createChangeCommand, createCollectionAtPresenter, dispose, execute, getActionPool, getAuthorityPool, getContext, getModelSerialNumber, getObligationPool, getPartBeanFactory, getResourceDomainPool, getRolePool, getSubjectDomainPool, getTargetPool, indexOfBySerial, sameSerial, updateCollectionAtPresenter |
Methods inherited from class org.openpermis.editor.policy.presenter.Presenter |
---|
addPropertyChangeListener, firePropertyChange, getModel, getTitleParameters, removePropertyChangeListener, setTitleParameters |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DecisionPresenter(org.openpermis.policy.bean.PolicyBean policy, PolicyContext context)
policy
- the policy whose access rules will be available for testing.context
- editor meta data for the policy.Method Detail |
---|
public org.openpermis.policy.Authority getAuthority()
public void setAuthority(org.openpermis.policy.Authority authority)
authority
- the selected authority.public org.openpermis.policy.Domain getResourceDomain()
public void setResourceDomain(org.openpermis.policy.Domain domain)
domain
- the selected resource domain.public org.openpermis.policy.bean.ActionBean getAction()
public void setAction(org.openpermis.policy.bean.ActionBean action)
action
- the selected action.public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> getSelectedRoles()
public org.openpermis.policy.TimeStamp getEvaluationTimeStamp()
public void setEvaluationTimeStamp(org.openpermis.policy.TimeStamp timeStamp)
timeStamp
- an evaluation time.public String getDecisionText()
public Color getDecisionColor()
public org.openpermis.editor.policy.presenter.DecisionPresenter.ParameterTableModel getParameterTableModel()
public void policyChanged()
public Set<org.openpermis.policy.Role> getAssignedRoles(org.openpermis.policy.TimeStamp timeStamp, Set<org.openpermis.policy.Role> roles)
getAssignedRoles
in interface org.openpermis.Subject
public Set<org.openpermis.Subject> getIssuersOf(org.openpermis.policy.Role role)
getIssuersOf
in interface org.openpermis.Subject
public org.openpermis.basic.TimePeriod getValidityOf(org.openpermis.policy.Role role, org.openpermis.Subject issuer)
getValidityOf
in interface org.openpermis.Subject
public URI getIdentity()
getIdentity
in interface org.openpermis.policy.Identifiable
public boolean identityMandatory()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:33
Copyright (c) 2002-2007 Ergon Informatik AG