public interface ObjectFacade extends ObjectCRUDHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
CTX_DISABLE_CRUD_COCKPIT_EVENT_NOTIFICATION
Deprecated.
since 6.7 use
CTX_PARAM_SUPPRESS_EVENT. Since 6.7 it is not used and will be removed. |
static String |
CTX_PARAM_SUPPRESS_EVENT |
OBJECT_CREATED_EVENT, OBJECTS_DELETED_EVENT, OBJECTS_UPDATED_EVENT| Modifier and Type | Method and Description |
|---|---|
default <T> T |
clone(T objectToClone)
Clone an object by given object data.
|
<T> T |
create(String typeId)
Creates a new object in the system using given object data.
|
default <T> ObjectFacadeOperationResult<T> |
delete(Collection<T> objects)
Deletes many objects from the system.
|
<T> void |
delete(T object)
Deletes an object from system.
|
<T> T |
load(String id)
Gets an object instance by it's id.
|
default <T> ObjectFacadeOperationResult<T> |
reload(Collection<T> objects)
Gets a fresh instance of the given collection of objects.
|
<T> T |
reload(T object)
Gets a fresh instance of the given object.
|
default <T> ObjectFacadeOperationResult<T> |
save(Collection<T> objects)
Persist objects by given collection data.
|
<T> T |
save(T objectToSave)
Persist an object by given object data.
|
static final String CTX_PARAM_SUPPRESS_EVENT
@Deprecated static final String CTX_DISABLE_CRUD_COCKPIT_EVENT_NOTIFICATION
CTX_PARAM_SUPPRESS_EVENT. Since 6.7 it is not used and will be removed.<T> T load(String id) throws ObjectNotFoundException
id - The unique qualifier of the object.ObjectNotFoundException - if no object with the given id could be found.<T> void delete(T object)
throws ObjectDeletionException
object - The object which should be deleted.ObjectDeletionException - if the given object could not be deleted.default <T> ObjectFacadeOperationResult<T> delete(Collection<T> objects)
objects - Objects which should be deleted.<T> T create(String typeId) throws ObjectCreationException
typeId - The type qualifier specifying the type of which the new object is an instance.ObjectCreationException - if the object couldn't be created, like an object with the specified id already exists.<T> T save(T objectToSave)
throws ObjectSavingException
objectToSave - An object, on which the save action should be applied (usually persisting in a DBS)ObjectSavingException - if the object couldn't be persisted, like a unique attribute was updated to be non-unique.default <T> ObjectFacadeOperationResult<T> save(Collection<T> objects)
objects - the data for updating objects in system.<T> T reload(T object)
throws ObjectNotFoundException
object - The object that should be refreshed.ObjectNotFoundException - If the current object couldn't be found (could be deleted in the mean time).default <T> ObjectFacadeOperationResult<T> reload(Collection<T> objects)
objects - The collection of object that should be refreshed.default <T> T clone(T objectToClone)
throws ObjectCloningException
objectToClone - - source object to be cloned.ObjectCloningException - if cannot perform the clone.Copyright © 2018. All rights reserved.