Class FieldRestriction
java.lang.Object
org.kuali.rice.kns.document.authorization.FieldRestriction
Deprecated.
Only used in KNS classes, use KRAD.
This class represents the authorization restrictions (or lack of) for a given field.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.FieldRestriction(String fieldName, boolean canEdit, boolean canView) Deprecated.FieldRestriction(String fieldName, String fieldAuthorizationFlag) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Deprecated.Gets the fieldName attribute.Deprecated.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.Deprecated.inthashCode()Deprecated.booleanDeprecated.Gets the editable attribute.booleanisHidden()Deprecated.This method returns true if this authorization prohibits Viewing and Editing, resulting in a hidden field.booleanisMasked()Deprecated.booleanDeprecated.booleanDeprecated.This method returns true if this authorization prohibits Editing but not Viewing, resulting in a ReadOnly field.booleanDeprecated.This method returns true if the FieldAuthorization is some kind of restriction, and returns false if it is an editable field.booleanDeprecated.booleanDeprecated.Gets the viewable attribute.voidsetEditable(boolean editable) Deprecated.Sets the editable attribute value.voidsetFieldName(String fieldName) Deprecated.Sets the fieldName attribute value.voidsetMaskFormatter(MaskFormatter maskFormatter) Deprecated.voidsetShouldBeEncrypted(boolean shouldBeEncrypted) Deprecated.voidsetViewable(boolean viewable) Deprecated.Sets the viewable attribute value.toString()Deprecated.
-
Constructor Details
-
FieldRestriction
public FieldRestriction()Deprecated. -
FieldRestriction
Deprecated.- Parameters:
fieldName- - name of field to representcanEdit- - true if the field is editable in this context, false otherwisecanView- - true if thie field is viewable in this context, false otherwise
-
FieldRestriction
Deprecated.- Parameters:
fieldName- - name of the field to representfieldAuthorizationFlag- - Field.HIDDEN, Field.READONLY, or Field.EDITABLE
-
-
Method Details
-
getKualiFieldDisplayFlag
Deprecated.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.- Returns:
- Field.HIDDEN, Field.READONLY, or Field.EDITABLE
-
isRestricted
public boolean isRestricted()Deprecated.This method returns true if the FieldAuthorization is some kind of restriction, and returns false if it is an editable field.- Returns:
- boolean
-
isHidden
public boolean isHidden()Deprecated.This method returns true if this authorization prohibits Viewing and Editing, resulting in a hidden field.- Returns:
- boolean
-
isReadOnly
public boolean isReadOnly()Deprecated.This method returns true if this authorization prohibits Editing but not Viewing, resulting in a ReadOnly field.- Returns:
- boolean
-
isEditable
public boolean isEditable()Deprecated.Gets the editable attribute.- Returns:
- Returns the editable.
-
setEditable
public void setEditable(boolean editable) Deprecated.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.
-
getFieldName
Deprecated.Gets the fieldName attribute.- Returns:
- Returns the fieldName.
-
setFieldName
Deprecated.Sets the fieldName attribute value.- Parameters:
fieldName- The fieldName to set.
-
isViewable
public boolean isViewable()Deprecated.Gets the viewable attribute.- Returns:
- Returns the viewable.
-
setViewable
public void setViewable(boolean viewable) Deprecated.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.
-
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
isMasked
public boolean isMasked()Deprecated.- Returns:
- the masked
-
isPartiallyMasked
public boolean isPartiallyMasked()Deprecated.- Returns:
- the partiallyMasked
-
isShouldBeEncrypted
public boolean isShouldBeEncrypted()Deprecated.- Returns:
- the shouldBeEncrypted
-
setShouldBeEncrypted
public void setShouldBeEncrypted(boolean shouldBeEncrypted) Deprecated.- Parameters:
shouldBeEncrypted- the shouldBeEncrypted to set
-
getMaskFormatter
Deprecated.- Returns:
- the maskFormatter
-
setMaskFormatter
Deprecated.- Parameters:
maskFormatter- the maskFormatter to set
-