View Javadoc

1   package org.kuali.rice.krad.data.metadata;
2   
3   import java.io.Serializable;
4   
5   import org.kuali.rice.krad.data.metadata.impl.security.DataObjectAttributeMaskFormatter;
6   
7   /**
8    * Defines a set of restrictions that are possible on an attribute.
9    * 
10   * @author Kuali Rice Team (rice.collab@kuali.org)
11   */
12  public interface DataObjectAttributeSecurity extends Serializable {
13  
14  	boolean isReadOnly();
15  	boolean isHide();
16  	boolean isMask();
17  	boolean isPartialMask();
18  
19  	DataObjectAttributeMaskFormatter getMaskFormatter();
20  	DataObjectAttributeMaskFormatter getPartialMaskFormatter();
21  
22  	/**
23  	 * Returns whether any of the restrictions defined in this class are true.
24  	 */
25  	boolean hasAnyRestriction();
26  
27  }