public class AuthorizationManagerImpl extends Object implements AuthorizationManager
AuthorizationManager.ProtectedOperationADMIN_ROLE, OWNER_ROLE, PUBLIC_GROUP| Constructor and Description |
|---|
AuthorizationManagerImpl(org.kie.internal.identity.IdentityProvider identityProvider,
org.jbpm.shared.services.impl.TransactionalCommandService commandService) |
public AuthorizationManagerImpl(org.kie.internal.identity.IdentityProvider identityProvider,
org.jbpm.shared.services.impl.TransactionalCommandService commandService)
public void checkAuthorization(String caseId) throws SecurityException
checkAuthorization in interface AuthorizationManagerSecurityExceptionpublic void checkOperationAuthorization(String caseId, AuthorizationManager.ProtectedOperation operation) throws SecurityException
checkOperationAuthorization in interface AuthorizationManagerSecurityExceptionpublic boolean isEnabled()
public void setEnabled(boolean enabled)
protected void buildAuthorizationConfig()
protected void verifyAuthorization(String caseId, List<String> authorizedEntities, String errorMessage)
public Map<String,Object> filterByDataAuthorization(String caseId, CaseFileInstance caseFileInstance, Map<String,Object> data)
filterByDataAuthorization in interface AuthorizationManagerpublic void checkDataAuthorization(String caseId, CaseFileInstance caseFileInstance, Collection<String> dataNames)
checkDataAuthorization in interface AuthorizationManagerpublic List<CommentInstance> filterByCommentAuthorization(String caseId, CaseFileInstance caseFileInstance, List<CommentInstance> comments)
filterByCommentAuthorization in interface AuthorizationManagerpublic void checkCommentAuthorization(String caseId, CaseFileInstance caseFileInstance, CommentInstance commentInstance)
checkCommentAuthorization in interface AuthorizationManagerprotected List<String> getCallerRoles(CaseFileInstance caseFileInstance, List<String> callerAuthorization)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.