@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,
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
StructureException
void deleteItem(@NotNull ItemIdentity itemId) throws StructureException
StructureException
@NotNull ItemIdentity getOwnedItem(@NotNull ItemIdentity itemId, long structureId, boolean copyIfSame) throws StructureException
StructureException
boolean isVisible(@NotNull GenericItem item, @Nullable ApplicationUser user)
Copyright © 2023 ALM Works. All Rights Reserved.