|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatastoreHelper
Field Summary |
---|
Fields inherited from interface com.ibm.xdms.function.Function |
---|
COPYRIGHT |
Method Summary | |
---|---|
void |
beginTransaction(javax.transaction.UserTransaction trans,
java.lang.String method)
Begins the transaction associated with the Datastore |
void |
checkAccess(java.lang.String documentSelectorString,
java.security.Principal principal,
boolean isSuperAdminUser,
boolean isAnonymousUser,
int permission)
Checks if the principal in the request has permission to have the specified access to the specified node selector |
void |
checkAccess(XcapServerRequest request,
com.ibm.xcap.DocumentSelector documentSelector,
int permission)
Checks if the principal in the request has permission to have the specified access to the specified node selector |
void |
checkReadAccess(XcapServerRequest request,
java.lang.String documentSelector)
Checks if the principal in the request has permission to have read access to the specified node selector |
void |
closeConnection(java.sql.Connection con)
Closes db connection |
void |
commitTransaction(XcapServerRequest request)
Commits the transaction associated with the Datastore |
org.w3c.dom.Document |
dxpCreateDocument(DomXmlProcessor dxp,
java.lang.String documentString,
boolean enableSchemaValidation,
java.sql.Connection con,
java.sql.PreparedStatement ps,
javax.transaction.UserTransaction trans)
document = dxp.createDocument(documentString, enableSchemaValidation) |
boolean |
enableSchemaValidation()
Queries the AuidConfig to determine if schema validation is enabled. |
java.sql.Connection |
getConnection(javax.sql.DataSource dataSource)
Returns a db connection |
long |
getETag(java.lang.String documentSelector,
java.sql.Connection con,
javax.servlet.sip.SipServletRequest request)
Retrieves the ETag for a document, using an existing connection |
long |
getETag(java.lang.String documentSelector,
java.sql.Connection con,
XcapServerRequest request)
Retrieves the ETag for a document, using an existing connection |
long |
getETag(java.lang.String documentSelector,
javax.sql.DataSource dataSource,
java.sql.Connection con,
XcapServerRequest request)
Retrieves the ETag for a document |
int |
getMaxSearchResults()
Queries the AuidConfig to determine the maxSearchResults |
javax.transaction.UserTransaction |
getTransaction(XcapServerRequest request)
Returns the current transaction for this request. |
void |
recordAlarmAndFaultLogger(java.lang.Exception e,
java.lang.String METHOD,
java.lang.String documentSelector,
java.lang.String xdmsErrorMsg)
|
void |
rollbackTransaction(javax.transaction.UserTransaction trans,
java.lang.String method)
Rolls back the transaction associated with the Datastore |
void |
rollbackTransaction(XcapServerRequest request)
Rolls back the transaction associated with the Datastore |
javax.sql.DataSource |
setUpDataSource()
Gets the dataSource |
com.ibm.xcap.DocumentSelector |
transformNodeAttribute(com.ibm.xcap.DocumentSelector documentSelector)
Transforms the nodeAttribute of a DocumentSelector to match the format for |
java.lang.String |
validateGINodeSelectorAttr(java.lang.String method,
com.ibm.xcap.NodeSelector nodeSelector,
java.lang.String globalIndexPM)
|
Methods inherited from interface com.ibm.xdms.function.Function |
---|
getApplicationUsage, init |
Method Detail |
---|
void recordAlarmAndFaultLogger(java.lang.Exception e, java.lang.String METHOD, java.lang.String documentSelector, java.lang.String xdmsErrorMsg) throws XcapException
XcapException
javax.sql.DataSource setUpDataSource()
appUsage
- The ApplicationUsage information.
java.sql.SQLException
java.sql.Connection getConnection(javax.sql.DataSource dataSource) throws XcapException
XcapException
void closeConnection(java.sql.Connection con) throws XcapException
XcapException
javax.transaction.UserTransaction getTransaction(XcapServerRequest request) throws XcapException
request
- XcapServerRequest
XcapException
void beginTransaction(javax.transaction.UserTransaction trans, java.lang.String method) throws XcapException
trans
- METHOD
-
XcapException
void commitTransaction(XcapServerRequest request) throws XcapException
request
- XcapServerRequest object
XcapException
void rollbackTransaction(XcapServerRequest request) throws XcapException
request
- XcapServerRequest object
XcapException
void rollbackTransaction(javax.transaction.UserTransaction trans, java.lang.String method) throws XcapException
trans
- UserTransaction objectmethod
- METHOD calling the rollback
XcapException
boolean enableSchemaValidation()
int getMaxSearchResults()
org.w3c.dom.Document dxpCreateDocument(DomXmlProcessor dxp, java.lang.String documentString, boolean enableSchemaValidation, java.sql.Connection con, java.sql.PreparedStatement ps, javax.transaction.UserTransaction trans) throws java.sql.SQLException, XcapException
dxp
- documentString
- enableSchemaValidation
- con
- ps
- trans
-
java.sql.SQLException
XcapException
long getETag(java.lang.String documentSelector, javax.sql.DataSource dataSource, java.sql.Connection con, XcapServerRequest request) throws XcapException
documentSelector
- dataSource
- con
-
XcapException
- error retrieving the document from the databaselong getETag(java.lang.String documentSelector, java.sql.Connection con, XcapServerRequest request) throws XcapException
documentSelector
- Document Selectorcon
- JDBC Connection
XcapException
- error retrieving the document from the databaselong getETag(java.lang.String documentSelector, java.sql.Connection con, javax.servlet.sip.SipServletRequest request) throws XcapException
documentSelector
- Document Selectorcon
- JDBC Connection
XcapException
- error retrieving the document from the databasevoid checkReadAccess(XcapServerRequest request, java.lang.String documentSelector) throws XdmsException
request
- documentSelector
-
XdmsException
UnauthorizedException
void checkAccess(XcapServerRequest request, com.ibm.xcap.DocumentSelector documentSelector, int permission) throws XdmsException
request
- RequestdocumentSelector
- Document Selector
XdmsException
UnauthorizedException
void checkAccess(java.lang.String documentSelectorString, java.security.Principal principal, boolean isSuperAdminUser, boolean isAnonymousUser, int permission) throws XdmsException, java.net.MalformedURLException
request
- RequestdocumentSelector
- Document Selector
XdmsException
XdmsException
UnauthorizedException
- If the user is not authorized
XdmsException
java.net.MalformedURLException
java.lang.String validateGINodeSelectorAttr(java.lang.String method, com.ibm.xcap.NodeSelector nodeSelector, java.lang.String globalIndexPM) throws LocalConstraintFailureException, XcapException
LocalConstraintFailureException
XcapException
com.ibm.xcap.DocumentSelector transformNodeAttribute(com.ibm.xcap.DocumentSelector documentSelector) throws java.net.MalformedURLException, XcapException
documentSelector
- DocumentSelector
XcapException,
- MalformedURLException
java.net.MalformedURLException
XcapException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |