com.atlassian.jira.config.managedconfiguration
Class DefaultManagedConfigurationItemStore

java.lang.Object
  extended by com.atlassian.jira.config.managedconfiguration.DefaultManagedConfigurationItemStore
All Implemented Interfaces:
ManagedConfigurationItemStore

public class DefaultManagedConfigurationItemStore
extends Object
implements ManagedConfigurationItemStore

The default implementation of ManagedConfigurationItemStore. Could perhaps use a caching layer.

Since:
v5.2

Field Summary
static String ENTITY_NAME
           
 
Constructor Summary
DefaultManagedConfigurationItemStore(OfBizDelegator ofBizDelegator)
           
 
Method Summary
 boolean deleteManagedConfigurationItem(ManagedConfigurationItem item)
          Remove the specified ManagedConfigurationItem.
 ManagedConfigurationItem getManagedConfigurationItem(String itemId, ManagedConfigurationItemType type)
          Retrieve the ManagedConfigurationItem description of the specified item ID and type.
 Collection<ManagedConfigurationItem> getManagedConfigurationItems(ManagedConfigurationItemType type)
          Retrieve all the ManagedConfigurationItems of the specified type.
 ManagedConfigurationItem updateManagedConfigurationItem(ManagedConfigurationItem item)
          Persist the specified ManagedConfigurationItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_NAME

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

DefaultManagedConfigurationItemStore

public DefaultManagedConfigurationItemStore(OfBizDelegator ofBizDelegator)
Method Detail

updateManagedConfigurationItem

@Nonnull
public ManagedConfigurationItem updateManagedConfigurationItem(@Nonnull
                                                                       ManagedConfigurationItem item)
Description copied from interface: ManagedConfigurationItemStore
Persist the specified ManagedConfigurationItem.

Specified by:
updateManagedConfigurationItem in interface ManagedConfigurationItemStore
Parameters:
item - the item
Returns:
the persisted item

deleteManagedConfigurationItem

public boolean deleteManagedConfigurationItem(@Nonnull
                                              ManagedConfigurationItem item)
Description copied from interface: ManagedConfigurationItemStore
Remove the specified ManagedConfigurationItem.

Specified by:
deleteManagedConfigurationItem in interface ManagedConfigurationItemStore
Parameters:
item - the item
Returns:
true if the item was removed; false otherwise

getManagedConfigurationItem

@Nullable
public ManagedConfigurationItem getManagedConfigurationItem(@Nonnull
                                                                     String itemId,
                                                                     @Nonnull
                                                                     ManagedConfigurationItemType type)
Description copied from interface: ManagedConfigurationItemStore
Retrieve the ManagedConfigurationItem description of the specified item ID and type.

Specified by:
getManagedConfigurationItem in interface ManagedConfigurationItemStore
Parameters:
itemId - the item ID; note that each type describes its IDs individually
type - the type
Returns:
the item if found; null otherwise

getManagedConfigurationItems

@Nonnull
public Collection<ManagedConfigurationItem> getManagedConfigurationItems(@Nonnull
                                                                                 ManagedConfigurationItemType type)
Description copied from interface: ManagedConfigurationItemStore
Retrieve all the ManagedConfigurationItems of the specified type. This includes items which may have been owned by a plugin which is no longer installed.

Specified by:
getManagedConfigurationItems in interface ManagedConfigurationItemStore
Parameters:
type - the type
Returns:
the items


Copyright © 2002-2014 Atlassian. All Rights Reserved.