public class AccessControl_2.RestInteraction
extends org.openmdx.base.rest.spi.AbstractRestInteraction
Constructor and Description |
---|
RestInteraction(org.openmdx.base.rest.cci.RestConnection connection) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
consume(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.QueryRecord request,
org.openmdx.base.rest.cci.ConsumerRecord response) |
boolean |
create(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.ObjectRecord request,
org.openmdx.base.rest.cci.ResultRecord response) |
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 java.util.Set<java.lang.String> |
getOwningGroupsForNewObject(AccessControl_2.CachedPrincipal requestingPrincipal,
org.openmdx.base.rest.spi.Object_2Facade newObjectFacade,
org.openmdx.base.rest.spi.Object_2Facade parentFacade,
javax.jdo.PersistenceManager pm)
Get owning groups for new object.
|
protected java.lang.String |
getOwningUserForNewObject(org.openmdx.base.naming.Path requestingUser,
org.openmdx.base.rest.spi.Object_2Facade newObjectFacade,
org.openmdx.base.rest.spi.Object_2Facade parentFacade,
AccessControl_2.DefaultRealm realm)
Get owning user for new object.
|
protected boolean |
invoke(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.MessageRecord request,
org.openmdx.base.rest.cci.MessageRecord response) |
protected void |
restrictQuery(javax.jdo.PersistenceManager pm,
org.openmdx.base.dataprovider.cci.DataproviderRequestProcessor p,
AccessControl_2.DefaultRealm realm,
org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.QueryRecord request)
Restrict query for access control.
|
protected boolean |
update(org.openmdx.base.resource.spi.RestInteractionSpec ispec,
org.openmdx.base.rest.cci.ObjectRecord request,
org.openmdx.base.rest.cci.ResultRecord response) |
cast, createReply, delete, execute, execute, isBulkLoad, move, newObject, newQuery, newResponseId, pass, toIndexedRecordList, toIndexedRecordSet, verify
public RestInteraction(org.openmdx.base.rest.cci.RestConnection connection) throws javax.resource.ResourceException
javax.resource.ResourceException
protected java.lang.String getOwningUserForNewObject(org.openmdx.base.naming.Path requestingUser, org.openmdx.base.rest.spi.Object_2Facade newObjectFacade, org.openmdx.base.rest.spi.Object_2Facade parentFacade, AccessControl_2.DefaultRealm realm) throws javax.resource.ResourceException
requestingUser
- newObjectFacade
- parentFacade
- realm
- org.openmdx.base.exception.ServiceException
javax.resource.ResourceException
protected java.util.Set<java.lang.String> getOwningGroupsForNewObject(AccessControl_2.CachedPrincipal requestingPrincipal, org.openmdx.base.rest.spi.Object_2Facade newObjectFacade, org.openmdx.base.rest.spi.Object_2Facade parentFacade, javax.jdo.PersistenceManager pm) throws javax.resource.ResourceException
requestingPrincipal
- newObjectFacade
- parentFacade
- org.openmdx.base.exception.ServiceException
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.rest.spi.AbstractRestInteraction
javax.resource.ResourceException
protected void restrictQuery(javax.jdo.PersistenceManager pm, org.openmdx.base.dataprovider.cci.DataproviderRequestProcessor p, AccessControl_2.DefaultRealm realm, org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.QueryRecord request) throws javax.resource.ResourceException, org.openmdx.base.exception.ServiceException
pm
- p
- realm
- ispec
- request
- response
- javax.resource.ResourceException
org.openmdx.base.exception.ServiceException
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.rest.spi.AbstractRestInteraction
javax.resource.ResourceException
protected boolean consume(org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.QueryRecord request, org.openmdx.base.rest.cci.ConsumerRecord response) throws javax.resource.ResourceException
consume
in class org.openmdx.base.rest.spi.AbstractRestInteraction
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.rest.spi.AbstractRestInteraction
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.rest.spi.AbstractRestInteraction
javax.resource.ResourceException
protected 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.rest.spi.AbstractRestInteraction
javax.resource.ResourceException
protected boolean invoke(org.openmdx.base.resource.spi.RestInteractionSpec ispec, org.openmdx.base.rest.cci.MessageRecord request, org.openmdx.base.rest.cci.MessageRecord response) throws javax.resource.ResourceException
invoke
in class org.openmdx.base.rest.spi.AbstractRestInteraction
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.