public interface DocumentSecurityHandlerService
Modifier and Type | Method and Description |
---|---|
List<String> |
getAuthorizedDocumentIds(String principalId,
List<DocumentSecurityDirective> documentSecurityDirectives)
Returns a list of document ids from the given list of document security directives for which the principal with
the given principal id is allowed to view.
|
List<String> getAuthorizedDocumentIds(String principalId, List<DocumentSecurityDirective> documentSecurityDirectives) throws RiceIllegalArgumentException
This method essentially invokes
DocumentSecurityAttribute.isAuthorizedForDocument(String, org.kuali.rice.kew.api.document.Document)
method for each of the security attributes supplied in the document security directives, passing the associated
list of document ids.
principalId
- the id of the principal against which to perform the authorizationdocumentSecurityDirectives
- the list of security directives which define the documents which should be
checked for authorization and the name of the DocumentSecurityAttribute
extensions against which to
execute the authorization check.RiceIllegalArgumentException
- if the given principalId is a null or blank valueRiceIllegalArgumentException
- if any of the security attributes defined in the given list of security
directives cannot be located or loadedCopyright © 2005–2014 The Kuali Foundation. All rights reserved.