public class DAMProcessor
extends com.labvantage.sapphire.BaseAccessor
Constructor and Description |
---|
DAMProcessor(java.io.File rakFile,
java.lang.String connectionid)
Constructor for a client application with an existing connection
|
DAMProcessor(javax.servlet.jsp.PageContext pageContext)
Constructor for a client web application with a page Context and existing connectionid
|
DAMProcessor(java.lang.String connectionid)
Constructor for creating an accessor from components
|
DAMProcessor(java.lang.String nameserverlist,
java.lang.String connectionid)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
SDIList |
checkSDIAccess(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
boolean viewHiddenRecord,
java.lang.String operation)
Method checks if the current user has access to the provided set of SDIs.
|
int |
clearRSet(java.lang.String rsetid)
Clears a specified RSet
|
java.lang.String |
createLockedRSet(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list)
Create a new RSet with lock
|
int |
createLockedRSet(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
org.omg.CORBA.StringHolder rsetidholder)
Deprecated.
|
java.lang.String |
createLockedRSetDS(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
java.lang.String paramlistidlist,
java.lang.String paramlistversionidlist,
java.lang.String variantidlist,
java.lang.String datasetlist,
boolean propsMatch)
Create a new DS RSet with lock
|
int |
createLockedRSetDS(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
java.lang.String paramlistidlist,
java.lang.String paramlistversionidlist,
java.lang.String variantidlist,
java.lang.String datasetlist,
boolean propsMatch,
org.omg.CORBA.StringHolder rsetidholder)
Deprecated.
|
java.lang.String |
createRSet(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list)
Create a new RSet with no lock
|
java.lang.String |
createRSet(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
boolean viewHiddenRecord,
int bypassSecurityCode)
Create a new RSet with no lock
|
int |
createRSet(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
org.omg.CORBA.StringHolder rsetidholder)
Deprecated.
|
java.lang.String |
createRSetDS(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
java.lang.String paramlistidlist,
java.lang.String paramlistversionidlist,
java.lang.String variantidlist,
java.lang.String datasetlist,
boolean propsMatch)
Create a new DS RSet with lock
|
java.lang.String |
createRSetDS(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
java.lang.String paramlistidlist,
java.lang.String paramlistversionidlist,
java.lang.String variantidlist,
java.lang.String datasetlist,
boolean propsMatch,
boolean populateBoth,
boolean calcexpand)
Create a new DS RSet with lock
|
int |
createRSetDS(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
java.lang.String paramlistidlist,
java.lang.String paramlistversionidlist,
java.lang.String variantidlist,
java.lang.String datasetlist,
boolean propsMatch,
boolean populateBoth,
boolean calcexpand,
org.omg.CORBA.StringHolder rsetidholder)
Deprecated.
|
int |
createRSetDS(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
java.lang.String paramlistidlist,
java.lang.String paramlistversionidlist,
java.lang.String variantidlist,
java.lang.String datasetlist,
boolean propsMatch,
org.omg.CORBA.StringHolder rsetidholder)
Deprecated.
|
java.lang.String |
createRSetQ(java.lang.String sdcid,
java.lang.String queryid,
java.lang.String[] params)
Create a new RSet with no lock
|
java.lang.String |
createRSetQ(java.lang.String sdcid,
java.lang.String queryid,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3,
java.lang.String param4,
java.lang.String param5)
Create a new RSet with no lock
|
int |
createRSetQ(java.lang.String sdcid,
java.lang.String queryid,
java.lang.String param1,
java.lang.String param2,
java.lang.String param3,
java.lang.String param4,
java.lang.String param5,
org.omg.CORBA.StringHolder rsetidholder)
Deprecated.
|
java.lang.String |
createRSetWI(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list,
java.lang.String workitemidlist,
java.lang.String workiteminstancelist,
boolean populateBoth)
Create a new WI RSet
|
java.lang.String |
getAllDSRSet(java.lang.String sdcid,
java.lang.String keyid1list,
java.lang.String keyid2list,
java.lang.String keyid3list)
Create a new DS RSet for the SDIs.
|
boolean |
isGlobalLock() |
java.lang.String |
lockRSet(java.lang.String rsetid)
Applys a lock to an existing rset
|
int |
lockRSet(org.omg.CORBA.StringHolder rsetidholder)
Deprecated.
|
boolean |
setGlobalLock(boolean lock) |
void |
touchRSet(java.lang.String rsetid)
Pings a locked rset to keep the lock alive
|
createRemoteAccessKey, getAttachmentManager, getAutomationManager, getConfigurationManager, getConnectionid, getErrorCodeList, getErrorCodeStack, getErrorHandler, getErrorStack, getErrorStack, getErrorString, getInfoErrorString, getLastError, getLastErrorCode, getLastErrorMessage, getLastException, getLocalAccessManager, getNameserverlist, getQueryManager, getRemoteAccessManager, getRequestManager, getStatusManager, getWebAdminManager, hasErrors, hasInfoErrors, parseServiceExceptionMsg, resetConnectionid, resetErrorStack, setConnectionDetails, setConnectionid, setError, setError, setErrorString, setInfoErrorString, setJNDIPrefix, setLocal, setLocalJNDIPrefix, setRakFile
public DAMProcessor(java.lang.String connectionid)
connectionid
- The connection to use for component callspublic DAMProcessor(java.lang.String nameserverlist, java.lang.String connectionid)
nameserverlist
- list of the application sever namesconnectionid
- A valid connectionidpublic DAMProcessor(java.io.File rakFile, java.lang.String connectionid)
rakFile
- A remote access key fileconnectionid
- A valid connectionidpublic DAMProcessor(javax.servlet.jsp.PageContext pageContext)
pageContext
- The current page contextpublic int clearRSet(java.lang.String rsetid)
rsetid
- the RSet to clearpublic void touchRSet(java.lang.String rsetid)
rsetid
- the RSet to pingpublic int createRSet(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, org.omg.CORBA.StringHolder rsetidholder)
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the RSet.rsetidholder
- holder containing the RSet identifier that has been created.public java.lang.String createRSet(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the RSet.SapphireException
public java.lang.String createRSet(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, boolean viewHiddenRecord, int bypassSecurityCode) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the RSet.viewHiddenRecord
- whether to include hidden(activeflag=N) SDIsbypassSecurityCode
- bypassSecurityCode, 0, 1 or 2.SapphireException
public int createRSetQ(java.lang.String sdcid, java.lang.String queryid, java.lang.String param1, java.lang.String param2, java.lang.String param3, java.lang.String param4, java.lang.String param5, org.omg.CORBA.StringHolder rsetidholder)
sdcid
- the SDC of the SDIsqueryid
- a sapphire queryidparam1
- parameter 1 for the queryparam2
- parameter 2 for the queryparam3
- parameter 3 for the queryparam4
- parameter 4 for the queryparam5
- parameter 5 for the queryrsetidholder
- holder containing the RSet identifier that has been created.public java.lang.String createRSetQ(java.lang.String sdcid, java.lang.String queryid, java.lang.String param1, java.lang.String param2, java.lang.String param3, java.lang.String param4, java.lang.String param5) throws SapphireException
sdcid
- the SDC of the SDIsqueryid
- a sapphire queryidparam1
- parameter 1 for the queryparam2
- parameter 2 for the queryparam3
- parameter 3 for the queryparam4
- parameter 4 for the queryparam5
- parameter 5 for the querySapphireException
public java.lang.String createRSetQ(java.lang.String sdcid, java.lang.String queryid, java.lang.String[] params) throws SapphireException
sdcid
- the SDC of the SDIsqueryid
- a sapphire queryidparams
- list of parameters for the querySapphireException
public int createLockedRSet(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, org.omg.CORBA.StringHolder rsetidholder)
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the RSet.rsetidholder
- holder containing the RSet identifier that has been created.public java.lang.String createLockedRSet(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the RSet.SapphireException
public int createRSetDS(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, java.lang.String paramlistidlist, java.lang.String paramlistversionidlist, java.lang.String variantidlist, java.lang.String datasetlist, boolean propsMatch, org.omg.CORBA.StringHolder rsetidholder)
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.paramlistidlist
- semi-colon separated list of parameter lists to put into the DS RSet.paramlistversionidlist
- semi-colon separated list of parameter list versions to put into the DS RSet.variantidlist
- semi-colon separated list of parameter list variants to put into the DS RSet.datasetlist
- semi-colon separated list of datasets to put into the DS RSet.propsMatch
- inidcates if the property lists matchrsetidholder
- holder containing the RSet identifier that has been created.public java.lang.String createRSetDS(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, java.lang.String paramlistidlist, java.lang.String paramlistversionidlist, java.lang.String variantidlist, java.lang.String datasetlist, boolean propsMatch) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.paramlistidlist
- semi-colon separated list of parameter lists to put into the DS RSet.paramlistversionidlist
- semi-colon separated list of parameter list versions to put into the DS RSet.variantidlist
- semi-colon separated list of parameter list variants to put into the DS RSet.datasetlist
- semi-colon separated list of datasets to put into the DS RSet.propsMatch
- inidcates if the property lists matchSapphireException
public int createRSetDS(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, java.lang.String paramlistidlist, java.lang.String paramlistversionidlist, java.lang.String variantidlist, java.lang.String datasetlist, boolean propsMatch, boolean populateBoth, boolean calcexpand, org.omg.CORBA.StringHolder rsetidholder)
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.paramlistidlist
- semi-colon separated list of parameter lists to put into the DS RSet.paramlistversionidlist
- semi-colon separated list of parameter list versions to put into the DS RSet.variantidlist
- semi-colon separated list of parameter list variants to put into the DS RSet.datasetlist
- semi-colon separated list of datasets to put into the DS RSet.propsMatch
- inidcates if the property lists matchpopulateBoth
- inidcates that both the rsetitemsds AND rsetitems tables should be populatedcalcexpand
- inidcates that the calc dependent datasets should be included included in the RSetrsetidholder
- holder containing the RSet identifier that has been created.public java.lang.String createRSetDS(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, java.lang.String paramlistidlist, java.lang.String paramlistversionidlist, java.lang.String variantidlist, java.lang.String datasetlist, boolean propsMatch, boolean populateBoth, boolean calcexpand) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.paramlistidlist
- semi-colon separated list of parameter lists to put into the DS RSet.paramlistversionidlist
- semi-colon separated list of parameter list versions to put into the DS RSet.variantidlist
- semi-colon separated list of parameter list variants to put into the DS RSet.datasetlist
- semi-colon separated list of datasets to put into the DS RSet.propsMatch
- inidcates if the property lists matchpopulateBoth
- inidcates that both the rsetitemsds AND rsetitems tables should be populatedcalcexpand
- inidcates that the calc dependent datasets should be included included in the RSetSapphireException
public java.lang.String getAllDSRSet(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.SapphireException
public java.lang.String createRSetWI(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, java.lang.String workitemidlist, java.lang.String workiteminstancelist, boolean populateBoth) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.workitemidlist
- semi-colon separated list of workitemidworkiteminstancelist
- semi-colon separated list of workiteminstancepopulateBoth
- inidcates that both the rsetitemsds AND rsetitems tables should be populatedSapphireException
public int createLockedRSetDS(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, java.lang.String paramlistidlist, java.lang.String paramlistversionidlist, java.lang.String variantidlist, java.lang.String datasetlist, boolean propsMatch, org.omg.CORBA.StringHolder rsetidholder)
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.paramlistidlist
- semi-colon separated list of parameter lists to put into the DS RSet.paramlistversionidlist
- semi-colon separated list of parameter list versions to put into the DS RSet.variantidlist
- semi-colon separated list of parameter list variants to put into the DS RSet.datasetlist
- semi-colon separated list of datasets to put into the DS RSet.propsMatch
- inidcates if the property lists matchrsetidholder
- holder containing the RSet identifier that has been created.public java.lang.String createLockedRSetDS(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, java.lang.String paramlistidlist, java.lang.String paramlistversionidlist, java.lang.String variantidlist, java.lang.String datasetlist, boolean propsMatch) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the DS RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the DS RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the DS RSet.paramlistidlist
- semi-colon separated list of parameter lists to put into the DS RSet.paramlistversionidlist
- semi-colon separated list of parameter list versions to put into the DS RSet.variantidlist
- semi-colon separated list of parameter list variants to put into the DS RSet.datasetlist
- semi-colon separated list of datasets to put into the DS RSet.propsMatch
- inidcates if the property lists matchSapphireException
public int lockRSet(org.omg.CORBA.StringHolder rsetidholder)
rsetidholder
- holder containing the RSet.public java.lang.String lockRSet(java.lang.String rsetid) throws SapphireException
rsetid
- The rset to lockSapphireException
public SDIList checkSDIAccess(java.lang.String sdcid, java.lang.String keyid1list, java.lang.String keyid2list, java.lang.String keyid3list, boolean viewHiddenRecord, java.lang.String operation) throws SapphireException
sdcid
- the SDC of the SDIskeyid1list
- semi-colon separated list of first key column of SDIs to put into the RSet.keyid2list
- semi-colon separated list of second key column of SDIs to put into the RSet.keyid3list
- semi-colon separated list of third key column of SDIs to put into the RSet.viewHiddenRecord
- whether to include hidden(activeflag=N) SDIsoperation
- the sdcoperation which needs to be checked. For e.g. - list, edit.SapphireException
public boolean setGlobalLock(boolean lock)
public boolean isGlobalLock()