public class MockLicenseRoleDefinitions extends Object implements LicenseRoleDefinitions
| Constructor and Description |
|---|
MockLicenseRoleDefinitions() |
@Nonnull public Set<LicenseRoleDefinition> getDefinedRoleDefinitions()
LicenseRoleDefinitionsLicenseRoleDefinitions. A LicenseRoleDefinition is
considered defined when a plugin provides it. A defined LicenseRoleDefinition
does not necessarily have an accompanying license.getDefinedRoleDefinitions in interface LicenseRoleDefinitionsLicenseRoleDefinitions.@Nonnull public Set<LicenseRoleDefinition> getInstalledRoleDefinitions()
LicenseRoleDefinitionsLicenseRoleDefinitions. A LicenseRoleDefinition
is considered installed when a plugin defines it and it has an accompanying license.
An installed LicenseRole has been defined by a plugin/product
AND has an accompanying license that grants that role.getInstalledRoleDefinitions in interface LicenseRoleDefinitionsLicenseRoleDefinitions.public boolean isLicenseRoleDefined(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionstrue if the LicenseRole identified by the given LicenseRoleId
is defined.
A defined LicenseRole has been defined by a plugin/product
but does not necessarily have an accompanying license that grants that role.isLicenseRoleDefined in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.true when the passed LicenseRoleId is defined.public boolean isLicenseRoleInstalled(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionstrue when the passed LicenseRoleId is installed.
An installed LicenseRole has been defined by a plugin/product
AND has an accompanying license that grants that role.isLicenseRoleInstalled in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.true when the passed LicenseRoleId is installed.@Nonnull public com.atlassian.fugue.Option<LicenseRoleDefinition> getDefinedRoleDefinition(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionsLicenseRoleDefinition associated with the passed LicenseRoleId
provided it is defined. A value of Option.none() is returned if the passed
LicenseRoleId is undefined.
A defined LicenseRole has been defined by a plugin/product
but does not necessarily have an accompanying license that grants that role.getDefinedRoleDefinition in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.LicenseRoleDefinition associated with the passed
LicenseRoleId if it is defined or Option.none()
otherwise.@Nonnull public com.atlassian.fugue.Option<LicenseRoleDefinition> getInstalledRoleDefinition(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionsLicenseRoleDefinition associated with the passed LicenseRoleId
provided it is installed. A value of Option.none() is returned if the passed
LicenseRoleId is not installed.
An installed LicenseRole has been defined by a plugin/product
AND has an accompanying license that grants that role.getInstalledRoleDefinition in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.LicenseRoleDefinition associated with the passed
LicenseRoleId if it is installed or Option.none()
otherwise.public MockLicenseRoleDefinitions addDefined(LicenseRoleDefinition def)
public MockLicenseRoleDefinitions addAuthorised(LicenseRoleDefinition def)
public MockLicenseRoleDefinitions removeAuthorised(LicenseRoleDefinition def)
Copyright © 2002-2015 Atlassian. All Rights Reserved.