public class DefaultPlatformObjectFacadeStrategy
extends java.lang.Object
| Constructor and Description |
|---|
DefaultPlatformObjectFacadeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(java.lang.Object object) |
protected boolean |
canPersistSingleElement(java.lang.Object value) |
<T> T |
clone(T objectToClone,
Context ctx) |
protected EnumerationValueModel |
convert(HybrisEnumValue value) |
<T> T |
create(java.lang.String typeId,
Context ctx) |
<T> <any> |
delete(java.util.Collection<T> objects,
Context ctx) |
<T> void |
delete(T object,
Context ctx) |
protected <T> void |
executeWithWorkflowTemplateActivation(java.util.function.Consumer<java.util.Collection<T>> consumer,
java.util.Collection<T> toConsume,
Context invocationCtx,
java.util.function.Function<ItemModel,WorkflowTemplateActivationAction> actionMapper) |
CloneStrategyRegistry |
getCloneStrategyRegistry() |
protected LabelService |
getLabelService() |
java.lang.String |
getObjectId(java.lang.Object object) |
ValidationHandler |
getValidationHandler() |
<T> boolean |
isModified(T object) |
<T> boolean |
isNew(T object) |
<T> T |
load(java.lang.String objectId,
Context ctx) |
protected void |
logItemDeletion(java.util.Collection<?> deletedObjects) |
<T> T |
reload(T object,
Context ctx) |
<T> <any> |
save(java.util.Collection<T> objects,
Context ctx)
Persist objects by given collection data.
|
<T> T |
save(T objectToSave,
Context ctx) |
void |
setCloneStrategyRegistry(CloneStrategyRegistry cloneStrategyRegistry) |
void |
setItemModificationHistoryService(ItemModificationHistoryService itemModificationHistoryService) |
void |
setLabelService(LabelService labelService) |
void |
setModelService(ModelService modelService) |
void |
setPlatformFacadeStrategyHandleCache(PlatformFacadeStrategyHandleCache platformFacadeStrategyHandleCache) |
void |
setTypeFacade(TypeFacade typeFacade) |
void |
setTypeService(TypeService typeService) |
void |
setValidationHandler(ValidationHandler validationHandler) |
void |
setWorkflowTemplateActivationService(WorkflowTemplateActivationService workflowTemplateActivationService) |
public <T> T load(java.lang.String objectId,
Context ctx)
throws ObjectNotFoundException
ObjectNotFoundExceptionpublic <T> void delete(T object,
Context ctx)
throws ObjectDeletionException
ObjectDeletionExceptionpublic <T> <any> delete(java.util.Collection<T> objects,
Context ctx)
protected void logItemDeletion(java.util.Collection<?> deletedObjects)
public <T> T create(java.lang.String typeId,
Context ctx)
throws ObjectCreationException
ObjectCreationExceptionpublic <T> T save(T objectToSave,
Context ctx)
throws ObjectSavingException
ObjectSavingExceptionpublic <T> <any> save(java.util.Collection<T> objects,
Context ctx)
objects - the data for updating objects in system. Each object is saved separately in a dedicated transaction.ctx - context specifying the loaded attributes of the returned object as well as application settingspublic <T> T clone(T objectToClone,
Context ctx)
throws ObjectCloningException
ObjectCloningExceptionprotected <T> void executeWithWorkflowTemplateActivation(java.util.function.Consumer<java.util.Collection<T>> consumer,
java.util.Collection<T> toConsume,
Context invocationCtx,
java.util.function.Function<ItemModel,WorkflowTemplateActivationAction> actionMapper)
protected boolean canPersistSingleElement(java.lang.Object value)
public <T> boolean isNew(T object)
public <T> boolean isModified(T object)
public <T> T reload(T object,
Context ctx)
throws ObjectNotFoundException
ObjectNotFoundExceptionprotected EnumerationValueModel convert(HybrisEnumValue value)
public boolean canHandle(java.lang.Object object)
public java.lang.String getObjectId(java.lang.Object object)
protected LabelService getLabelService()
public void setLabelService(LabelService labelService)
public void setModelService(ModelService modelService)
public void setTypeService(TypeService typeService)
public void setPlatformFacadeStrategyHandleCache(PlatformFacadeStrategyHandleCache platformFacadeStrategyHandleCache)
public void setItemModificationHistoryService(ItemModificationHistoryService itemModificationHistoryService)
public void setTypeFacade(TypeFacade typeFacade)
public void setWorkflowTemplateActivationService(WorkflowTemplateActivationService workflowTemplateActivationService)
public ValidationHandler getValidationHandler()
public void setValidationHandler(ValidationHandler validationHandler)
public CloneStrategyRegistry getCloneStrategyRegistry()
public void setCloneStrategyRegistry(CloneStrategyRegistry cloneStrategyRegistry)
Copyright © 2018 SAP SE. All Rights Reserved.