|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kns.document.authorization.FieldRestriction
public class FieldRestriction
This is a description of what this class does - zjzhou don't forget to fill this in.
Constructor Summary | |
---|---|
FieldRestriction()
Constructs a FieldAuthorization.java. |
|
FieldRestriction(String fieldName,
boolean canEdit,
boolean canView)
Constructs a FieldAuthorization.java. |
|
FieldRestriction(String fieldName,
String fieldAuthorizationFlag)
Constructs a FieldAuthorization.java. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getFieldName()
Gets the fieldName attribute. |
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. |
MaskFormatter |
getMaskFormatter()
|
int |
hashCode()
|
boolean |
isEditable()
Gets the editable attribute. |
boolean |
isHidden()
This method returns true if this authorization prohibits Viewing and Editing, resulting in a hidden field. |
boolean |
isMasked()
|
boolean |
isPartiallyMasked()
|
boolean |
isReadOnly()
This method returns true if this authorization prohibits Editing but not Viewing, resulting in a ReadOnly field. |
boolean |
isRestricted()
This method returns true if the FieldAuthorization is some kind of restriction, and returns false if it is an editable field. |
boolean |
isShouldBeEncrypted()
|
boolean |
isViewable()
Gets the viewable attribute. |
void |
setEditable(boolean editable)
Sets the editable attribute value. |
void |
setFieldName(String fieldName)
Sets the fieldName attribute value. |
void |
setMaskFormatter(MaskFormatter maskFormatter)
|
void |
setShouldBeEncrypted(boolean shouldBeEncrypted)
|
void |
setViewable(boolean viewable)
Sets the viewable attribute value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FieldRestriction()
public FieldRestriction(String fieldName, boolean canEdit, boolean canView)
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 otherwisepublic FieldRestriction(String fieldName, String fieldAuthorizationFlag)
fieldName
- - name of the field to representfieldAuthorizationFlag
- - Field.HIDDEN, Field.READONLY, or Field.EDITABLEMethod Detail |
---|
public String getKualiFieldDisplayFlag()
public boolean isRestricted()
public boolean isHidden()
public boolean isReadOnly()
public boolean isEditable()
public void setEditable(boolean editable)
editable
- The editable to set.public String getFieldName()
public void setFieldName(String fieldName)
fieldName
- The fieldName to set.public boolean isViewable()
public void setViewable(boolean viewable)
viewable
- The viewable to set.public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean isMasked()
public boolean isPartiallyMasked()
public boolean isShouldBeEncrypted()
public void setShouldBeEncrypted(boolean shouldBeEncrypted)
shouldBeEncrypted
- the shouldBeEncrypted to setpublic MaskFormatter getMaskFormatter()
public void setMaskFormatter(MaskFormatter maskFormatter)
maskFormatter
- the maskFormatter to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |