@PublicApi
public interface GenericItemManager
GenericItemManager is responsible for performing operations with generic items.
Unlike GenericItemService it doesn't operate with validation results, performs minimum checks
and throws StructureException if anything goes wrong.
GenericItemService,
GenericItem| Modifier and Type | Method and Description |
|---|---|
ItemIdentity |
createItem(String itemType,
GenericItem genericItem) |
void |
deleteItem(ItemIdentity itemId) |
GenericItem |
getItem(ItemIdentity itemId) |
ItemIdentity |
getOwnedItem(ItemIdentity itemId,
long structureId,
boolean copyIfSame) |
boolean |
isVisible(GenericItem item,
com.atlassian.jira.user.ApplicationUser user) |
void |
updateItem(ItemIdentity itemId,
GenericItem genericItem) |
@NotNull ItemIdentity createItem(@NotNull String itemType, @NotNull GenericItem genericItem) throws StructureException
StructureException@Nullable GenericItem getItem(@NotNull ItemIdentity itemId)
void updateItem(@NotNull
ItemIdentity itemId,
@NotNull
GenericItem genericItem)
throws StructureException
StructureExceptionvoid deleteItem(@NotNull
ItemIdentity itemId)
throws StructureException
StructureException@NotNull ItemIdentity getOwnedItem(@NotNull ItemIdentity itemId, long structureId, boolean copyIfSame) throws StructureException
StructureExceptionboolean isVisible(@NotNull
GenericItem item,
@Nullable
com.atlassian.jira.user.ApplicationUser user)
Copyright © 2019 ALM Works. All Rights Reserved.