org.kuali.kfs.sec.util
Class SecUtil
java.lang.Object
org.kuali.kfs.sec.util.SecUtil
public class SecUtil
- extends Object
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 |
SecUtil
public SecUtil()
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 toresults
- List to get size for and comparemessageKey
- 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.