|
![]() |
||||||||
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.PolicyPresenter
public class PolicyPresenter
Presenter for a PolicyBean
.
Constructor Summary | |
---|---|
PolicyPresenter(org.openpermis.policy.bean.PolicyBean model,
org.openpermis.policy.bean.PartBeanFactory policyFactory)
Creates a new presenter for the specified policy. |
Method Summary | |
---|---|
protected void |
execute(Command command)
Executes a command using the built-in dispatcher. |
PolicyPartPool<org.openpermis.policy.bean.ActionBean> |
getActionPool()
Returns the policy pool. |
PolicyPartPool<org.openpermis.policy.bean.AuthorityBean> |
getAuthorityPool()
Returns the policy pool for authorities. |
CommandDispatcher |
getCommandDispatcher()
Returns the dispatcher for commands that operate on the policy. |
CommandManager |
getCommandManager()
Returns the command manager of this policy presenter. |
String |
getFilename()
|
PolicyPartPool<org.openpermis.policy.bean.ObligationBean> |
getObligationPool()
Returns the policy pool. |
org.openpermis.policy.bean.PartBeanFactory |
getPartBeanFactory()
Returns the part bean factory to use when creating new parts. |
org.openpermis.policy.bean.PolicyBean |
getPolicy()
Returns the policy of this policy presenter. |
org.openpermis.policy.bean.PolicyBean |
getPolicyBean()
Returns the policy bean. |
String |
getPolicyProblems(org.jdesktop.application.ResourceMap resourceMap)
Returns the policy pool. |
PolicyPartPool<org.openpermis.policy.bean.DomainBean> |
getResourceDomainPool()
Returns the policy pool. |
PolicyRoleRefPool |
getRolePool()
Returns the policy pool. |
PolicyPartPool<org.openpermis.policy.bean.DomainBean> |
getSubjectDomainPool()
Returns the subject domain pool. |
PolicyPartPool<org.openpermis.policy.bean.TargetBean> |
getTargetPool()
Returns the policy pool. |
boolean |
policyIsValid()
Returns the policy pool. |
void |
roleAssignmentRulesChanged(org.openpermis.policy.bean.PolicyBean source)
Handles property changes of roleAssignmentRules. |
void |
roleHierarchiesChanged(org.openpermis.policy.bean.PolicyBean source)
Handles property changes of roleHierarchies. |
void |
setFilename(String filename)
|
void |
targetAccessRulesChanged(org.openpermis.policy.bean.PolicyBean source)
Handles property changes of targetAccessRules. |
Methods inherited from class org.openpermis.editor.policy.presenter.PartPresenter |
---|
change, change, containsSerial, createChangeCommand, createCollectionAtPresenter, dispose, getContext, getModelSerialNumber, 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 PolicyPresenter(org.openpermis.policy.bean.PolicyBean model, org.openpermis.policy.bean.PartBeanFactory policyFactory)
model
- the policy to create the presenter for, must not be null
.policyFactory
- the factory that created the policy bean specified.Method Detail |
---|
public org.openpermis.policy.bean.PolicyBean getPolicy()
public CommandManager getCommandManager()
null
.public String getFilename()
public void setFilename(String filename)
filename
- filename to set.
the filename to set.public boolean policyIsValid()
public String getPolicyProblems(org.jdesktop.application.ResourceMap resourceMap)
public org.openpermis.policy.bean.PolicyBean getPolicyBean()
PolicyContext
getPolicyBean
in interface PolicyContext
public org.openpermis.policy.bean.PartBeanFactory getPartBeanFactory()
PartPresenter
getPartBeanFactory
in interface PolicyContext
getPartBeanFactory
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public CommandDispatcher getCommandDispatcher()
PolicyContext
getCommandDispatcher
in interface PolicyContext
null
.public PolicyPartPool<org.openpermis.policy.bean.ActionBean> getActionPool()
getActionPool
in interface PolicyContext
getActionPool
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public PolicyPartPool<org.openpermis.policy.bean.AuthorityBean> getAuthorityPool()
PartPresenter
getAuthorityPool
in interface PolicyContext
getAuthorityPool
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public PolicyPartPool<org.openpermis.policy.bean.DomainBean> getResourceDomainPool()
getResourceDomainPool
in interface PolicyContext
getResourceDomainPool
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public PolicyPartPool<org.openpermis.policy.bean.DomainBean> getSubjectDomainPool()
getSubjectDomainPool
in interface PolicyContext
getSubjectDomainPool
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public PolicyPartPool<org.openpermis.policy.bean.TargetBean> getTargetPool()
getTargetPool
in interface PolicyContext
getTargetPool
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public PolicyPartPool<org.openpermis.policy.bean.ObligationBean> getObligationPool()
getObligationPool
in interface PolicyContext
getObligationPool
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public PolicyRoleRefPool getRolePool()
getRolePool
in interface PolicyContext
getRolePool
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
public void roleAssignmentRulesChanged(org.openpermis.policy.bean.PolicyBean source)
source
- the policy that has changed.public void targetAccessRulesChanged(org.openpermis.policy.bean.PolicyBean source)
source
- the policy that has changed.public void roleHierarchiesChanged(org.openpermis.policy.bean.PolicyBean source)
source
- the policy that has changed.protected void execute(Command command)
PartPresenter
execute
in class PartPresenter<org.openpermis.policy.bean.PolicyBean>
command
- the command to execute.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:11
Copyright (c) 2002-2007 Ergon Informatik AG