public class CassModel extends CassObjectContainer implements Model
| Modifier and Type | Field and Description |
|---|---|
static String |
kAclTag |
static String |
kMetadataTag |
| Modifier and Type | Method and Description |
|---|---|
String |
asJson() |
boolean |
canUser(io.continual.iam.identity.Identity operator,
ModelOperation op) |
void |
checkUser(io.continual.iam.identity.Identity operator,
ModelOperation op) |
boolean |
exists(ModelRequestContext context,
io.continual.util.naming.Name itemName) |
boolean |
exists(ModelRequestContext context,
io.continual.util.naming.Path id) |
static CassModel |
fromJson(org.json.JSONObject object,
io.continual.services.model.service.impl.cassandra.CassModelLoaderContext mlc) |
io.continual.iam.access.AccessControlList |
getAccessControlList() |
org.json.JSONObject |
getData() |
io.continual.services.model.service.impl.cassandra.CassElementList |
getElementsBelow(ModelRequestContext context) |
String |
getId() |
List<ModelRelation> |
getInboundRelations(ModelRequestContext context,
io.continual.util.naming.Path forObject) |
List<ModelRelation> |
getInboundRelationsNamed(ModelRequestContext context,
io.continual.util.naming.Path forObject,
String named) |
static String |
getKeyspaceNameFor(String acctId,
String modelName) |
static String |
getObjectTableName(String acctId,
String modelName) |
List<ModelRelation> |
getOutboundRelations(ModelRequestContext context,
io.continual.util.naming.Path forObject) |
List<ModelRelation> |
getOutboundRelationsNamed(ModelRequestContext context,
io.continual.util.naming.Path forObject,
String named) |
List<ModelRelation> |
getRelations(ModelRequestContext context,
io.continual.util.naming.Path forObject) |
static String |
getRelationTableName(String acctId,
String modelName) |
String |
getResourceDescription() |
Set<String> |
getTypes() |
ModelObjectContainer |
load(ModelRequestContext context,
io.continual.util.naming.Path id) |
void |
relate(ModelRequestContext context,
Collection<ModelRelation> relns) |
void |
relate(ModelRequestContext context,
ModelRelation reln) |
boolean |
remove(ModelRequestContext context,
io.continual.util.naming.Path id) |
void |
store(ModelRequestContext context,
io.continual.util.naming.Path id,
ModelObject o) |
void |
store(ModelRequestContext context,
io.continual.util.naming.Path id,
String json) |
org.json.JSONObject |
toJson() |
String |
toString() |
boolean |
unrelate(ModelRequestContext context,
ModelRelation reln) |
void |
update(ModelRequestContext context,
io.continual.util.naming.Path id,
ModelObjectUpdater updater) |
getElementsBelow, load, remove, storeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String kMetadataTag
public static final String kAclTag
public static CassModel fromJson(org.json.JSONObject object, io.continual.services.model.service.impl.cassandra.CassModelLoaderContext mlc) throws ModelServiceIoException
ModelServiceIoExceptionpublic String getId()
public String getResourceDescription()
public boolean exists(ModelRequestContext context, io.continual.util.naming.Path id) throws ModelServiceIoException, ModelServiceRequestException
exists in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic boolean exists(ModelRequestContext context, io.continual.util.naming.Name itemName) throws ModelServiceIoException, ModelServiceRequestException
exists in interface ModelObjectContainerModelServiceIoExceptionModelServiceRequestExceptionpublic io.continual.services.model.service.impl.cassandra.CassElementList getElementsBelow(ModelRequestContext context) throws ModelServiceRequestException, ModelServiceIoException
getElementsBelow in interface ModelObjectContainerModelServiceRequestExceptionModelServiceIoExceptionpublic ModelObjectContainer load(ModelRequestContext context, io.continual.util.naming.Path id) throws ModelItemDoesNotExistException, ModelServiceRequestException, ModelServiceIoException
load in interface ModelModelItemDoesNotExistExceptionModelServiceRequestExceptionModelServiceIoExceptionpublic void store(ModelRequestContext context, io.continual.util.naming.Path id, ModelObject o) throws ModelServiceRequestException, ModelServiceIoException
store in interface ModelModelServiceRequestExceptionModelServiceIoExceptionpublic void store(ModelRequestContext context, io.continual.util.naming.Path id, String json) throws ModelServiceRequestException, ModelServiceIoException
store in interface ModelModelServiceRequestExceptionModelServiceIoExceptionpublic void update(ModelRequestContext context, io.continual.util.naming.Path id, ModelObjectUpdater updater) throws ModelServiceRequestException, ModelServiceIoException
update in interface ModelModelServiceRequestExceptionModelServiceIoExceptionpublic boolean remove(ModelRequestContext context, io.continual.util.naming.Path id) throws ModelServiceIoException, ModelServiceRequestException
remove in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic void relate(ModelRequestContext context, ModelRelation reln) throws ModelServiceIoException, ModelServiceRequestException
relate in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic void relate(ModelRequestContext context, Collection<ModelRelation> relns) throws ModelServiceIoException, ModelServiceRequestException
relate in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic boolean unrelate(ModelRequestContext context, ModelRelation reln) throws ModelServiceIoException, ModelServiceRequestException
unrelate in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic List<ModelRelation> getRelations(ModelRequestContext context, io.continual.util.naming.Path forObject) throws ModelServiceIoException, ModelServiceRequestException
getRelations in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic List<ModelRelation> getInboundRelations(ModelRequestContext context, io.continual.util.naming.Path forObject) throws ModelServiceIoException, ModelServiceRequestException
getInboundRelations in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic List<ModelRelation> getOutboundRelations(ModelRequestContext context, io.continual.util.naming.Path forObject) throws ModelServiceIoException, ModelServiceRequestException
getOutboundRelations in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic List<ModelRelation> getInboundRelationsNamed(ModelRequestContext context, io.continual.util.naming.Path forObject, String named) throws ModelServiceIoException, ModelServiceRequestException
getInboundRelationsNamed in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic List<ModelRelation> getOutboundRelationsNamed(ModelRequestContext context, io.continual.util.naming.Path forObject, String named) throws ModelServiceIoException, ModelServiceRequestException
getOutboundRelationsNamed in interface ModelModelServiceIoExceptionModelServiceRequestExceptionpublic String asJson()
asJson in interface ModelObjectpublic Set<String> getTypes()
getTypes in interface ModelObjectpublic org.json.JSONObject getData()
getData in interface ModelObjectpublic boolean canUser(io.continual.iam.identity.Identity operator,
ModelOperation op)
public void checkUser(io.continual.iam.identity.Identity operator,
ModelOperation op)
throws ModelServiceAccessException,
ModelServiceIoException
public io.continual.iam.access.AccessControlList getAccessControlList()
public org.json.JSONObject toJson()
toJson in interface io.continual.util.data.json.JsonSerializedCopyright © 2021 continual.io. All rights reserved.