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 Object
implements FieldConfigContextPersister


Field Summary
static String ENTITY_CONFIG
           
static String ENTITY_KEY
           
static String ENTITY_PROJECT
           
static String ENTITY_PROJECT_CATEGORY
           
static String ENTITY_TABLE_NAME
           
 
Constructor Summary
FieldConfigContextPersisterImpl(OfBizDelegator delegator, ProjectManager projectManager, JiraContextTreeManager treeManager)
           
 
Method Summary
 void flushCaches()
           
 List<JiraContextNode> getAllContextsForConfigScheme(FieldConfigScheme fieldConfigScheme)
           
 List<JiraContextNode> getAllContextsForCustomField(String key)
           
 void remove(com.atlassian.bandana.BandanaContext context)
           
 void remove(com.atlassian.bandana.BandanaContext context, String key)
           
 void removeContextsForConfigScheme(FieldConfigScheme fieldConfigScheme)
           
 void removeContextsForConfigScheme(Long fieldConfigSchemeId)
          Remove contexts for a scheme
 void removeContextsForProject(org.ofbiz.core.entity.GenericValue project)
           
 void removeContextsForProject(Project project)
           
 void removeContextsForProjectCategory(ProjectCategory projectCategory)
           
 Object retrieve(com.atlassian.bandana.BandanaContext context, String key)
          Returns a Long object representing the id of the FieldConfigScheme
 void store(com.atlassian.bandana.BandanaContext context, String key, Object value)
           
 void store(Collection<? extends com.atlassian.bandana.BandanaContext> contexts, String key, Object value)
          Bulk store context/key/value triplets.
 
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 String ENTITY_TABLE_NAME
See Also:
Constant Field Values

ENTITY_PROJECT_CATEGORY

public static final String ENTITY_PROJECT_CATEGORY
See Also:
Constant Field Values

ENTITY_PROJECT

public static final String ENTITY_PROJECT
See Also:
Constant Field Values

ENTITY_KEY

public static final String ENTITY_KEY
See Also:
Constant Field Values

ENTITY_CONFIG

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

FieldConfigContextPersisterImpl

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

getAllContextsForCustomField

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

getAllContextsForConfigScheme

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

removeContextsForConfigScheme

public void removeContextsForConfigScheme(FieldConfigScheme fieldConfigScheme)
Specified by:
removeContextsForConfigScheme in interface FieldConfigContextPersister

removeContextsForConfigScheme

public void removeContextsForConfigScheme(Long fieldConfigSchemeId)
Description copied from interface: FieldConfigContextPersister
Remove contexts for a scheme

Specified by:
removeContextsForConfigScheme in interface FieldConfigContextPersister
Parameters:
fieldConfigSchemeId - ID of scheme to remove.

removeContextsForProject

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

removeContextsForProject

public void removeContextsForProject(Project project)
Specified by:
removeContextsForProject in interface FieldConfigContextPersister

removeContextsForProjectCategory

public void removeContextsForProjectCategory(ProjectCategory projectCategory)
Specified by:
removeContextsForProjectCategory in interface FieldConfigContextPersister

retrieve

public Object retrieve(com.atlassian.bandana.BandanaContext context,
                       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,
                  String key,
                  Object value)
Specified by:
store in interface com.atlassian.bandana.BandanaPersister

store

public void store(Collection<? extends com.atlassian.bandana.BandanaContext> contexts,
                  String key,
                  Object value)
Description copied from interface: FieldConfigContextPersister
Bulk store context/key/value triplets.

Specified by:
store in interface FieldConfigContextPersister

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,
                   String key)
Specified by:
remove in interface com.atlassian.bandana.BandanaPersister


Copyright © 2002-2014 Atlassian. All Rights Reserved.