public class DocumentSecurityHandlerServiceImpl extends Object implements DocumentSecurityHandlerService
Constructor and Description |
---|
DocumentSecurityHandlerServiceImpl() |
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.
|
ExtensionRepositoryService |
getExtensionRepositoryService() |
protected DocumentSecurityAttribute |
loadAndCacheSecurityAttribute(String securityAttributeName,
Map<String,DocumentSecurityAttribute> securityAttributeCache) |
protected DocumentSecurityAttribute |
loadSecurityAttribute(ExtensionDefinition extensionDefinition) |
protected List<DocumentSecurityAttribute> |
loadSecurityAttributes(DocumentSecurityDirective documentSecurityDirective,
Map<String,DocumentSecurityAttribute> securityAttributeCache) |
void |
setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService) |
public DocumentSecurityHandlerServiceImpl()
public List<String> getAuthorizedDocumentIds(String principalId, List<DocumentSecurityDirective> documentSecurityDirectives)
DocumentSecurityHandlerService
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.
getAuthorizedDocumentIds
in interface DocumentSecurityHandlerService
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.protected List<DocumentSecurityAttribute> loadSecurityAttributes(DocumentSecurityDirective documentSecurityDirective, Map<String,DocumentSecurityAttribute> securityAttributeCache)
protected DocumentSecurityAttribute loadAndCacheSecurityAttribute(String securityAttributeName, Map<String,DocumentSecurityAttribute> securityAttributeCache)
protected DocumentSecurityAttribute loadSecurityAttribute(ExtensionDefinition extensionDefinition)
public ExtensionRepositoryService getExtensionRepositoryService()
public void setExtensionRepositoryService(ExtensionRepositoryService extensionRepositoryService)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.