org.openpermis.editor.policy.presenter
Class TargetPresenter

java.lang.Object
  extended by org.openpermis.editor.policy.presenter.Presenter<M>
      extended by org.openpermis.editor.policy.presenter.PartPresenter<org.openpermis.policy.bean.TargetBean>
          extended by org.openpermis.editor.policy.presenter.TargetPresenter

public class TargetPresenter
extends PartPresenter<org.openpermis.policy.bean.TargetBean>

Presenter for a single TargetBean.

Since:
0.1.0

Constructor Summary
TargetPresenter(org.openpermis.policy.bean.TargetBean model, CommandDispatcher dispatcher, PolicyContext context)
          Creates a new target presenter.
 
Method Summary
 void addAction(EditPartCommand<org.openpermis.policy.bean.ActionBean> editPartCommand)
           
 void addResourceDomain(EditPartCommand<org.openpermis.policy.bean.DomainBean> editPartCommand)
           
 org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ActionBean> getActions()
          The list of actions of this target.
 org.openpermis.policy.bean.DomainBean getActiveResourceDomain()
          Returns the active resource domain of this model.
 void removeActiveAction(org.openpermis.policy.bean.ActionBean activeAction)
          Removes the active target in the whole policy.
 void removeActiveResourceDomain(org.openpermis.policy.bean.DomainBean resourceDomain)
          Removes the active resource domain in the whole policy.
 void setActiveResourceDomain(org.openpermis.policy.bean.DomainBean activeResourceDomainBean)
          Sets the active resource domain of the target of this model.
 void updateActions()
          Handler for changes in the actions of a target.
 void updateResourceDomain()
          Handler for resource domain changes in a target.
 
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

TargetPresenter

public TargetPresenter(org.openpermis.policy.bean.TargetBean model,
                       CommandDispatcher dispatcher,
                       PolicyContext context)
Creates a new target presenter.

Parameters:
model - the target to work on, must not be null.
context - policy context that provides additional information.
dispatcher - the dispatcher for commands that change the policy.
Since:
0.1.0
Method Detail

getActions

public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.bean.ActionBean> getActions()
The list of actions of this target.

Returns:
the list of actions of this target.
Since:
0.1.0

getActiveResourceDomain

public org.openpermis.policy.bean.DomainBean getActiveResourceDomain()
Returns the active resource domain of this model.

Returns:
the active resource domain of this model.
Since:
0.1.0

setActiveResourceDomain

public void setActiveResourceDomain(org.openpermis.policy.bean.DomainBean activeResourceDomainBean)
Sets the active resource domain of the target of this model.

Parameters:
activeResourceDomainBean - the new resource domain.
Since:
0.1.0

removeActiveResourceDomain

public void removeActiveResourceDomain(org.openpermis.policy.bean.DomainBean resourceDomain)
Removes the active resource domain in the whole policy.

Since:
0.1.0

removeActiveAction

public void removeActiveAction(org.openpermis.policy.bean.ActionBean activeAction)
Removes the active target in the whole policy.

Since:
0.1.0

addResourceDomain

public void addResourceDomain(EditPartCommand<org.openpermis.policy.bean.DomainBean> editPartCommand)
Since:
0.1.0

addAction

public void addAction(EditPartCommand<org.openpermis.policy.bean.ActionBean> editPartCommand)
Since:
0.1.0

updateResourceDomain

public void updateResourceDomain()
Handler for resource domain changes in a target.

Since:
0.1.0

updateActions

public void updateActions()
Handler for changes in the actions of a target.

Since:
0.1.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:33
Copyright (c) 2002-2007 Ergon Informatik AG