com.atlassian.jira.service
Class DefaultServiceTypes

java.lang.Object
  extended by com.atlassian.jira.service.DefaultServiceTypes
All Implemented Interfaces:
ServiceTypes

public class DefaultServiceTypes
extends Object
implements ServiceTypes


Constructor Summary
DefaultServiceTypes(InBuiltServiceTypes inBuiltServiceTypes, PermissionManager permissionManager)
           
 
Method Summary
 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(com.atlassian.crowd.embedded.api.User user, String serviceClassName)
          Determines whether an user is able to perform administrative tasks on services of an specified class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServiceTypes

public DefaultServiceTypes(InBuiltServiceTypes inBuiltServiceTypes,
                           PermissionManager permissionManager)
Method Detail

isCustom

public boolean isCustom(String serviceClassName)
Description copied from interface: ServiceTypes
Determines whether the service class has not shipped with JIRA.

Specified by:
isCustom in interface ServiceTypes
Parameters:
serviceClassName - The name of the service class.
Returns:
true if the service class has not shipped with JIRA; otherwise, false.

isInBuilt

public boolean isInBuilt(String serviceClassName)
Description copied from interface: ServiceTypes
Determines whether the service class has shipped with JIRA.

Specified by:
isInBuilt in interface ServiceTypes
Parameters:
serviceClassName - The name of the service class.
Returns:
true if the service class has not shipped with JIRA; otherwise, false.

isManageableBy

public boolean isManageableBy(com.atlassian.crowd.embedded.api.User user,
                              String serviceClassName)
Description copied from interface: ServiceTypes
Determines whether an user is able to perform administrative tasks on services of an specified class.

Specified by:
isManageableBy in interface ServiceTypes
Parameters:
user - The user in play.
serviceClassName - The class of the service to check.
Returns:
true if the user is able to perform administrative tasks on services of this class; otherwise false.


Copyright © 2002-2012 Atlassian. All Rights Reserved.