org.kuali.kfs.sec.util
Class SecUtil

java.lang.Object
  extended by org.kuali.kfs.sec.util.SecUtil

public class SecUtil
extends Object


Constructor Summary
SecUtil()
           
 
Method Summary
static boolean canViewGLPE(org.kuali.rice.kns.document.Document document, GeneralLedgerPendingEntry pendingEntry)
          Calls access security service to check view access on given GLPE for current user.
static void compareListSizeAndAddMessageIfChanged(int previousListSize, List results, String messageKey)
          Compares the size of the given list against the given previous size and if different adds an info message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecUtil

public SecUtil()
Method Detail

compareListSizeAndAddMessageIfChanged

public static void compareListSizeAndAddMessageIfChanged(int previousListSize,
                                                         List results,
                                                         String messageKey)
Compares the size of the given list against the given previous size and if different adds an info message

Parameters:
previousListSize - int giving previous size of list to compare to
results - List to get size for and compare
messageKey - String key of message that should be added

canViewGLPE

public static boolean canViewGLPE(org.kuali.rice.kns.document.Document document,
                                  GeneralLedgerPendingEntry pendingEntry)
Calls access security service to check view access on given GLPE for current user. Access to view the GLPE on the document should be related to the view permissions for an accounting line with the same account attributes. Called from generalLedgerPendingEntries.tag

Parameters:
pendingEntry - GeneralLedgerPendingEntry to check access for
Returns:
boolean true if current user has view permission, false otherwise


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