org.openpermis.editor.policy.presenter
Class ActionPresenter

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

public class ActionPresenter
extends PartPresenter<org.openpermis.policy.bean.ActionBean>

Presenter for a single ActionBean.

Since:
0.1.0

Field Summary
private static org.slf4j.Logger LOGGER
          The logger object of this class.
private  String name
           
private  org.jdesktop.observablecollections.ObservableListListener parametersModelUpdater
          Updater that keeps the model in sync with the observable parameters list.
private  org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.ParameterList.Parameter> presenterParameters
           
 
Constructor Summary
ActionPresenter(org.openpermis.policy.bean.ActionBean model, PolicyContext context)
          Creates a new ActionPresenter.
 
Method Summary
private  org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.ParameterList.Parameter> createParameterList()
          Creates a new parameter list that contains all paramters bound at the model.
 String getName()
          Gets the name.
 org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.ParameterList.Parameter> getPresenterParameters()
          Gets the ParameterList.Parameters ObservableList.
 void setName(String name)
          Sets the name of the model.
 void updateName()
          Handles property changes of name.
 void updateParameters()
          Handles property changes of parameters.
private  void updateParametersAtModel()
          Writes the parameters in the model according to the presenter.
private  void updateParametersAtPresenter()
          Writes the parameters in the presenter according to the model.
 
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
 

Field Detail

LOGGER

private static final org.slf4j.Logger LOGGER
The logger object of this class.

Since:
0.1.0

name

private String name
Since:
0.1.0

presenterParameters

private final org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.ParameterList.Parameter> presenterParameters
Since:
0.1.0

parametersModelUpdater

private final org.jdesktop.observablecollections.ObservableListListener parametersModelUpdater
Updater that keeps the model in sync with the observable parameters list.

Since:
0.1.0
Constructor Detail

ActionPresenter

public ActionPresenter(org.openpermis.policy.bean.ActionBean model,
                       PolicyContext context)
Creates a new ActionPresenter.

Parameters:
model - the action to work on.
context - policy context that provides additional information.
Since:
0.1.0
Method Detail

createParameterList

private org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.ParameterList.Parameter> createParameterList()
Creates a new parameter list that contains all paramters bound at the model.

Returns:
the list, never null.
Since:
0.1.0

getPresenterParameters

public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.ParameterList.Parameter> getPresenterParameters()
Gets the ParameterList.Parameters ObservableList.

Returns:
the ParameterList.Parameters ObservableList.
Since:
0.1.0

getName

public String getName()
Gets the name.

Returns:
the name.
Since:
0.1.0

setName

public void setName(String name)
Sets the name of the model.

Parameters:
name - the new name to set.
Since:
0.1.0

updateParametersAtModel

private void updateParametersAtModel()
Writes the parameters in the model according to the presenter.

Since:
0.1.0

updateParametersAtPresenter

private void updateParametersAtPresenter()
Writes the parameters in the presenter according to the model.

Since:
0.1.0

updateName

public void updateName()
Handles property changes of name.

Since:
0.1.0

updateParameters

public void updateParameters()
Handles property changes of parameters.

Since:
0.1.0


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