public class MockLicenseRoleDefinitions extends Object implements LicenseRoleDefinitions
Constructor and Description |
---|
MockLicenseRoleDefinitions() |
@Nonnull public Set<LicenseRoleDefinition> getDefinedRoleDefinitions()
LicenseRoleDefinitions
LicenseRoleDefinition
s. A LicenseRoleDefinition
is
considered defined when a plugin provides it. A defined LicenseRoleDefinition
does not necessarily have an accompanying license.getDefinedRoleDefinitions
in interface LicenseRoleDefinitions
LicenseRoleDefinition
s.@Nonnull public Set<LicenseRoleDefinition> getInstalledRoleDefinitions()
LicenseRoleDefinitions
LicenseRoleDefinition
s. 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 LicenseRoleDefinitions
LicenseRoleDefinition
s.public boolean isLicenseRoleDefined(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitions
true
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 LicenseRoleDefinitions
licenseRoleId
- the ID to check.true
when the passed LicenseRoleId
is defined.public boolean isLicenseRoleInstalled(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitions
true
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 LicenseRoleDefinitions
licenseRoleId
- the ID to check.true
when the passed LicenseRoleId
is installed.@Nonnull public com.atlassian.fugue.Option<LicenseRoleDefinition> getDefinedRoleDefinition(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitions
LicenseRoleDefinition
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 LicenseRoleDefinitions
licenseRoleId
- 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)
LicenseRoleDefinitions
LicenseRoleDefinition
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 LicenseRoleDefinitions
licenseRoleId
- 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.