com.atlassian.jira.scheme
Class AbstractSchemeTypeManager

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

public abstract class AbstractSchemeTypeManager
extends java.lang.Object
implements SchemeTypeManager


Constructor Summary
AbstractSchemeTypeManager()
           
 
Method Summary
abstract  java.lang.String getResourceName()
           
 SchemeType getSchemeType(java.lang.String id)
          Get a particular permission type based on the id
abstract  java.util.Map getSchemeTypes()
           
abstract  java.lang.Class getTypeClass()
           
 java.util.Map getTypes()
          Get the different types for a scheme.
abstract  void setSchemeTypes(java.util.Map 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 java.lang.String getResourceName()
Specified by:
getResourceName in interface SchemeTypeManager

getTypeClass

public abstract java.lang.Class getTypeClass()
Specified by:
getTypeClass in interface SchemeTypeManager

getSchemeType

public SchemeType getSchemeType(java.lang.String id)
Get a particular permission type based on the id

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

getSchemeTypes

public abstract java.util.Map getSchemeTypes()
Specified by:
getSchemeTypes in interface SchemeTypeManager

setSchemeTypes

public abstract void setSchemeTypes(java.util.Map schemeType)
Specified by:
setSchemeTypes in interface SchemeTypeManager

getTypes

public java.util.Map getTypes()
Get the different types for a scheme.

Specified by:
getTypes in interface SchemeTypeManager
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-2010 Atlassian. All Rights Reserved.