| java.lang.Object org.kuali.core.authorization.FieldAuthorization
FieldAuthorization | public class FieldAuthorization (Code) | | This class represents the authorization restrictions (or lack of) for a given field.
|
Method Summary | |
public boolean | equals(Object obj) | public String | getFieldName() Gets the fieldName attribute. | public String | getKualiFieldDisplayFlag() This method returns the correct flag from the Kuali Field object, that corresponds to the particular combination of editable
and viewable set on this object. | public int | hashCode() | public boolean | isEditable() Gets the editable attribute. | public boolean | isHidden() This method returns true if this authorization prohibits Viewing and Editing, resulting in a hidden field. | public boolean | isReadOnly() This method returns true if this authorization prohibits Editing but not Viewing, resulting in a ReadOnly field. | public boolean | isRestricted() This method returns true if the FieldAuthorization is some kind of restriction, and returns false if it is an editable field. | public boolean | isViewable() Gets the viewable attribute. | public void | setEditable(boolean editable) Sets the editable attribute value. | public void | setFieldName(String fieldName) Sets the fieldName attribute value. | public void | setViewable(boolean viewable) Sets the viewable attribute value.
Note that if viewable is being set to false, and the internal value of editable is true, then editable will be silently
flipped to false. | public String | toString() |
FieldAuthorization | public FieldAuthorization()(Code) | | Constructs a FieldAuthorization.java.
|
FieldAuthorization | public FieldAuthorization(String fieldName, boolean canEdit, boolean canView)(Code) | | Constructs a FieldAuthorization.java.
Parameters: fieldName - - name of field to represent Parameters: canEdit - - true if the field is editable in this context, false otherwise Parameters: canView - - true if thie field is viewable in this context, false otherwise |
FieldAuthorization | public FieldAuthorization(String fieldName, String fieldAuthorizationFlag)(Code) | | Constructs a FieldAuthorization.java.
Parameters: fieldName - - name of the field to represent Parameters: fieldAuthorizationFlag - - Field.HIDDEN, Field.READONLY, or Field.EDITABLE |
getFieldName | public String getFieldName()(Code) | | Gets the fieldName attribute.
Returns the fieldName. |
getKualiFieldDisplayFlag | public String getKualiFieldDisplayFlag()(Code) | | This method returns the correct flag from the Kuali Field object, that corresponds to the particular combination of editable
and viewable set on this object.
Field.HIDDEN, Field.READONLY, or Field.EDITABLE |
isEditable | public boolean isEditable()(Code) | | Gets the editable attribute.
Returns the editable. |
isHidden | public boolean isHidden()(Code) | | This method returns true if this authorization prohibits Viewing and Editing, resulting in a hidden field.
boolean |
isReadOnly | public boolean isReadOnly()(Code) | | This method returns true if this authorization prohibits Editing but not Viewing, resulting in a ReadOnly field.
boolean |
isRestricted | public boolean isRestricted()(Code) | | This method returns true if the FieldAuthorization is some kind of restriction, and returns false if it is an editable field.
boolean |
isViewable | public boolean isViewable()(Code) | | Gets the viewable attribute.
Returns the viewable. |
setEditable | public void setEditable(boolean editable)(Code) | | Sets the editable attribute value.
Note that if editable is being set to true, and the internal value of viewable is false, viewable will be flipped to true, to
avoid impossible combinations of flags.
Parameters: editable - The editable to set. |
setFieldName | public void setFieldName(String fieldName)(Code) | | Sets the fieldName attribute value.
Parameters: fieldName - The fieldName to set. |
setViewable | public void setViewable(boolean viewable)(Code) | | Sets the viewable attribute value.
Note that if viewable is being set to false, and the internal value of editable is true, then editable will be silently
flipped to false. This is done to avoid impossible combinations of authorization flags.
Parameters: viewable - The viewable to set. |
|
|