com.atlassian.jira.issue.context.persistence
Class FieldConfigContextPersisterImpl

java.lang.Object
  extended by com.atlassian.jira.issue.context.persistence.FieldConfigContextPersisterImpl
All Implemented Interfaces:
com.atlassian.bandana.BandanaPersister, FieldConfigContextPersister

public class FieldConfigContextPersisterImpl
extends java.lang.Object
implements FieldConfigContextPersister


Field Summary
static java.lang.String ENTITY_CONFIG
           
static java.lang.String ENTITY_KEY
           
static java.lang.String ENTITY_PROJECT
           
static java.lang.String ENTITY_PROJECT_CATEGORY
           
static java.lang.String ENTITY_TABLE_NAME
           
 
Constructor Summary
FieldConfigContextPersisterImpl(OfBizDelegator delegator, ProjectManager projectManager, JiraContextTreeManager treeManager)
           
 
Method Summary
 void flushCaches()
           
 java.util.List<JiraContextNode> getAllContextsForConfigScheme(FieldConfigScheme fieldConfigScheme)
           
 java.util.List<JiraContextNode> getAllContextsForCustomField(java.lang.String key)
           
 void remove(com.atlassian.bandana.BandanaContext context)
           
 void remove(com.atlassian.bandana.BandanaContext context, java.lang.String key)
           
 void removeContextsForConfigScheme(java.lang.Long fieldConfigSchemeId)
           
 void removeContextsForProject(org.ofbiz.core.entity.GenericValue project)
           
 void removeContextsForProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory)
           
 java.lang.Object retrieve(com.atlassian.bandana.BandanaContext context, java.lang.String key)
          Returns a Long object representing the id of the FieldConfigScheme
 void store(com.atlassian.bandana.BandanaContext context, java.lang.String key, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_TABLE_NAME

public static final java.lang.String ENTITY_TABLE_NAME
See Also:
Constant Field Values

ENTITY_PROJECT_CATEGORY

public static final java.lang.String ENTITY_PROJECT_CATEGORY
See Also:
Constant Field Values

ENTITY_PROJECT

public static final java.lang.String ENTITY_PROJECT
See Also:
Constant Field Values

ENTITY_KEY

public static final java.lang.String ENTITY_KEY
See Also:
Constant Field Values

ENTITY_CONFIG

public static final java.lang.String ENTITY_CONFIG
See Also:
Constant Field Values
Constructor Detail

FieldConfigContextPersisterImpl

public FieldConfigContextPersisterImpl(OfBizDelegator delegator,
                                       ProjectManager projectManager,
                                       JiraContextTreeManager treeManager)
Method Detail

getAllContextsForCustomField

public java.util.List<JiraContextNode> getAllContextsForCustomField(java.lang.String key)
Specified by:
getAllContextsForCustomField in interface FieldConfigContextPersister

getAllContextsForConfigScheme

public java.util.List<JiraContextNode> getAllContextsForConfigScheme(FieldConfigScheme fieldConfigScheme)
Specified by:
getAllContextsForConfigScheme in interface FieldConfigContextPersister

removeContextsForConfigScheme

public void removeContextsForConfigScheme(java.lang.Long fieldConfigSchemeId)
Specified by:
removeContextsForConfigScheme in interface FieldConfigContextPersister

removeContextsForProject

public void removeContextsForProject(org.ofbiz.core.entity.GenericValue project)
Specified by:
removeContextsForProject in interface FieldConfigContextPersister

removeContextsForProjectCategory

public void removeContextsForProjectCategory(org.ofbiz.core.entity.GenericValue projectCategory)
Specified by:
removeContextsForProjectCategory in interface FieldConfigContextPersister

retrieve

public java.lang.Object retrieve(com.atlassian.bandana.BandanaContext context,
                                 java.lang.String key)
Returns a Long object representing the id of the FieldConfigScheme

Specified by:
retrieve in interface com.atlassian.bandana.BandanaPersister
Parameters:
context - the bandana context
key - the database key

store

public void store(com.atlassian.bandana.BandanaContext context,
                  java.lang.String key,
                  java.lang.Object value)
Specified by:
store in interface com.atlassian.bandana.BandanaPersister

flushCaches

public void flushCaches()
Specified by:
flushCaches in interface com.atlassian.bandana.BandanaPersister

remove

public void remove(com.atlassian.bandana.BandanaContext context)
Specified by:
remove in interface com.atlassian.bandana.BandanaPersister

remove

public void remove(com.atlassian.bandana.BandanaContext context,
                   java.lang.String key)
Specified by:
remove in interface com.atlassian.bandana.BandanaPersister


Copyright © 2002-2010 Atlassian. All Rights Reserved.