org.kuali.rice.kns.document.authorization
Class MaintenanceDocumentRestrictionsBase

java.lang.Object
  extended by org.kuali.rice.kns.document.authorization.BusinessObjectRestrictionsBase
      extended by org.kuali.rice.kns.document.authorization.InquiryOrMaintenanceDocumentRestrictionsBase
          extended by org.kuali.rice.kns.document.authorization.MaintenanceDocumentRestrictionsBase
All Implemented Interfaces:
Serializable, BusinessObjectRestrictions, InquiryOrMaintenanceDocumentRestrictions, MaintenanceDocumentRestrictions, InquiryRestrictions

public class MaintenanceDocumentRestrictionsBase
extends InquiryOrMaintenanceDocumentRestrictionsBase
implements MaintenanceDocumentRestrictions

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.kns.document.authorization.BusinessObjectRestrictionsBase
allRestrictedFields
 
Constructor Summary
MaintenanceDocumentRestrictionsBase()
           
 
Method Summary
 void addReadOnlyField(String fieldName)
           
 void addReadOnlySectionId(String sectionId)
           
 void clearAllRestrictions()
           
 FieldRestriction getFieldRestriction(String fieldName)
          This method returns the authorization setting for the given field name.
 Set<String> getReadOnlySectionIds()
           
 boolean hasAnyFieldRestrictions()
           
 boolean hasRestriction(String fieldName)
           
protected  boolean isReadOnlyField(String fieldName)
           
 boolean isReadOnlySectionId(String sectionId)
           
 
Methods inherited from class org.kuali.rice.kns.document.authorization.InquiryOrMaintenanceDocumentRestrictionsBase
addHiddenField, addHiddenSectionId, isHiddenField, isHiddenSectionId
 
Methods inherited from class org.kuali.rice.kns.document.authorization.BusinessObjectRestrictionsBase
addFullyMaskedField, addPartiallyMaskedField, isFullyMaskedField, isPartiallyMaskedField, normalizeFieldName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.document.authorization.InquiryOrMaintenanceDocumentRestrictions
addHiddenField, addHiddenSectionId, isHiddenSectionId
 
Methods inherited from interface org.kuali.rice.kns.document.authorization.BusinessObjectRestrictions
addFullyMaskedField, addPartiallyMaskedField
 

Constructor Detail

MaintenanceDocumentRestrictionsBase

public MaintenanceDocumentRestrictionsBase()
Method Detail

addReadOnlyField

public void addReadOnlyField(String fieldName)
Specified by:
addReadOnlyField in interface MaintenanceDocumentRestrictions

addReadOnlySectionId

public void addReadOnlySectionId(String sectionId)
Specified by:
addReadOnlySectionId in interface MaintenanceDocumentRestrictions

getReadOnlySectionIds

public Set<String> getReadOnlySectionIds()
Specified by:
getReadOnlySectionIds in interface MaintenanceDocumentRestrictions

getFieldRestriction

public FieldRestriction getFieldRestriction(String fieldName)
Description copied from class: BusinessObjectRestrictionsBase
This method returns the authorization setting for the given field name. If the field name is not restricted in any way, a default full-editable value is returned.

Specified by:
getFieldRestriction in interface BusinessObjectRestrictions
Overrides:
getFieldRestriction in class InquiryOrMaintenanceDocumentRestrictionsBase
Parameters:
fieldName - - name of field to get authorization restrictions for.
Returns:
a populated FieldAuthorization class for this field

clearAllRestrictions

public void clearAllRestrictions()
Overrides:
clearAllRestrictions in class InquiryOrMaintenanceDocumentRestrictionsBase

isReadOnlyField

protected boolean isReadOnlyField(String fieldName)

hasAnyFieldRestrictions

public boolean hasAnyFieldRestrictions()
Specified by:
hasAnyFieldRestrictions in interface BusinessObjectRestrictions
Overrides:
hasAnyFieldRestrictions in class InquiryOrMaintenanceDocumentRestrictionsBase
See Also:
org.kuali.rice.krad.authorization.InquiryOrMaintenanceDocumentRestrictionsBase#hasAnyFieldRestrictions()

hasRestriction

public boolean hasRestriction(String fieldName)
Specified by:
hasRestriction in interface BusinessObjectRestrictions
Overrides:
hasRestriction in class InquiryOrMaintenanceDocumentRestrictionsBase
See Also:
org.kuali.rice.krad.authorization.InquiryOrMaintenanceDocumentRestrictionsBase#hasRestriction(java.lang.String)

isReadOnlySectionId

public boolean isReadOnlySectionId(String sectionId)
Specified by:
isReadOnlySectionId in interface MaintenanceDocumentRestrictions
See Also:
MaintenanceDocumentRestrictions.isReadOnlySectionId(java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.