Class AttributeSecurity
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
org.kuali.rice.krad.datadictionary.AttributeSecurity
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean
Defines a set of restrictions that are possible on an attribute
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) voidcompleteValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer) Directly validate simple fieldsbooleanReturns whether any of the restrictions defined in this class are true.booleanReturns whether any of the restrictions defined in this class indicate that the attribute value potentially needs to be not shown to the user (i.e. masked, partial mask, hide).booleanisHide()booleanisMask()booleanbooleanvoidsetHide(boolean hide) voidsetMask(boolean mask) voidsetMaskFormatter(MaskFormatter maskFormatter) voidsetPartialMask(boolean partialMask) voidsetPartialMaskFormatter(MaskFormatter partialMaskFormatter) voidsetReadOnly(boolean readOnly) toString()Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
-
Constructor Details
-
AttributeSecurity
public AttributeSecurity()
-
-
Method Details
-
isReadOnly
public boolean isReadOnly()- Returns:
- the readOnly
-
setReadOnly
public void setReadOnly(boolean readOnly) - Parameters:
readOnly- the readOnly to set
-
isHide
public boolean isHide()- Returns:
- the hide
-
setHide
public void setHide(boolean hide) - Parameters:
hide- the hide to set
-
isMask
public boolean isMask()- Returns:
- the mask
-
setMask
public void setMask(boolean mask) - Parameters:
mask- the mask to set
-
isPartialMask
public boolean isPartialMask()- Returns:
- the partialMask
-
setPartialMask
public void setPartialMask(boolean partialMask) - Parameters:
partialMask- the partialMask to set
-
getMaskFormatter
- Returns:
- the maskFormatter
-
setMaskFormatter
- Parameters:
maskFormatter- the maskFormatter to set
-
getPartialMaskFormatter
- Returns:
- the partialMaskFormatter
-
setPartialMaskFormatter
- Parameters:
partialMaskFormatter- the partialMaskFormatter to set
-
completeValidation
-
completeValidation
public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass, ValidationTrace tracer) Directly validate simple fields- See Also:
-
hasAnyRestriction
public boolean hasAnyRestriction()Returns whether any of the restrictions defined in this class are true. -
hasRestrictionThatRemovesValueFromUI
public boolean hasRestrictionThatRemovesValueFromUI()Returns whether any of the restrictions defined in this class indicate that the attribute value potentially needs to be not shown to the user (i.e. masked, partial mask, hide). Note that readonly does not fall in this category.- Returns:
- true if the value should be hidden from the user
-
toString
-