org.kuali.rice.krad.lookup
Class LookupViewAuthorizerBase

java.lang.Object
  extended by org.kuali.rice.krad.bo.DataObjectAuthorizerBase
      extended by org.kuali.rice.krad.uif.view.ViewAuthorizerBase
          extended by org.kuali.rice.krad.lookup.LookupViewAuthorizerBase
All Implemented Interfaces:
Serializable, DataObjectAuthorizer, ViewAuthorizer

public class LookupViewAuthorizerBase
extends ViewAuthorizerBase

Implementation of ViewAuthorizer for LookupView instances

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Constructor Summary
LookupViewAuthorizerBase()
           
 
Method Summary
 boolean canInitiateMaintenanceDocument(String dataObjectClassName, Person user)
          Check if user is allowed to initiate the maintenance document associated with the lookup data object class.
 boolean canOpenView(View view, ViewModel model, Person user)
          Override to check the for permissions of type 'Look Up Records' in addition to the open view check done in super
 
Methods inherited from class org.kuali.rice.krad.uif.view.ViewAuthorizerBase
canEditField, canEditGroup, canEditLine, canEditLineField, canEditView, canEditWidget, canPartialUnmaskField, canPerformAction, canPerformLineAction, canUnmaskField, canViewField, canViewGroup, canViewLine, canViewLineField, canViewWidget, getActionFlags, getActionPermissionDetails, getConfigurationService, getDataObjectContext, getEditModes, getFieldPermissionDetails, getGroupPermissionDetails, getWidgetPermissionDetails, isAuthorizedByTemplate, setConfigurationService
 
Methods inherited from class org.kuali.rice.krad.bo.DataObjectAuthorizerBase
addPermissionDetails, addRoleQualification, getPermissionDetailValues, getPermissionService, getPersonService, getRoleQualification, isAuthorized, isAuthorized, isAuthorizedByTemplate, isAuthorizedByTemplate, permissionExistsByTemplate, permissionExistsByTemplate, permissionExistsByTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupViewAuthorizerBase

public LookupViewAuthorizerBase()
Method Detail

canOpenView

public boolean canOpenView(View view,
                           ViewModel model,
                           Person user)
Override to check the for permissions of type 'Look Up Records' in addition to the open view check done in super

Specified by:
canOpenView in interface ViewAuthorizer
Overrides:
canOpenView in class ViewAuthorizerBase
Parameters:
view - view instance the open permission should be checked for
model - object containing the model data associated with the view
user - user who is requesting the view
Returns:
boolean true if the user is authorized to open the view, false otherwise
See Also:
ViewAuthorizer.canOpenView(View, ViewModel, org.kuali.rice.kim.api.identity.Person)

canInitiateMaintenanceDocument

public boolean canInitiateMaintenanceDocument(String dataObjectClassName,
                                              Person user)
Check if user is allowed to initiate the maintenance document associated with the lookup data object class.

Parameters:
dataObjectClassName - data object class name associated with the lookup
user - user we are authorizing the actions for
Returns:
true if user is authorized to initiate the document, false otherwise


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.