com.atlassian.jira.scheme
Class AbstractSchemeTypeManager<T>

java.lang.Object
  extended by com.atlassian.jira.scheme.AbstractSchemeTypeManager<T>
All Implemented Interfaces:
SchemeTypeManager<T>
Direct Known Subclasses:
AbstractSecurityTypeManager, NotificationTypeManager

public abstract class AbstractSchemeTypeManager<T>
extends Object
implements SchemeTypeManager<T>


Constructor Summary
AbstractSchemeTypeManager()
           
 
Method Summary
abstract  String getResourceName()
           
 T getSchemeType(String id)
          Get a particular permission type based on the id
abstract  Map<String,T> getSchemeTypes()
           
 Map<String,T> getTypes()
          Get the different types for a scheme.
abstract  void setSchemeTypes(Map<String,T> schemeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSchemeTypeManager

public AbstractSchemeTypeManager()
Method Detail

getResourceName

public abstract String getResourceName()

getSchemeType

public T getSchemeType(String id)
Get a particular permission type based on the id

Specified by:
getSchemeType in interface SchemeTypeManager<T>
Parameters:
id - The Id of the permission type
Returns:
The permission type object

getSchemeTypes

public abstract Map<String,T> getSchemeTypes()
Specified by:
getSchemeTypes in interface SchemeTypeManager<T>

setSchemeTypes

public abstract void setSchemeTypes(Map<String,T> schemeType)
Specified by:
setSchemeTypes in interface SchemeTypeManager<T>

getTypes

public Map<String,T> getTypes()
Get the different types for a scheme.

Specified by:
getTypes in interface SchemeTypeManager<T>
Returns:
Map of scheme types, eg. for permission types: {"reporter" -> com.atlassian.jira.security.type.CurrentReporter, "lead" -> com.atlassian.jira.security.type.ProjectLead, ... }


Copyright © 2002-2015 Atlassian. All Rights Reserved.