|
![]() |
||||||||
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.RoleAssignmentPresenter
public class RoleAssignmentPresenter
Presentation model for the role assignment view.
Nested Class Summary | |
---|---|
static class |
RoleAssignmentPresenter.SubjectItem
|
Constructor Summary | |
---|---|
RoleAssignmentPresenter(org.openpermis.policy.bean.PolicyBean policy,
PolicyContext context)
Creates a new presenter. |
Method Summary | |
---|---|
void |
assignRole(RoleAssignmentPresenter.SubjectItem subjectItem)
|
void |
commitChanges()
|
org.openpermis.subject.MutableSubjectFinder |
getMutableSubjectFinder()
Gets the MutableSubjectFinder . |
org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> |
getSelectedRoles()
Gets the list of selected roles. |
org.jdesktop.observablecollections.ObservableList<RoleAssignmentPresenter.SubjectItem> |
getSubjectsWithoutRole()
Gets the list of subjects without the selected roles. |
org.jdesktop.observablecollections.ObservableList<RoleAssignmentPresenter.SubjectItem> |
getSubjectsWithRole()
Gets the list of subjects holding the selected roles. |
void |
policyChanged()
|
void |
revokeRole(RoleAssignmentPresenter.SubjectItem subjectItem)
|
void |
setIdentityFinder(org.openpermis.identity.IdentityFinder identityFinderParam)
Sets the IdentityFinder . |
void |
setMutableSubjectFinder(org.openpermis.subject.MutableSubjectFinder mutableSubjectFinderParam,
URI issuerIdentityParam)
Sets the MutableSubjectFinder . |
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 RoleAssignmentPresenter(org.openpermis.policy.bean.PolicyBean policy, PolicyContext context)
policy
- the policy whose assignment rules will be available for role assignment
and whose role hierarchy will be available for roles to assign.context
- editor meta data for the policy.Method Detail |
---|
public void assignRole(RoleAssignmentPresenter.SubjectItem subjectItem)
public void revokeRole(RoleAssignmentPresenter.SubjectItem subjectItem)
public void commitChanges() throws org.openpermis.subject.SubjectFinderException
org.openpermis.subject.SubjectFinderException
public void setIdentityFinder(org.openpermis.identity.IdentityFinder identityFinderParam)
IdentityFinder
.
identityFinderParam
- the IdentityFinder
.public org.openpermis.subject.MutableSubjectFinder getMutableSubjectFinder()
MutableSubjectFinder
.
MutableSubjectFinder
.public void setMutableSubjectFinder(org.openpermis.subject.MutableSubjectFinder mutableSubjectFinderParam, URI issuerIdentityParam)
MutableSubjectFinder
.
mutableSubjectFinderParam
- the MutableSubjectFinder
.issuerIdentityParam
- the issuer identity.public org.jdesktop.observablecollections.ObservableList<org.openpermis.policy.Role> getSelectedRoles()
public org.jdesktop.observablecollections.ObservableList<RoleAssignmentPresenter.SubjectItem> getSubjectsWithoutRole()
public org.jdesktop.observablecollections.ObservableList<RoleAssignmentPresenter.SubjectItem> getSubjectsWithRole()
public void policyChanged()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG