public interface Createable extends EntityProvider, Sampleable
EntityProvider interface| Modifier and Type | Method and Description |
|---|---|
String |
createEntity(EntityReference ref,
Object entity,
Map<String,Object> params)
Create a new entity and return the unique local id of the entity,
the object should contain the data needed to create the entity or this will fail
|
getSampleEntitygetEntityPrefixString createEntity(EntityReference ref, Object entity, Map<String,Object> params)
ref - the parsed reference object which uniquely represents this entityentity - an entity objectparams - (optional) incoming set of parameters which may be used to send data specific to this request, may be nullIllegalArgumentException - if the entity could not be created because of missing or invalid dataSecurityException - if permissions prevented this entity from being createdIllegalStateException - for all other failuresCopyright © 2007–2020 Sakai Project. All rights reserved.