Class EntityFlagServiceImpl
java.lang.Object
com.codebarrel.automation.sample.rules.service.EntityFlagServiceImpl
- All Implemented Interfaces:
EntityFlagService
-
Constructor Summary
ConstructorsConstructorDescriptionEntityFlagServiceImpl
(ClientFactory<JIRAClient> jiraClientFactory, TenantService tenantService) -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasProjectFlag
(TenantActor tenantActor, String projectKey, String flagName) Checks if a project has entity property (flagName), if it does then returns trueboolean
hasTenantTag
(TenantActor tenantActor, String flagName) Checks if tenant has property (flagName), if it does then returns truevoid
setProjectFlag
(TenantActor tenantActor, String projectKey, String flagName) Adds an entity property (flagName) and sets it to true.void
setTenantFlag
(TenantActor tenantActor, String flagName) Adds a tenant property (flagName) and sets it to true.
-
Constructor Details
-
EntityFlagServiceImpl
@Inject public EntityFlagServiceImpl(ClientFactory<JIRAClient> jiraClientFactory, TenantService tenantService)
-
-
Method Details
-
setTenantFlag
Description copied from interface:EntityFlagService
Adds a tenant property (flagName) and sets it to true.- Specified by:
setTenantFlag
in interfaceEntityFlagService
-
hasTenantTag
Description copied from interface:EntityFlagService
Checks if tenant has property (flagName), if it does then returns true- Specified by:
hasTenantTag
in interfaceEntityFlagService
-
setProjectFlag
Description copied from interface:EntityFlagService
Adds an entity property (flagName) and sets it to true.- Specified by:
setProjectFlag
in interfaceEntityFlagService
-
hasProjectFlag
Description copied from interface:EntityFlagService
Checks if a project has entity property (flagName), if it does then returns true- Specified by:
hasProjectFlag
in interfaceEntityFlagService
-