ACLService

ACLService is used to retrieve the access control list (ACL) permissions associated with a DatacloudAPI Entity (like Product/Integration, Provisioning/RuntimeConfiguration, etc) available in Pervasive DataCloud. The methods exposed by this SOAP based WebService API allows ACL operations on DataCloud Entities. This document lists all these methods with their right usage. Also sample SOAP Request and Response along with Java sample code snippets for each method are provided.

 

setGroupPermission

Set access permission of group to user.

Parameters

Name Type Description
id
Long
id of the group
user
Long
id of the user
permission
String
permission to set
sessionId
String
the sessionId of the current user session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:setGroupPermission>
<!--Optional:-->
<id>193</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>03a5790a-715c-4c60-9272-803b2b7feb62</sessionId>
</v1:setGroupPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:setGroupPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

 
Java Code Sample

Method Signature:              public void setGroupPermission (Long id, Long user, String permission,                                                                                                                                     String sessionId)                                       throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:              

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Group {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long groupId = 193;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.setGroupPermission(groupId, userId, "READ", "03a5790a-715c-4c60-9272-803b2b7feb62");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

 

getGroupACL

List the access permissions attached to group.

Parameters

Name Type Description
id
Long
the group id
sessionId
String
sessionId of the current session

Returns

Name Type Description
ACLPermisssions
ACLProxy
list of ACL entries attached to group

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:getGroupACL>
<!--Optional:-->
<id>193</id>
<!--Optional:-->
<sessionId>03a5790a-715c-4c60-9272-803b2b7feb62</sessionId>
</v1:getGroupACL>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getGroupACLResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>
<ns2:entry user="171">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
</return>
</ns2:getGroupACLResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:            public ACLProxy getGroupACL (Long id, String sessionId)                                                                                      throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException,                                                                                 

Usage:                

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Group {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long groupId = 193;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
String groupValue[][] = stub.getGroupACL(groupId, "03a5790a-715c-4c60-9272-803b2b7feb62");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

hasAccessToGroup

Group has specific access permission or not

Parameters

Name Type Description
verb
Action
access permission
id
Long
id of the group
sessionId
String
sessionId of the current session

Returns

Name Type Description
Permission State
Boolean
Return true if the group has specific permission

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:hasAccessToGroup>
<!--Optional:-->
<verb>READ</verb>
<!--Optional:-->
<userId>193</userId>
<!--Optional:-->
<sessionId>03a5790a-715c-4c60-9272-803b2b7feb62</sessionId>
</v1:hasAccessToGroup>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:hasAccessToGroupResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>true</return>
</ns2:hasAccessToGroupResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:            public boolean hasAccessToGroup                                                           (com.pervasive.datasolutions.datacloud.acl.Action verb, Long id,                                                                                                                                       String sessionId)
                                            throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Group {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long groupId = 193;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
Boolean groupAccess = stub.hasAccessToGroup(Action.fromString("READ"), groupId,
"03a5790a-715c-4c60-9272-803b2b7feb62");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

clearGroupPermission

Clear specific group access permission of user.

Parameters

Name Type Description
id
Long
id of the group
user
Long
id of the user
Permission
String
permission to clear
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:clearGroupPermission>
<!--Optional:-->
<id>193</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>03a5790a-715c-4c60-9272-803b2b7feb62</sessionId>
</v1:clearGroupPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:clearGroupPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:   public void clearGroupPermissionLong id,Long user,String permission,String sessionId)                                                                                       
                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Group {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long groupId = 193;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.clearGroupPermission(groupId, userId, "READ",
"03a5790a-715c-4c60-9272-803b2b7feb62");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

setProvisioningPermission

Set access permission of provisioning to user.

Parameters

Name   Description
id
Long
id of the provisioning
user
Long
id of the user
permission
String
permission to set
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:setProvisioningPermission>
<!--Optional:-->
<id>12086</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>060cc0a2-ebd6-4e60-818e-1bec33053a4a</sessionId>
</v1:setProvisioningPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:setProvisioningPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:              public void setProvisioningPermission(Long id, Long user, String permission,                                                                                                                                                 String sessionId)
                                                 throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:      

import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;

public class Provisioning {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long provisioningId = 12086;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.setProvisioningPermission(provisioningId, userId, "READ",
"060cc0a2-ebd6-4e60-818e-1bec33053a4a");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

getProvisioningACL

List the access permissions attached to Provisioning.

Parameters

Name Type Description
id
Long
id of the provisioning
sessionId
String
sessionId of the current session

Returns

Name Type Description
ACLPermisssions
ACLProxy
list of ACL entries attached to provisioning

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:getProvisioningACL>
<!--Optional:-->
<id>12086</id>
<!--Optional:-->
<sessionId>060cc0a2-ebd6-4e60-818e-1bec33053a4a</sessionId>
</v1:getProvisioningACL>
</soapenv:Body>
</soapenv:Envelope>  

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getProvisioningACLResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>
<ns2:entry user="171">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
<ns2:entry user="995">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
<ns2:entry user="335">
<ns2:permission>READ</ns2:permission>
<ns2:permission>WRITE</ns2:permission>
<ns2:permission>EXECUTE</ns2:permission>
<ns2:permission>GRANT</ns2:permission>
</ns2:entry>
</return>
</ns2:getProvisioningACLResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:         public ACLProxy getProvisioningACL(Long id, String sessionId)
                                                 throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException,                                                  

Usage: 

import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;

public class Provisioning {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long provisioningId = 12086;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
String provisioningValue[][] = stub.getProvisioningACL(
provisioningId, "060cc0a2-ebd6-4e60-818e-1bec33053a4a");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

hasAccessToProvisioning

Provisioning has specific access permission or not

Parameters

Name Type Description
verb
Action
access permission
id
Long
id of the provisioning
sessionId
String
sessionId of the current session

Returns

Name Type Description
Permission State
Boolean
Return true if the provisioning has specific permission

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:hasAccessToProvisioning>
<!--Optional:-->
<verb>READ</verb>
<!--Optional:-->
<provisioningId>12086</provisioningId>
<!--Optional:-->
<sessionId>060cc0a2-ebd6-4e60-818e-1bec33053a4a</sessionId>
</v1:hasAccessToProvisioning>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:hasAccessToProvisioningResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>true</return>
</ns2:hasAccessToProvisioningResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:        public boolean hasAccessToProvisioning (com.pervasive.datasolutions.
                                                                                                                  datacloud.acl.Action verb,
                                                                                                                  Long id, String sessionId)
                                             throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException
                                            

Usage:      

import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;

public class Provisioning {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long provisioningId = 12086;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
Boolean provisioningAccess = stub.hasAccessToProvisioning(
Action.fromString("READ"), provisioningId, "060cc0a2-ebd6-4e60-818e-1bec33053a4a");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

clearProvisioningPermission

Clear specific provisioning access permission of user

Parameters

Name Type Description
id
Long
id of the Provisioning
user
Long
id of the user
permission
String
permission to clear
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:clearProvisioningPermission>
<!--Optional:-->
<id>12086</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>060cc0a2-ebd6-4e60-818e-1bec33053a4a</sessionId>
</v1:clearProvisioningPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:clearProvisioningPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:               public void clearProvisioningPermission Long id, Long user,
                                                                                            String permission, String sessionId)
                                        throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:                  

import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;

public class Provisioning {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long provisioningId = 12086;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.clearProvisioningPermission(provisioningId, userId, "READ",
"060cc0a2-ebd6-4e60-818e-1bec33053a4a");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

setProductPermission

Set access permission of product to user.

Parameters

Name Type Description
id
String
id of the product
user
Long
id of the user
permission
String
permission to set
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:setProductPermission>
<!--Optional:-->
<id>00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:setProductPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:setProductPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:        public void setProductPermission(String id, Long user,
                                                                                                                       String permission, String sessionId)

                                           throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:                

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Product {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
String productId = "00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.setProductPermission(productId, userId, "READ","70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

getProductACL

List the access permissions attached to product.

Parameters

Name Type Description
id
String
SKU of the Product
sessionId
String
sessionId of the current session

Returns

Name Type Description
ACLPermisssions
ACLProxy
list of ACL entries attached to product

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:getProductACL>
<!--Optional:-->
<id>00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9</id>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:getProductACL>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getProductACLResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>
<ns2:entry user="171">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
<ns2:entry user="995">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
</return>
</ns2:getProductACLResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:           public ACLProxy getProductACL(String id, String sessionId)

                                          throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:              

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Product {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
String productId = "00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
String productValue[][] = stub.getProductACL(productId,
"70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}


 

hasAccessToProduct

Product has specific access permission or not.

Parameters

Name Type Description
verb
Action
access permission
id
String
SKU of the Product
sessionId
String
sessionId of the current session

Returns

Name Type Description
Permission State
Boolean
Return true if the product has specific permission

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:hasAccessToProduct>
<!--Optional:-->
<verb>READ</verb>
<!--Optional:-->
<productId>00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9</productId>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:hasAccessToProduct>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:hasAccessToProductResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>true</return>
</ns2:hasAccessToProductResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:          public boolean hasAccessToProduct                                                  (com.pervasive.datasolutions.datacloud.acl.Action verb, String id, String sessionId)
                                                                                                                               
                                                 throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:                

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Product {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
String productId = "00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
Boolean productAccess = stub.hasAccessToProduct(Action.fromString("READ"), productId,
"70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}


 

clearProductPermission

Clear specific product access permission of user .

Parameters

Name Type Description
id
String
SKU of the Product
user
Long
id of the user
permission
String
permission to clear
sessionid
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:clearProductPermission>
<!--Optional:-->
<id>00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:clearProductPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:clearProductPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:           public voidg clearProductPermission(String id, Long user, String permission,
                                                                                                                                            String sessionId)
                                         throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:                  

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Product {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
String productId = "00c55ba1-2fcb-4109-aa73-8ff2aa8d4af9";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.clearProductPermission(productId, userId, "READ",
"70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}


 

setUserPermission

Set access permission of user to user.

Parameterss

Name Type Description
id
Long
id of the user to be accessed
user
Long
id of the user
permission
String
permission to set
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:setUserPermission>
<!--Optional:-->
<id>173</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:setUserPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:setUserPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:         public void setUserPermission (Long id, Long user, String permission, String sessionId)

                                        throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

Usage:                  

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class User {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long user = 173;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.setUserPermission(user, userId, "READ",
"70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

getUserACL

List the access permissions attached to user.

Parameters

Name Type Description
id
Long
id of the user
sessionId
String
the sessionId of the current user session

Returns

Name Type Description
ACLPermisssions
ACLProxy
list of ACL entries attached to user

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:getUserACL>
<!--Optional:-->
<id>171</id>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:getUserACL>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getUserACLResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>
<ns2:entry user="171">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
</return>
</ns2:getUserACLResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:                    public ACLProxy getUserACL(Long id, String sessionId)

                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:                  

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class User {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long user = 173;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
String userValue[][] = stub.getUserACL(user, "70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

hasAccessToUser

User has specific access permission or not.

Parameters

Name Type Description
verb
Action
access permission
id
Long
id of the user
sessionId
String
sessionId of the current session

Returns

Name Type Description
Permission State
Boolean
Return true if the user has specific permission

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:hasAccessToUser>
<!--Optional:-->
<verb>READ</verb>
<!--Optional:-->
<userId>171</userId>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:hasAccessToUser>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:hasAccessToUserResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>true</return>
</ns2:hasAccessToUserResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:       public boolean hasAccessToUser (com.pervasive.datasolutions.datacloud.acl.Action verb,
                                                                                                                      Long id, String sessionId)
                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:                 

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class User {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long user = 173;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
Boolean userAccess = stub.hasAccessToUser( Action.fromString("READ"), user,
"70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

clearUserPermission

Clear specific user access permission of another user.

Parameters

Name Type Description
id
Long
user id for that permission going to cleared
user
Long
id of the user
permission
String
permission to clear
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:clearUserPermission>
<!--Optional:-->
<id>173</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9</sessionId>
</v1:clearUserPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:clearUserPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:      public void clearUserPermission (Long id, Long user, String permission, String sessionId),

                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException,

Usage:                 

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class User {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long user = 173;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.clearUserPermission(user, userId, "READ", "70c84502-e6d2-4c4b-b3a9-a74c6f8a5ff9");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

setDestinationPermission

Set access permission of destination to user

Parameters

Name Type Description
id
Long
id of the destination
user
Long
id of the user
permission
String
permission to set
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:setDestinationPermission>
<!--Optional:-->
<id>73</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>75b18137-fec2-4f34-b985-fdfb5152e474</sessionId>
</v1:setDestinationPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:setDestinationPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:        public void setDestinationPermission(Long id, Long user, String permission,                                                                                                                                                String sessionId)

                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:              

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Destination {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long destinationId = 73;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.setDestinationPermission(destinationId, userId, "READ","75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}

 

getDestinationACL

List the access permissions attached to destination.

Parameters

Name Type Description
id
Long
id of the destination
sessionId
String
sessionId of the current session

Returns

Name Type Description
ACLPermisssions
ACLProxy
list of ACL entries attached to destination

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:getDestinationACL>
<!--Optional:-->
<id>73</id>
<!--Optional:-->
<sessionId>75b18137-fec2-4f34-b985-fdfb5152e474</sessionId>
</v1:getDestinationACL>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getDestinationACLResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>
<ns2:entry user="171">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
</return>
</ns2:getDestinationACLResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:       public ACLProxy getDestinationACL (Long id, String sessionId)
                                             throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Destination {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long destinationId = 73;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
String destinationValue[][] = stub.getDestinationACL(destinationId,"75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}


 

hasAccessToDestination

Destination has specific access permission or not

Parameters

Name Type Description
verb
Action 
access permission
id
Long
id of the destination
sessionId
String
sessionId of the current session

Returns

Name Type Description
Permission State
Boolean
Return true if the destination has specific permission

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:hasAccessToDestination>
<!--Optional:-->
<verb>READ</verb>
<!--Optional:-->
<destinationId>73</destinationId>
<!--Optional:-->
<sessionId>75b18137-fec2-4f34-b985-fdfb5152e474</sessionId>
</v1:hasAccessToDestination>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:hasAccessToDestinationResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>true</return>
</ns2:hasAccessToDestinationResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:         public boolean hasAccessToDestination                                                 (com.pervasive.datasolutions.datacloud.acl.Action verb, Long id, String sessionId)                                               throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Destination {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long destinationId = 73;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
Boolean destinationAccess = stub.hasAccessToDestination( Action.fromString("READ"), destinationId, "75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}

 

clearDestinationPermission

Clear specific destination access permission of user.

Parameters

Name Type Description
id
Long
id of the destination
user
Long
id of the user
permission
String
permission to clear
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:clearDestinationPermission>
<!--Optional:-->
<id>73</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>75b18137-fec2-4f34-b985-fdfb5152e474</sessionId>
</v1:clearDestinationPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:clearDestinationPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:      public void clearDestinationPermission(Long id, Long user, String permission,                                                                                                              String sessionId)

                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Destination {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long destinationId = 73;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.clearDestinationPermission(destinationId, userId, "READ",
"75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}

 

setCredentialPermission

Set access permission of credential to user.

Parameters

Name Type Description
id
Long
id of the credential
user
Long
id of the user
permission
String
permission to set
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:setCredentialPermission>
<!--Optional:-->
<id>2958423</id>
<!--Optional:-->
<user>171</user>
<!--ermission>READ</permission>
<!--Optional:-->
<sessionId>75b18137-fec2-4f34-b985-fdfb5152e474</sessionId>
</v1:setCredentialPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:setCredentialPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:   public void setCredentialPermission(Long id, Long user, String permission, String sessionId)
                                               throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.lang.Long;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class credential {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long credentialId = 2958423;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.setCredentialPermission(credentialId, userId, "READ","75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}

 

getCredentialACL

List the access permissions attached to credential

Parameters

Name Type Description
id
Long
id of the credential
sessionId
String
sessionId of the current session

Returns

Name Type Description
ACLPermisssions
ACLProxy
list of ACL entries attached to credential

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:getCredentialACL>
<!--Optional:-->
<id>2958423</id>
<!--Optional:-->
<sessionId>34f1befe-a322-411f-aa68-e8f10c22c750</sessionId>
</v1:getCredentialACL>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getCredentialACLResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>
<ns2:entry user="171">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
</return>
</ns2:getCredentialACLResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:       public ACLProxy getCredentialACL (Long id, String sessionId)
                                             throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.lang.Long;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class credential {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long credentialId = 2958423;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
String credentialValue[][] = stub.getCredentialACL(credentialId,"75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}

 

hasAccessToCredential

Credential has specific access permission or not.

Parameters

Name Type Description
verb
Action 
access permission
id
Long
id of the Provisioning
sessionId
String
sessionId of the current session

Returns

Name Type Description
Permission State
Boolean
Return true if the credential has specific permission

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:hasAccessToCredential>
<!--Optional:-->
<verb>READ</verb>
<!--Optional:-->
<credentialId>2958423</credentialId>
<!--Optional:-->
<sessionId>75b18137-fec2-4f34-b985-fdfb5152e474</sessionId>
</v1:hasAccessToCredential>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:hasAccessToCredentialResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>true</return>
</ns2:hasAccessToCredentialResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:      public boolean hasAccessToCredential (com.pervasive.datasolutions.datacloud.acl.Action
                                                                                                                              verb, Long id, String sessionId)                                               throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.lang.Long;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class credential {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long credentialId = 2958423;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
Boolean credentialAccess = stub.hasAccessToCredential(Action.fromString("READ"), credentialId,"75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}

 

clearCredentialPermission

Clear specific credential access permission of user.

Parameters

Name Type Description
id
Long
id of the credential
user
Long
id of the user
permission
String
permission to clear
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:clearCredentialPermission>
<!--Optional:-->
<id>2958423</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>75b18137-fec2-4f34-b985-fdfb5152e474</sessionId>
</v1:clearCredentialPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:clearCredentialPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:      public void clearCredentialPermission(Long id, Long user, String permission,                                                                                                              String sessionId)

                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.lang.Long;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class credential {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
long credentialId = 2958423;
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.clearCredentialPermission(credentialId, userId, "READ","75b18137-fec2-4f34-b985-fdfb5152e474");
} catch (RemoteException e) {
e.printStackTrace();
}
}
}

 

setExecutionPermission

Set access permission of execution to user.

Parameters

Name Type Description
id
String
id of the Execution
user
Long
id of the user
permission
String
permission to set
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:setExecutionPermission>
<!--Optional:-->
<id>3dc247c2-1abb-47be-a698-788bf37339e5</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f</sessionId>
</v1:setExecutionPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:setExecutionPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:      public void setExecutionPermission(Long id, Long user, String permission,                                                                                                                                                      String sessionId)
                                               throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Execution {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
String executionId = "3dc247c2-1abb-47be-a698-788bf37339e5";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.setExecutionPermission(executionId, userId, "READ",
"b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}


 

getExecutionACL

List the access permissions attached to execution.

Parameters

Name Type Description
id
String
id of the execution
sessionId
String
sessionId of the current session

Returns

Name Type Description
ACLPermisssions
ACLProxy
list of ACL entries attached to execution

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:getExecutionACL>
<!--Optional:-->
<id>3dc247c2-1abb-47be-a698-788bf37339e5</id>
<!--Optional:-->
<sessionId>b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f</sessionId>
</v1:getExecutionACL>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:getExecutionACLResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>
<ns2:entry user="171">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
<ns2:entry user="335">
<ns2:permission>READ</ns2:permission>
<ns2:permission>WRITE</ns2:permission>
<ns2:permission>EXECUTE</ns2:permission>
<ns2:permission>GRANT</ns2:permission>
</ns2:entry>
<ns2:entry user="995">
<ns2:permission>READ</ns2:permission>
</ns2:entry>
</return>
</ns2:getExecutionACLResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:       public ACLProxy getExecutionACL (Long id, String sessionId)
                                             throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Execution {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
String executionId = "3dc247c2-1abb-47be-a698-788bf37339e5";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
String executionValue[][] = stub.getExecutionACL(executionId,
"b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

}


 

hasAccessToExecution

Execution has specific access permission or not.

Parameters

Name Type Description
verb
Action
access permission
id
String
the id of execution
sessionId
String
the sessionId associated with the currently logged in user

Returns

Name Type Description
Permission State
Boolean
Return true if the execution has specific permission

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:hasAccessToExecution>
<!--Optional:-->
<verb>READ</verb>
<!--Optional:-->
<executionId>3dc247c2-1abb-47be-a698-788bf37339e5</executionId>
<!--Optional:-->
<sessionId>b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f</sessionId>
</v1:hasAccessToExecution>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:hasAccessToExecutionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud">
<return>true</return>
</ns2:hasAccessToExecutionResponse>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:     public boolean hasAccessToExecution(com.pervasive.datasolutions.datacloud.acl.Action                                                                                                                               verb, Long id, String sessionId)                                               throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Execution {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
String executionId = "3dc247c2-1abb-47be-a698-788bf37339e5";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
Boolean executionAccess = stub.hasAccessToExecution(Action.fromString("READ"), executionId,
"b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}

 

clearExecutionPermission

Clear specific Execution access permission of user.

Parameters

Name Type Description
id
String
id of the execution to return
user
Long
id of the user
permission
String
permission to clear
sessionId
String
sessionId of the current session

Errors

Name
InvalidSessionException

Example

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://datacloud2.pervasive.com/schema/api/acl/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:clearExecutionPermission>
<!--Optional:-->
<id>3dc247c2-1abb-47be-a698-788bf37339e5</id>
<!--Optional:-->
<user>171</user>
<!--Optional:-->
<permission>READ</permission>
<!--Optional:-->
<sessionId>b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f</sessionId>
</v1:clearExecutionPermission>
</soapenv:Body>
</soapenv:Envelope>

 

SOAP Response

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:clearExecutionPermissionResponse xmlns:ns2="http://datacloud2.pervasive.com/schema/api/acl/v1/" xmlns:ns3="http://datasolutions.pervasive.com/api/crud"/>
</S:Body>
</S:Envelope>

 

Java Code Sample

Method Signature:      public void clearExecutionPermission(Long id, Long user, String permission,                                                                                                              String sessionId)

                                              throws com.pervasive.datasolutions.datacloud.exceptions.InvalidSessionException

 

Usage:      

import com.pervasive.datacloud2.schema.api.acl.v1.ACLService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServicePortBindingStub;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceService;
import com.pervasive.datacloud2.schema.api.acl.v1.ACLServiceServiceLocator;
import com.pervasive.datacloud2.schema.api.acl.v1.InvalidSessionException;
import com.pervasive.datacloud2.schema.api.acl.v1.Action;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;

public class Execution {
public static void main(String args[]) throws InvalidSessionException,
ServiceException {
long userId = 171;
String executionId = "3dc247c2-1abb-47be-a698-788bf37339e5";
ACLServiceServiceLocator service = new ACLServiceServiceLocator();
ACLService stub = service.getACLServicePort();
try {
stub.clearExecutionPermission(executionId, userId, "READ",
"b71cf2d8-a5e8-4563-89a7-4bacdcc9c72f");
}
catch (RemoteException e)
{
e.printStackTrace();
}
}
}