@Service(value="blWorkflowFeatureService") public class WorkflowFeatureServiceImpl extends Object implements WorkflowFeatureService
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.core.env.Environment |
env |
ROLE_SKIP_PROMOTION| Constructor and Description |
|---|
WorkflowFeatureServiceImpl(org.springframework.core.env.Environment env) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
hasPermission(org.springframework.security.core.Authentication authentication) |
boolean |
isGlobalPromotionSandboxDisabled()
Check to see if the promotion sandbox is disabled globally for all users via
sandbox.promotion.global.disabled |
boolean |
isPromotionSandboxRequired()
Determines whether use of the promotion sandbox feature is required.
|
boolean |
isUserPermittedToSkipPromotionSandbox()
Check to see if the current logged-in admin user has permission to
skip promotions (i.e., has
WorkflowFeatureService.ROLE_SKIP_PROMOTION). |
public WorkflowFeatureServiceImpl(org.springframework.core.env.Environment env)
public boolean isPromotionSandboxRequired()
WorkflowFeatureServiceDetermines whether use of the promotion sandbox feature is required.
sandbox.promotion.global.disabled. If set to true, then other checks are
circumvented and this method returns false.WorkflowFeatureService.ROLE_SKIP_PROMOTION).
If so, then return false.trueisPromotionSandboxRequired in interface WorkflowFeatureServicepublic boolean isGlobalPromotionSandboxDisabled()
WorkflowFeatureServicesandbox.promotion.global.disabledisGlobalPromotionSandboxDisabled in interface WorkflowFeatureServicepublic boolean isUserPermittedToSkipPromotionSandbox()
WorkflowFeatureServiceWorkflowFeatureService.ROLE_SKIP_PROMOTION).isUserPermittedToSkipPromotionSandbox in interface WorkflowFeatureServiceprotected boolean hasPermission(org.springframework.security.core.Authentication authentication)
Copyright © 2019. All rights reserved.