public class Media_2.RestInteraction
extends org.openmdx.base.dataprovider.layer.persistence.jdbc.RestInteraction
Constructor and Description |
---|
RestInteraction(Media_2 media,
org.openmdx.base.rest.cci.RestConnection connection)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
create(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.ObjectRecord request,
org.openmdx.base.rest.cci.ResultRecord response) |
protected boolean |
currentUserIsRoot(javax.resource.cci.Connection connection)
Return true if current user is ROOT_PRINCIPAL.
|
boolean |
delete(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.ObjectRecord request) |
boolean |
find(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.QueryRecord request,
org.openmdx.base.rest.cci.ResultRecord response) |
boolean |
get(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.QueryRecord request,
org.openmdx.base.rest.cci.ResultRecord response) |
protected javax.resource.cci.MappedRecord |
newOperationResult(java.lang.String recordType)
Create new operation result.
|
protected org.openmdx.base.rest.cci.ResultRecord |
newResult()
Create new result record.
|
org.openmdx.base.rest.cci.ObjectRecord |
retrieveObject(org.openmdx.base.naming.Path resourceIdentifier,
java.lang.String fetchGroupName)
Retrieve object with given identity.
|
protected void |
setContent(org.openmdx.base.rest.spi.Object_2Facade object)
Set content.
|
protected void |
storeContent(java.io.File contentFile,
org.w3c.cci2.BinaryLargeObject binaryContent)
Store content.
|
boolean |
update(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.ObjectRecord request,
org.openmdx.base.rest.cci.ResultRecord response) |
consume
cast, createReply, delete, execute, execute, invoke, isBulkLoad, move, newObject, newQuery, newResponseId, pass, toIndexedRecordList, toIndexedRecordSet, verify
public RestInteraction(Media_2 media, org.openmdx.base.rest.cci.RestConnection connection) throws javax.resource.ResourceException
connection
- javax.resource.ResourceException
protected org.openmdx.base.rest.cci.ResultRecord newResult() throws javax.resource.ResourceException
javax.resource.ResourceException
protected javax.resource.cci.MappedRecord newOperationResult(java.lang.String recordType) throws javax.resource.ResourceException
recordType
- javax.resource.ResourceException
public org.openmdx.base.rest.cci.ObjectRecord retrieveObject(org.openmdx.base.naming.Path resourceIdentifier, java.lang.String fetchGroupName) throws javax.resource.ResourceException
resourceIdentifier
- fetchGroupName
- javax.resource.ResourceException
protected void storeContent(java.io.File contentFile, org.w3c.cci2.BinaryLargeObject binaryContent) throws org.openmdx.base.exception.ServiceException
contentFile
- binaryContent
- org.openmdx.base.exception.ServiceException
protected void setContent(org.openmdx.base.rest.spi.Object_2Facade object) throws org.openmdx.base.exception.ServiceException
object
- org.openmdx.base.exception.ServiceException
protected boolean currentUserIsRoot(javax.resource.cci.Connection connection) throws javax.resource.ResourceException
header
- javax.resource.ResourceException
public boolean get(org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.QueryRecord request, org.openmdx.base.rest.cci.ResultRecord response) throws javax.resource.ResourceException
get
in class org.openmdx.base.dataprovider.layer.persistence.jdbc.RestInteraction
javax.resource.ResourceException
public boolean find(org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.QueryRecord request, org.openmdx.base.rest.cci.ResultRecord response) throws javax.resource.ResourceException
find
in class org.openmdx.base.dataprovider.layer.persistence.jdbc.RestInteraction
javax.resource.ResourceException
public boolean delete(org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.ObjectRecord request) throws javax.resource.ResourceException
delete
in class org.openmdx.base.dataprovider.layer.persistence.jdbc.RestInteraction
javax.resource.ResourceException
public boolean create(org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.ObjectRecord request, org.openmdx.base.rest.cci.ResultRecord response) throws javax.resource.ResourceException
create
in class org.openmdx.base.dataprovider.layer.persistence.jdbc.RestInteraction
javax.resource.ResourceException
public boolean update(org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.ObjectRecord request, org.openmdx.base.rest.cci.ResultRecord response) throws javax.resource.ResourceException
update
in class org.openmdx.base.dataprovider.layer.persistence.jdbc.RestInteraction
javax.resource.ResourceException
This software is published under the BSD license. Copyright © 2003-${build.year}, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.