public class AuthorizationManagerImpl extends Object implements AuthorizationManager
AuthorizationManager.ProtectedOperation
ADMIN_ROLE, OWNER_ROLE, PUBLIC_GROUP, UNKNOWN_USER
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 AuthorizationManager
SecurityException
public void checkOperationAuthorization(String caseId, AuthorizationManager.ProtectedOperation operation) throws SecurityException
checkOperationAuthorization
in interface AuthorizationManager
SecurityException
public 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 AuthorizationManager
public void checkDataAuthorization(String caseId, CaseFileInstance caseFileInstance, Collection<String> dataNames)
checkDataAuthorization
in interface AuthorizationManager
public List<CommentInstance> filterByCommentAuthorization(String caseId, CaseFileInstance caseFileInstance, List<CommentInstance> comments)
filterByCommentAuthorization
in interface AuthorizationManager
public void checkCommentAuthorization(String caseId, CaseFileInstance caseFileInstance, CommentInstance commentInstance)
checkCommentAuthorization
in interface AuthorizationManager
protected List<String> getCallerRoles(CaseFileInstance caseFileInstance, List<String> callerAuthorization)
protected boolean loggedInAsSystemUser()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.