public class DefaultManagedConfigurationItemStore extends Object implements ManagedConfigurationItemStore
ManagedConfigurationItemStore
. Could perhaps use a caching layer.Modifier and Type | Field and Description |
---|---|
static String |
ENTITY_NAME |
Constructor and Description |
---|
DefaultManagedConfigurationItemStore(OfBizDelegator ofBizDelegator) |
Modifier and Type | Method and Description |
---|---|
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
ManagedConfigurationItem s of the specified type. |
ManagedConfigurationItem |
updateManagedConfigurationItem(ManagedConfigurationItem item)
Persist the specified
ManagedConfigurationItem . |
public static final String ENTITY_NAME
public DefaultManagedConfigurationItemStore(OfBizDelegator ofBizDelegator)
@Nonnull public ManagedConfigurationItem updateManagedConfigurationItem(@Nonnull ManagedConfigurationItem item)
ManagedConfigurationItemStore
ManagedConfigurationItem
.updateManagedConfigurationItem
in interface ManagedConfigurationItemStore
item
- the itempublic boolean deleteManagedConfigurationItem(@Nonnull ManagedConfigurationItem item)
ManagedConfigurationItemStore
ManagedConfigurationItem
.deleteManagedConfigurationItem
in interface ManagedConfigurationItemStore
item
- the item@Nullable public ManagedConfigurationItem getManagedConfigurationItem(@Nonnull String itemId, @Nonnull ManagedConfigurationItemType type)
ManagedConfigurationItemStore
ManagedConfigurationItem
description of the specified item ID and type.getManagedConfigurationItem
in interface ManagedConfigurationItemStore
itemId
- the item ID; note that each type describes its IDs individuallytype
- the type@Nonnull public Collection<ManagedConfigurationItem> getManagedConfigurationItems(@Nonnull ManagedConfigurationItemType type)
ManagedConfigurationItemStore
ManagedConfigurationItem
s of the specified type. This includes items which may have
been owned by a plugin which is no longer installed.getManagedConfigurationItems
in interface ManagedConfigurationItemStore
type
- the typeCopyright © 2002-2016 Atlassian. All Rights Reserved.