|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.view.AbstractView
org.openpermis.editor.policy.view.AbstractEditor<RoleAssignmentRulePresenter>
org.openpermis.editor.policy.view.RoleAssignmentRuleEditor
public class RoleAssignmentRuleEditor
Tool view that displays a role assignment rule.
Field Summary | |
---|---|
private JCheckBox |
absolutePeriodCheckBox
|
private JComboBox |
authority
Chooser for the authority. |
private org.openpermis.policy.TimeStamp |
defaultZoneTimeStamp
|
private JLabel |
delegationDepthLabel
|
private org.jdesktop.swingx.JXDatePicker |
endDatePicker
|
private static org.slf4j.Logger |
LOGGER
The logger object of this class. |
private JCheckBox |
maximumUpToCheckBox
|
private org.jdesktop.swingx.JXDatePicker |
maximumUpToDatePicker
|
private int |
maximumUpToDays
|
private static int |
MILLIS_IN_A_DAY
|
private JCheckBox |
minimumFromCheckBox
|
private org.jdesktop.swingx.JXDatePicker |
minimumFromDatePicker
|
private int |
minimumFromDays
|
private JCheckBox |
minimumUpToCheckBox
|
private org.jdesktop.swingx.JXDatePicker |
minimumUpToDatePicker
|
private int |
minimumUpToDays
|
private org.jdesktop.swingx.JXDatePicker |
referenceDatePicker
|
private CheckList<org.openpermis.policy.Role> |
roleList
The list of roles in the role assignment rule. |
private org.jdesktop.swingx.JXDatePicker |
startDatePicker
|
private JComboBox |
subjectDomain
Chooser for the subject domain of the rule. |
Constructor Summary | |
---|---|
RoleAssignmentRuleEditor(org.jdesktop.application.ApplicationContext context,
AdapterTrader trader,
RoleAssignmentRulePresenter presenter)
Creates role assignment rule editor. |
Method Summary | |
---|---|
void |
addAuthority()
|
void |
addSubjectDomain()
|
private Date |
addToReference(int daysNumber)
|
private JComponent |
attributeAuthority()
|
protected void |
bind(org.jdesktop.beansbinding.BindingGroup bindings)
Binds all components to the presenter. |
private JComponent |
depthAndConstraints()
|
void |
editAuthority()
|
void |
editSubjectDomain()
|
private int |
extractMaximumUpToDays()
|
private int |
extractMinimumFromDays()
|
private int |
extractMinimumUpToDays()
|
void |
fillContentPane(JPanel panel)
|
void |
removeAuthority()
|
void |
removeSubjectDomain()
|
private JComponent |
roleList()
|
void |
setConstraint(org.openpermis.basic.TimePeriodConstraint newConstraint)
Sets the constraint. |
private void |
setMaximumValidUpToDayNumber(int daysNumber)
|
private void |
setMinimumValidFromDayNumber(int daysNumber)
|
private void |
setMinimumValidUpToDayNumber(int daysNumber)
|
private JComponent |
subjectDomainChooser()
|
void |
updateConstraintAtModel()
Updates the the constraints in the model. |
Methods inherited from class org.openpermis.editor.policy.view.AbstractEditor |
---|
adjustTitleParameters, canClose, contentPaneCreated, createContentPane, dispose, getModelSerialNumber, getPresenter, getTitleParameters, showYesNoDialog |
Methods inherited from class org.openpermis.editor.policy.view.AbstractView |
---|
attach, canEditPart, closeView, detach, editPart, getActionMap, getAdapteeTrader, getContentPane, getIcon, getResourceMap, getTitle, getViewContext, label, openView, showStatusError, toolBar, updateTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openpermis.editor.policy.view.View |
---|
attach, detach, getContentPane, getIcon, getTitle |
Field Detail |
---|
private static final org.slf4j.Logger LOGGER
private static final int MILLIS_IN_A_DAY
86400000
private JComboBox authority
private JComboBox subjectDomain
private CheckList<org.openpermis.policy.Role> roleList
private JLabel delegationDepthLabel
private JCheckBox absolutePeriodCheckBox
private org.jdesktop.swingx.JXDatePicker startDatePicker
private org.jdesktop.swingx.JXDatePicker endDatePicker
private org.jdesktop.swingx.JXDatePicker referenceDatePicker
private JCheckBox minimumFromCheckBox
private org.jdesktop.swingx.JXDatePicker minimumFromDatePicker
private int minimumFromDays
private JCheckBox minimumUpToCheckBox
private org.jdesktop.swingx.JXDatePicker minimumUpToDatePicker
private int minimumUpToDays
private JCheckBox maximumUpToCheckBox
private org.jdesktop.swingx.JXDatePicker maximumUpToDatePicker
private int maximumUpToDays
private org.openpermis.policy.TimeStamp defaultZoneTimeStamp
Constructor Detail |
---|
public RoleAssignmentRuleEditor(org.jdesktop.application.ApplicationContext context, AdapterTrader trader, RoleAssignmentRulePresenter presenter)
context
- the application context used to lookup the action and resource map.presenter
- the presenter of this view.Method Detail |
---|
public void updateConstraintAtModel()
public void setConstraint(org.openpermis.basic.TimePeriodConstraint newConstraint)
newConstraint
- the constraint.private int extractMaximumUpToDays()
private int extractMinimumUpToDays()
private int extractMinimumFromDays()
private void setMaximumValidUpToDayNumber(int daysNumber)
private void setMinimumValidUpToDayNumber(int daysNumber)
private void setMinimumValidFromDayNumber(int daysNumber)
private Date addToReference(int daysNumber)
@Action public void addAuthority()
@Action public void removeAuthority()
@Action public void editAuthority()
@Action public void addSubjectDomain()
@Action public void removeSubjectDomain()
@Action public void editSubjectDomain()
protected void bind(org.jdesktop.beansbinding.BindingGroup bindings)
AbstractEditor
This method is called after creation of the content pane.
bind
in class AbstractEditor<RoleAssignmentRulePresenter>
bindings
- the binding group to add bindings to.private JComponent attributeAuthority()
private JComponent subjectDomainChooser()
private JComponent roleList()
private JComponent depthAndConstraints()
public void fillContentPane(JPanel panel)
fillContentPane
in class AbstractEditor<RoleAssignmentRulePresenter>
|
![]() |
||||||||
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:22
Copyright (c) 2002-2007 Ergon Informatik AG