org.kuali.kpme.tklm.common
Class AuthorizationValidationUtils

java.lang.Object
  extended by org.kuali.kpme.tklm.common.AuthorizationValidationUtils

public class AuthorizationValidationUtils
extends Object


Constructor Summary
AuthorizationValidationUtils()
           
 
Method Summary
static boolean canWildcardDepartment(DepartmentalRule departmentalRule)
          Can the current user use a wildcard for the department?
static boolean canWildcardWorkArea(DepartmentalRule departmentalRule)
          Indicates whether or not the current user can wildcard the work area of the specified DepartmentalRule.
static boolean hasAccessToRead(DepartmentalRule departmentalRule)
          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 departmentalRule)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizationValidationUtils

public AuthorizationValidationUtils()
Method Detail

canWildcardWorkArea

public static boolean canWildcardWorkArea(DepartmentalRule departmentalRule)
Indicates whether or not the current user can wildcard the work area of the specified DepartmentalRule.

Parameters:
departmentalRule - The DepartmentalRule we are investigating.
Returns:
true if you can wildcard the WorkArea, false otherwise.

canWildcardDepartment

public static boolean canWildcardDepartment(DepartmentalRule departmentalRule)
Can the current user use a wildcard for the department?

Parameters:
departmentalRule - The DepartmentalRule we are examining.
Returns:
true if so, false otherwise.

hasAccessToWrite

public static boolean hasAccessToWrite(DepartmentalRule departmentalRule)

hasAccessToRead

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

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


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