org.kuali.hr.time.authorization
Class DepartmentalRuleAuthorizer

java.lang.Object
  extended by org.kuali.hr.time.authorization.TkMaintenanceDocumentAuthorizerBase
      extended by org.kuali.hr.time.authorization.DepartmentalRuleAuthorizer
All Implemented Interfaces:
org.kuali.rice.kns.authorization.BusinessObjectAuthorizer, org.kuali.rice.kns.bo.authorization.InquiryOrMaintenanceDocumentAuthorizer, org.kuali.rice.krad.bo.DataObjectAuthorizer, org.kuali.rice.krad.document.DocumentAuthorizer, org.kuali.rice.krad.maintenance.MaintenanceDocumentAuthorizer
Direct Known Subclasses:
WorkAreaAuthorizer

public class DepartmentalRuleAuthorizer
extends TkMaintenanceDocumentAuthorizerBase

Implements Authorization logic for the "Departmental Rules": ClockLocationRule TimeCollectionRule DeptLunchRule WorkArea See: https://wiki.kuali.org/display/KPME/Role+Security+Grid


Constructor Summary
DepartmentalRuleAuthorizer()
           
 
Method Summary
static boolean hasAccessToRead(DepartmentalRule dr)
          Static helper method to provide a single point of access for both Kuali Rice maintenance page hooks as well as Lookupable filtering.
static boolean hasAccessToWrite(DepartmentalRule dr)
           
 boolean rolesIndicateGeneralReadAccess()
          Method to indicate whether or not the Context current user can read objects if the current maintenance type.
 boolean rolesIndicateGeneralWriteAccess()
          Method to indicate whether or not the Context current user can create/edit objects if the current maintenance type.
 boolean rolesIndicateReadAccess(org.kuali.rice.krad.bo.BusinessObject bo)
          Indicates whether or not the current Context user has view rights to the provided BusinessObject.
 boolean rolesIndicateWriteAccess(org.kuali.rice.krad.bo.BusinessObject bo)
          Indicates whether or not the current Context user has create/edit rights to the provided BusinessObject.
 
Methods inherited from class org.kuali.hr.time.authorization.TkMaintenanceDocumentAuthorizerBase
canAcknowledge, canAddNoteAttachment, canAnnotate, canApprove, canBlanketApprove, canCancel, canClose, canCopy, canCreate, canCreateOrMaintain, canDeleteNoteAttachment, canDisapprove, canEdit, canEditDocumentOverview, canFyi, canInitiate, canMaintain, canOpen, canPerformRouteReport, canRecall, canReceiveAdHoc, canReload, canRoute, canSave, canSendAdHocRequests, canSendAnyTypeAdHocRequests, canSendNoteFyi, canTakeRequestedAction, canViewNoteAttachment, canViewNoteAttachment, getCollectionItemPermissionDetails, getCollectionItemRoleQualifications, getDocumentActions, getRoles, getSecurePotentiallyHiddenSectionIds, getSecurePotentiallyReadOnlySectionIds, isAuthorized, isAuthorized, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate, isAuthorizedByTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepartmentalRuleAuthorizer

public DepartmentalRuleAuthorizer()
Method Detail

rolesIndicateGeneralReadAccess

public boolean rolesIndicateGeneralReadAccess()
Description copied from class: TkMaintenanceDocumentAuthorizerBase
Method to indicate whether or not the Context current user can read objects if the current maintenance type.

Specified by:
rolesIndicateGeneralReadAccess in class TkMaintenanceDocumentAuthorizerBase
Returns:
true if readable, false otherwise.

rolesIndicateGeneralWriteAccess

public boolean rolesIndicateGeneralWriteAccess()
Description copied from class: TkMaintenanceDocumentAuthorizerBase
Method to indicate whether or not the Context current user can create/edit objects if the current maintenance type.

Specified by:
rolesIndicateGeneralWriteAccess in class TkMaintenanceDocumentAuthorizerBase
Returns:
true if create/editable, false otherwise.

rolesIndicateWriteAccess

public boolean rolesIndicateWriteAccess(org.kuali.rice.krad.bo.BusinessObject bo)
Description copied from class: TkMaintenanceDocumentAuthorizerBase
Indicates whether or not the current Context user has create/edit rights to the provided BusinessObject.

Specified by:
rolesIndicateWriteAccess in class TkMaintenanceDocumentAuthorizerBase
Parameters:
bo - The BusinessObject under investigation.
Returns:
true if editable, false otherwise.

rolesIndicateReadAccess

public boolean rolesIndicateReadAccess(org.kuali.rice.krad.bo.BusinessObject bo)
Description copied from class: TkMaintenanceDocumentAuthorizerBase
Indicates whether or not the current Context user has view rights to the provided BusinessObject.

Specified by:
rolesIndicateReadAccess in class TkMaintenanceDocumentAuthorizerBase
Parameters:
bo - The BusinessObject under investigation.
Returns:
true if editable, false otherwise.

hasAccessToWrite

public static boolean hasAccessToWrite(DepartmentalRule dr)

hasAccessToRead

public static boolean hasAccessToRead(DepartmentalRule dr)
Static helper method to provide a single point of access for both Kuali Rice maintenance page hooks as well as Lookupable filtering.

Parameters:
dr - The business object under investigation.
Returns:
true if readable by current context user, false otherwise.


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.