public class DefaultServiceTypes extends Object implements ServiceTypes
Constructor and Description |
---|
DefaultServiceTypes(InBuiltServiceTypes inBuiltServiceTypes,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCustom(String serviceClassName)
Determines whether the service class has not shipped with JIRA.
|
boolean |
isInBuilt(String serviceClassName)
Determines whether the service class has shipped with JIRA.
|
boolean |
isManageableBy(ApplicationUser user,
String serviceClassName)
Determines whether an user is able to perform administrative tasks on services of an specified class.
|
public DefaultServiceTypes(InBuiltServiceTypes inBuiltServiceTypes, PermissionManager permissionManager)
public boolean isCustom(String serviceClassName)
ServiceTypes
isCustom
in interface ServiceTypes
serviceClassName
- The name of the service class.public boolean isInBuilt(String serviceClassName)
ServiceTypes
isInBuilt
in interface ServiceTypes
serviceClassName
- The name of the service class.public boolean isManageableBy(ApplicationUser user, String serviceClassName)
ServiceTypes
isManageableBy
in interface ServiceTypes
user
- The user in play.serviceClassName
- The class of the service to check.Copyright © 2002-2021 Atlassian. All Rights Reserved.