@Deprecated
public class CacheHandler
extends java.lang.Object
Inserting new object.
Updating existing object.
Deleting existing object.
Reading objects based on various criteria.
CacheHandler cacheHandler = new CacheHandler(iConfigNode)
TransactionObject transObj = cacheHandler.startTransaction(transactionTimeout)
After you create transaction object(as shown above),do what ever operations
you want to do with CoBOC, here
For Ex :
ReadObjResponse resObj = cacheHandler.insertObject(templateID,objectName,object,userName,transObj,oOperationContext)
then end the transaction. [as shown below]
cacheHandler.endTransaction(transObj.getID());
Modifier and Type | Field and Description |
---|---|
static AttributeTemplateCache |
attribCache
Deprecated.
|
static java.util.Hashtable<java.lang.String,java.lang.String> |
primaryKeyCache
Deprecated.
|
Constructor and Description |
---|
CacheHandler(int iConfigNode)
Deprecated.
Use other constructor with Problem-monitor and JMX Management support enabled.
Usage of the constructor with four parameters (Configuration, Problem-monitor, Managed-Component & Processor) is recommended.
|
CacheHandler(int iConfigNode,
CobocProblemMonitor problemMonitor)
Deprecated.
|
CacheHandler(int iConfigNode,
CobocProblemMonitor problemMonitor,
IManagedComponent oParentComponent,
Processor oProcessor)
Deprecated.
Create a new cache-handler with support of Problem-Monitor & JMX-Management.
|
CacheHandler(int iConfigNode,
IManagedComponent oParentComponent,
Processor processor)
Deprecated.
Create a new cache-handler with support of Problem-Monitor & JMX-Management.
|
Modifier and Type | Method and Description |
---|---|
int |
abortTransaction(TransactionObject transObj)
Deprecated.
Aborts the specific transaction
|
void |
closeCacheHandlerResources()
Deprecated.
|
TargetEntity |
copy(CopyInformation obSourceEntity,
TransactionObject obTransaction)
Deprecated.
|
BizObject |
deleteObject(BizObject oldObjMetaData,
TransactionObject transObj,
java.lang.String userName,
OperationContext oOperationContext)
Deprecated.
Deletes an existing object from CoBOC.
|
BizObject |
deleteObjectEx(BizObject oldObjMetaData,
TransactionObject transObj,
java.lang.String userName,
OperationContext oOperationContext)
Deprecated.
|
boolean |
dropObjectFromCache(long objectID)
Deprecated.
Delete an object from cache.
|
boolean |
dropObjectFromCache(java.lang.String objectID)
Deprecated.
|
void |
dropPlugInFromCache(java.lang.String stKey)
Deprecated.
|
boolean |
enableHistoryLogByObject(java.lang.String stId,
java.lang.String stLastModified,
int iChange)
Deprecated.
|
int |
endTransaction(TransactionObject transObj)
Deprecated.
Once transaction space is created using startTransaction function,
and you are done with all the interactions with the CoBOC,transaction
must be closed for persistance of data (may be creation/updation or deletion),
hence closing of the transaction is must and is done with this function.
|
BizObject |
executeRuleTest(long lTemplateID,
java.lang.String stObject,
java.lang.String userName,
TransactionObject transObj)
Deprecated.
|
BizObject |
executeRuleTest(java.lang.String lTemplateID,
java.lang.String stObject,
java.lang.String userName,
TransactionObject transObj)
Deprecated.
|
static CacheHandler |
getCacheHandler(int iConfigNode)
Deprecated.
|
static CacheHandler |
getCacheHandler(int iConfigNode,
CobocProblemMonitor problemMonitor,
IManagedComponent oParentComponent,
Processor processor)
Deprecated.
|
static CacheHandler |
getCacheHandler(int iConfigNode,
IManagedComponent oParentComponent,
Processor oProcessor)
Deprecated.
|
CobocSecurityInfoManager |
getCobocSecurityInfoManager()
Deprecated.
|
BizObject[] |
GetCollection(int iReqDoc,
java.lang.String stUserName)
Deprecated.
An XmlStore complaint method to get entities.
|
java.lang.String |
getDBError(TransactionObject transObj)
Deprecated.
Recommended to use getDBError() of ObjectManager
|
com.cordys.cpc.coboc.repository.persistance.MoveObject |
getMoveObject()
Deprecated.
|
BizObject |
getObject(long objID,
java.lang.String userName)
Deprecated.
|
BizObject |
getObject(long objID,
java.lang.String userName,
TransactionObject tranObj)
Deprecated.
|
BizObject |
getObject(long objID,
java.lang.String userName,
TransactionObject tranObj,
java.lang.String stType)
Deprecated.
|
BizObject |
getObject(java.lang.String objID,
java.lang.String userName)
Deprecated.
|
BizObject |
getObject(java.lang.String objID,
java.lang.String userName,
TransactionObject tranObj)
Deprecated.
|
BizObject |
getObject(java.lang.String stCustomkey,
java.lang.String userName,
TransactionObject tranObj,
int i)
Deprecated.
Retrieves specific object from CoBOC given its customkey in a transaction scope
|
BizObject |
getObject(java.lang.String objID,
java.lang.String userName,
TransactionObject tranObj,
java.lang.String stType)
Deprecated.
|
BizObject[] |
getObjectByObjectNameTemplate(java.lang.String objectName,
long templateID,
java.lang.String orderByStr,
java.lang.String userName)
Deprecated.
Reads all the objects from CoBOC with name
objectName with template templateID |
BizObject[] |
getObjectByObjectNameTemplate(java.lang.String objectName,
java.lang.String templateID,
java.lang.String orderByStr,
java.lang.String userName)
Deprecated.
|
ReadObjResponse |
getObjectByTemplateOrganization(long templateID,
java.lang.String orgDN,
java.lang.String orderByStr,
int iCursor,
java.lang.String[] version)
Deprecated.
Reads all the objects from the CoBOC,for a specific template given its path and organization .
|
ReadObjResponse |
getObjectByTemplateOrganization(java.lang.String templateID,
java.lang.String orgDN,
java.lang.String orderByStr,
int iCursor,
java.lang.String[] version)
Deprecated.
|
ReadObjResponse |
getObjectsByAttribute(java.lang.String queryStr,
java.lang.String version,
boolean flag,
int numRows,
java.lang.String userName,
java.lang.String stOrderBy,
java.lang.String orderStr)
Deprecated.
Reads all objects from CoBOC for a specific special attribute defined on template
templateName . |
ReadObjResponse |
getObjectsByAttribute(java.util.Vector vtok,
java.lang.String templateName,
java.lang.String version,
boolean flag,
int numRows,
java.lang.String userName)
Deprecated.
|
ReadObjResponse |
getObjectsByFolderID(long folderID,
java.lang.String orderByStr,
int numRows,
java.lang.String userName)
Deprecated.
Reads all the objects created by
userName from the CoBOC,for a specific folder given its ID. |
ReadObjResponse |
getObjectsByFolderID(java.lang.String folderID,
java.lang.String orderByStr,
int numRows,
java.lang.String userName)
Deprecated.
|
ReadObjResponse |
getObjectsByFolderName(java.lang.String folderName,
java.lang.String orderByStr,
int numRows,
java.lang.String userName,
int iCursor)
Deprecated.
Reads all the objects inserted by the user from the CoBOC,for a specific folder given its path
|
ReadObjResponse |
getObjectsByObjName(java.lang.String objName,
java.lang.String orderByStr,
int numRows,
java.lang.String userName)
Deprecated.
Reads all the objects from the CoBOC,for a specific object name.
|
ReadObjResponse |
getObjectsByOrganization(java.lang.String orgName,
java.lang.String orderByStr,
int cursorNode,
java.lang.String owner)
Deprecated.
Retrieves all the objects in the organization.
|
BizObject[] |
GetObjectsByQuery(java.lang.String stPlugInClass,
java.lang.String stQuery)
Deprecated.
gets the objects by the query supplied
|
RefObject[] |
getObjectsByReference(long objectID,
java.lang.String[] referencePattern,
java.lang.String[] references,
java.lang.String userName)
Deprecated.
This method gets the objects which are referenced by an object
|
RefObject[] |
getObjectsByReference(java.lang.String objectID,
java.lang.String[] referencePattern,
java.lang.String[] references,
java.lang.String userName)
Deprecated.
|
ReadObjResponse |
getObjectsByTemplateID(long templateID,
java.lang.String orderByStr,
int iCursor,
java.lang.String userName)
Deprecated.
Reads all the objects from the CoBOC,for a specific template given its ID
|
ReadObjResponse |
getObjectsByTemplateID(long templateID,
java.lang.String orderByStr,
int iCursor,
java.lang.String userName,
java.lang.String version)
Deprecated.
Reads all the objects from the CoBOC,for a specific template given its ID from a specified space
|
ReadObjResponse |
getObjectsByTemplateID(java.lang.String templateID,
java.lang.String orderByStr,
int iCursor,
java.lang.String userName)
Deprecated.
|
ReadObjResponse |
getObjectsByTemplateID(java.lang.String templateID,
java.lang.String orderByStr,
int iCursor,
java.lang.String userName,
java.lang.String version)
Deprecated.
|
ReadObjResponse |
getObjectsByTemplateIDAndUSer(long templateID,
java.lang.String orderByStr,
int iCursor,
java.lang.String userName,
java.lang.String version)
Deprecated.
|
ReadObjResponse |
getObjectsByTemplateIDAndUSer(java.lang.String templateID,
java.lang.String orderByStr,
int iCursor,
java.lang.String userName,
java.lang.String version)
Deprecated.
|
ReadObjResponse |
getObjectsByTemplateName(java.lang.String templateName,
java.lang.String orderByStr,
int iCursor,
java.lang.String userName,
java.lang.String version)
Deprecated.
Reads all the objects from the CoBOC,for a specific template given its path.
|
ReadObjResponse |
getObjectsByTemplateNameAndVersion(java.lang.String templateName,
float version,
java.lang.String orderByStr,
int numRows,
java.lang.String userName)
Deprecated.
Reads all the objects from the CoBOC,for a specific template given its path and version
provided for backward compatibility
|
ReadObjResponse |
getObjectsByUser(java.lang.String stOwnerName,
java.lang.String orderByStr,
int numRows,
java.lang.String stUserName,
int iCursor)
Deprecated.
Reads all the objects from the CoBOC,inserted by the stOwnerName and shared to stUserName.
|
Processor |
getProcessor()
Deprecated.
|
RuleRuntimeManager |
getRuleEngineManger()
Deprecated.
|
IVolatileSchedulerEngine |
getScheduleManager()
Deprecated.
|
java.lang.String |
getSchemaInstance(java.lang.String templateId,
java.lang.String userName)
Deprecated.
generate the schema for the given template id
|
java.lang.String |
getSchemaInstance(java.lang.String key,
java.lang.String version,
java.lang.String userName)
Deprecated.
|
java.util.List |
getSubscribedSubjects(java.lang.String user)
Deprecated.
This method returns all the subjects that an user has subscribed for.
|
int |
getTemplateDependents(int reqDoc,
TransactionObject oTransObj,
java.lang.String userName)
Deprecated.
|
boolean[] |
getTemplateInformation(java.lang.String stUserName,
java.lang.String stTemplatePath)
Deprecated.
Method which gives information whether the template has spl.attributes, events,primary keys,objects and rules defined
|
ReadObjResponse |
getTemplateLessObjects(java.lang.String orderByStr,
int numRows,
java.lang.String userName)
Deprecated.
Reads all the template less objects from the CoBOC.
To access this method the userName must have CoBOC Admin role |
BizObject[] |
getTemplatesByOrganization(java.lang.String stOrg,
int iCursor,
java.lang.String stUserName)
Deprecated.
Get all the templates in an organization
|
BizObject[] |
getTemplatesByReference(java.lang.String stReference,
int iCursor,
java.lang.String userName)
Deprecated.
Get all templates based on given reference
|
ReadObjResponse |
getTempLessObjsByUser(java.lang.String uName,
java.lang.String orderByStr,
int rowCount,
java.lang.String userName)
Deprecated.
Reads all the template less objects from the CoBOC,inserted by a specific user
userName
or shared to him or one of his roles. |
int |
getTotalObjectsInCache()
Deprecated.
|
int |
getTotalObjectsInDB()
Deprecated.
|
int |
getUndeletedNodesInMapperDocument(boolean printNodes)
Deprecated.
|
GetXMLObject |
getXMLObject()
Deprecated.
|
ReadObjResponse |
GetXMLObject(int iReqDoc,
java.lang.String userName,
TransactionObject transObj)
Deprecated.
An XmlStore complaint method to get an entity.
|
CobocProblemMonitor |
initializeProblemMonitor()
Deprecated.
|
void |
insertObject(BizObject bizObject,
java.lang.String userName,
TransactionObject transObj)
Deprecated.
|
BizObject |
insertObject(long templateID,
long objectId,
java.lang.String objectName,
java.lang.String Object,
java.lang.String userName,
TransactionObject transObj,
OperationContext oOperationContext)
Deprecated.
Inserts an object into CoBOC with object ID.
|
BizObject |
insertObject(long templateID,
java.lang.String objectName,
java.lang.String object,
java.lang.String userName,
TransactionObject transObj,
OperationContext oOperationContext)
Deprecated.
|
BizObject |
insertObject(java.lang.String templateID,
java.lang.String objectId,
java.lang.String objectName,
java.lang.String Object,
java.lang.String userName,
TransactionObject transObj,
OperationContext oOperationContext)
Deprecated.
|
BizObject |
insertObject(java.lang.String templateID,
java.lang.String objectName,
java.lang.String object,
java.lang.String userName,
TransactionObject transObj,
OperationContext oOperationContext)
Deprecated.
|
boolean |
isEntityExists(long lEntityId)
Deprecated.
to check if the given ID
lEntityId is present in CoBOC |
boolean |
isEntityExists(java.lang.String lEntityId)
Deprecated.
|
boolean |
isObjectExist(java.lang.String userDN,
java.lang.String objectName,
long templateID,
java.lang.String objectVersion)
Deprecated.
Checks whether any instance with the specified name exist for the specified template.
|
boolean |
isObjectExist(java.lang.String userDN,
java.lang.String objectName,
java.lang.String templateID,
java.lang.String objectVersion)
Deprecated.
|
boolean |
isObjectExist(java.lang.String userDN,
java.lang.String objectName,
java.lang.String templatePath,
java.lang.String objectVersion,
int i)
Deprecated.
Checks whether any instance with the specified name exist for the specified template.
|
int |
move(java.lang.String stSourceKey,
java.lang.String stDestinationKey,
java.lang.String stUser,
int iType,
java.lang.String stVersion,
java.lang.String stLastModified,
java.lang.String stTemplateFilter,
TransactionObject transObject)
Deprecated.
|
int |
move(java.lang.String stSourceKey,
java.lang.String stDestinationKey,
java.lang.String stUser,
int iType,
java.lang.String stVersion,
java.lang.String stLastModified,
java.lang.String stTemplateFilter,
TransactionObject transObject,
boolean isFullPath)
Deprecated.
|
int |
move(java.lang.String stSourceKey,
java.lang.String stDestinationKey,
java.lang.String stUser,
int iType,
java.lang.String stVersion,
java.lang.String stLastModified,
TransactionObject transObject)
Deprecated.
|
int |
move(java.lang.String stSourceKey,
java.lang.String stDestinationKey,
java.lang.String stUser,
int iType,
java.lang.String stVersion,
java.lang.String stLastModified,
TransactionObject transObject,
boolean isFullPath)
Deprecated.
|
BizObject |
processDeleteXMLObject(int iReqNode,
java.lang.String userName,
TransactionObject transObj)
Deprecated.
An XmlStore complaint method to delete an entity.
|
BizObject |
processInsertXMLObject(int iReqNode,
java.lang.String userName,
TransactionObject transObj)
Deprecated.
An XmlStore complaint method to insert an entity.
|
BizObject |
processUpdateXMLObject(int iReqNode,
java.lang.String userName,
TransactionObject transObj)
Deprecated.
An XmlStore complaint method to update an entity.
|
boolean |
pushObject(BizObject object)
Deprecated.
|
static IManagedComponent |
retrieveManagedComponent()
Deprecated.
|
static IProblemDefinition |
retrieveProblemDefinition()
Deprecated.
|
void |
setCurrentProcessor(java.lang.String processor)
Deprecated.
Sets the Soap Processor dn to identify CoBOC instance in the CoBOC network.
|
void |
setProblemMonitor(CobocProblemMonitor problemMonitor)
Deprecated.
|
void |
setProcessor(Processor oProcessor)
Deprecated.
|
TransactionObject |
startTransaction(int timeOutUnit)
Deprecated.
This is one of the key functions,when CoBOC is used as a plug in.
|
void |
transactionTimeOut(TransactionObject bustedTransaction)
Deprecated.
Kill a transaction
|
BizObject |
updateObject(BizObject oldBizObj,
BizObject newBizObj,
TransactionObject transObj,
java.lang.String userName,
OperationContext oOperationContext)
Deprecated.
Updates the existing object in the CoBOC.
|
BizObject |
updateObjectEx(BizObject oldBizObj,
BizObject newBizObj,
TransactionObject transObj,
java.lang.String userName,
OperationContext oOperationContext)
Deprecated.
|
public static final AttributeTemplateCache attribCache
public static final java.util.Hashtable<java.lang.String,java.lang.String> primaryKeyCache
public CacheHandler(int iConfigNode) throws java.lang.Exception
java.lang.Exception
public CacheHandler(int iConfigNode, CobocProblemMonitor problemMonitor, IManagedComponent oParentComponent, Processor oProcessor) throws java.lang.Exception
iConfigNode
- XML NOM Node for the configuration properties.problemMonitor
- Reference to CoBOC Problem MonitoroParentComponent
- Reference to Managed Component which will be used as
Parent Managed component for JMX support.oProcessor
- Reference to the Processor under which the Cache Hanler is being initialized.java.lang.Exception
public CacheHandler(int iConfigNode, IManagedComponent oParentComponent, Processor processor) throws java.lang.Exception
iConfigNode
- XML NOM Node for the configuration properties.oParentComponent
- Reference to Managed Component which will be used as
Parent Managed component for JMX support.processor
- Processor instance.java.lang.Exception
public CacheHandler(int iConfigNode, CobocProblemMonitor problemMonitor) throws java.lang.Exception
java.lang.Exception
public static CacheHandler getCacheHandler(int iConfigNode) throws java.lang.Exception
java.lang.Exception
public static CacheHandler getCacheHandler(int iConfigNode, CobocProblemMonitor problemMonitor, IManagedComponent oParentComponent, Processor processor) throws java.lang.Exception
java.lang.Exception
public static CacheHandler getCacheHandler(int iConfigNode, IManagedComponent oParentComponent, Processor oProcessor) throws java.lang.Exception
java.lang.Exception
public void closeCacheHandlerResources()
public CobocSecurityInfoManager getCobocSecurityInfoManager()
public RuleRuntimeManager getRuleEngineManger()
public BizObject executeRuleTest(long lTemplateID, java.lang.String stObject, java.lang.String userName, TransactionObject transObj) throws RuleEvalFailException, java.lang.Exception
lTemplateID
- the template id for the objectstObject
- the object on which rules have to be testeduserName
- DN of the usertransObj
- scope of the transaction under which to execute rulesRuleEvalFailException
java.lang.Exception
public BizObject executeRuleTest(java.lang.String lTemplateID, java.lang.String stObject, java.lang.String userName, TransactionObject transObj) throws RuleEvalFailException, java.lang.Exception
RuleEvalFailException
java.lang.Exception
public BizObject getObject(java.lang.String stCustomkey, java.lang.String userName, TransactionObject tranObj, int i)
stCustomkey
- the customkey for the objectuserName
- DN of the user to be used as the requestortranObj
- transaction scope for the requestpublic BizObject getObject(long objID, java.lang.String userName, TransactionObject tranObj)
objID
- the id of the object to be retrieveduserName
- DN of the user to be used as the requestortranObj
- transaction scope for the requestpublic BizObject getObject(java.lang.String objID, java.lang.String userName, TransactionObject tranObj)
public BizObject getObject(long objID, java.lang.String userName, TransactionObject tranObj, java.lang.String stType)
objID
- the id of the object to be retrieveduserName
- DN of the user to be used as the requestortranObj
- transaction scope for the requeststType
- type of entity being requested for - INSTANCE(object),TEMPLATE(template)public BizObject getObject(java.lang.String objID, java.lang.String userName, TransactionObject tranObj, java.lang.String stType)
public BizObject getObject(long objID, java.lang.String userName)
objID
- the id of the object to be retrieveduserName
- DN of the user to be used as the requestorpublic BizObject getObject(java.lang.String objID, java.lang.String userName)
public BizObject insertObject(long templateID, java.lang.String objectName, java.lang.String object, java.lang.String userName, TransactionObject transObj, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
templateID
- the Id of the templateobjectName
- name of the objectobject
- the content of the objectuserName
- DN of the user to be used as the requestortransObj
- transaction scope for the requestoOperationContext
- for transaction tracking, if new transaction "null" can be passedCOBOCInvalidInputException
RequestFailedException
java.lang.Exception
public BizObject insertObject(java.lang.String templateID, java.lang.String objectName, java.lang.String object, java.lang.String userName, TransactionObject transObj, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
COBOCInvalidInputException
RequestFailedException
java.lang.Exception
public BizObject insertObject(long templateID, long objectId, java.lang.String objectName, java.lang.String Object, java.lang.String userName, TransactionObject transObj, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
objectId
- id of the objecttemplateID
- the Id of the templateobjectName
- name of the objectuserName
- DN of the user to be used as the requestortransObj
- transaction scope for the requestoOperationContext
- for transaction tracking, if new transaction "null" can be passedCOBOCInvalidInputException
RequestFailedException
java.lang.Exception
public BizObject insertObject(java.lang.String templateID, java.lang.String objectId, java.lang.String objectName, java.lang.String Object, java.lang.String userName, TransactionObject transObj, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
COBOCInvalidInputException
RequestFailedException
java.lang.Exception
public BizObject updateObject(BizObject oldBizObj, BizObject newBizObj, TransactionObject transObj, java.lang.String userName, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
oldBizObj
- the old object to be updatednewBizObj
- the new objecttransObj
- transaction scope for the requestuserName
- DN of the user to be used as the requestoroOperationContext
- for transaction tracking, if new transaction "null" can be passedCOBOCInvalidInputException
RequestFailedException
java.lang.Exception
public BizObject deleteObject(BizObject oldObjMetaData, TransactionObject transObj, java.lang.String userName, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException
oldObjMetaData
- the object to be deletedtransObj
- transaction scope for the requestuserName
- DN of the user to be used as the requestoroOperationContext
- for transaction tracking, if new transaction "null" can be passedCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByUser(java.lang.String stOwnerName, java.lang.String orderByStr, int numRows, java.lang.String stUserName, int iCursor) throws COBOCInvalidInputException, RequestFailedException
stOwnerName
- DN of the owner of the objectsorderByStr
- the order clause for the query ( sql format)numRows
- the cursor sizestUserName
- DN of the user to be used as the requestoriCursor
- the cursor information( given in the last set of objects). if cursor is not made
zero"0" can be passedCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByOrganization(java.lang.String orgName, java.lang.String orderByStr, int cursorNode, java.lang.String owner) throws COBOCInvalidInputException, RequestFailedException
owner
must have CoBOC Admin roleorgName
- DN of the organizationorderByStr
- the order clause for the query ( sql format)cursorNode
- the cursor NOM Nodeowner
- DN of the user to be used as the requestorCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByFolderName(java.lang.String folderName, java.lang.String orderByStr, int numRows, java.lang.String userName, int iCursor) throws COBOCInvalidInputException, RequestFailedException
folderName
- the path of the folderorderByStr
- the order clause for the query ( sql format)numRows
- the cursor sizeuserName
- DN of the user to be used as the requestoriCursor
- the cursor information( given in the last set of objects). if cursor is not made
zero"0" can be passedCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByFolderID(long folderID, java.lang.String orderByStr, int numRows, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
userName
from the CoBOC,for a specific folder given its ID.folderID
- ID of the folderorderByStr
- the order clause for the query ( sql format)numRows
- the cursor sizeuserName
- DN of the user to be used as the requestorCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByFolderID(java.lang.String folderID, java.lang.String orderByStr, int numRows, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
COBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateName(java.lang.String templateName, java.lang.String orderByStr, int iCursor, java.lang.String userName, java.lang.String version) throws COBOCInvalidInputException, RequestFailedException
templateName
- path of templateorderByStr
- the order clause for the query ( sql format)iCursor
- the cursor information( given in the last set of objects). if cursor is not made
zero"0" can be passeduserName
- DN of the user to be used as the requestorversion
- The space(user/organization/isv) to get the objects fromCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateID(long templateID, java.lang.String orderByStr, int iCursor, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
templateID
- Id of the templateorderByStr
- the order clause for the query ( sql format)iCursor
- the cursor information( given in the last set of objects). if cursor is not made
zero"0" can be passeduserName
- DN of the user to be used as the requestorCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateID(java.lang.String templateID, java.lang.String orderByStr, int iCursor, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
COBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateID(long templateID, java.lang.String orderByStr, int iCursor, java.lang.String userName, java.lang.String version) throws COBOCInvalidInputException, RequestFailedException
templateID
- Id of the templateorderByStr
- the order clause for the query ( sql format)iCursor
- iCursor the cursor information( given in the last set of objects). if cursor is not made
zero"0" can be passeduserName
- DN of the user to be used as the requestorversion
- The space(user/organization/isv) to get the objects fromCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateID(java.lang.String templateID, java.lang.String orderByStr, int iCursor, java.lang.String userName, java.lang.String version) throws COBOCInvalidInputException, RequestFailedException
COBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateIDAndUSer(long templateID, java.lang.String orderByStr, int iCursor, java.lang.String userName, java.lang.String version) throws COBOCInvalidInputException, RequestFailedException
templateID
- orderByStr
- iCursor
- userName
- version
- COBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateIDAndUSer(java.lang.String templateID, java.lang.String orderByStr, int iCursor, java.lang.String userName, java.lang.String version) throws COBOCInvalidInputException, RequestFailedException
COBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectByTemplateOrganization(long templateID, java.lang.String orgDN, java.lang.String orderByStr, int iCursor, java.lang.String[] version) throws COBOCInvalidInputException, RequestFailedException
templateID
- is ID of templateorderByStr
- the order clause for the query ( sql format)iCursor
- the cursor information( given in the last set of objects). if cursor is not made
zero"0" can be passedorgDN
- DN of the Organization to be used as the requestorversion
- The space(user/organization/isv) to get the objects fromCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectByTemplateOrganization(java.lang.String templateID, java.lang.String orgDN, java.lang.String orderByStr, int iCursor, java.lang.String[] version) throws COBOCInvalidInputException, RequestFailedException
COBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByObjName(java.lang.String objName, java.lang.String orderByStr, int numRows, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
objName
- path of the objectorderByStr
- the order clause for the query ( sql format)numRows
- the cursor sizeuserName
- DN of the user to be used as the requestorCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getObjectsByTemplateNameAndVersion(java.lang.String templateName, float version, java.lang.String orderByStr, int numRows, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
templateName
- path of the templateversion
- version of the templateorderByStr
- the order clause for the query ( sql format)numRows
- the cursor sizeuserName
- DN of the user to be used as the requestorCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getTemplateLessObjects(java.lang.String orderByStr, int numRows, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
userName
must have CoBOC Admin roleorderByStr
- the order clause for the query ( sql format)numRows
- the cursor sizeuserName
- DN of the user to be used as the requestorCOBOCInvalidInputException
RequestFailedException
public ReadObjResponse getTempLessObjsByUser(java.lang.String uName, java.lang.String orderByStr, int rowCount, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
userName
or shared to him or one of his roles.uName
- DN of the user to be used as the requestororderByStr
- the order clause for the query ( sql format)rowCount
- the cursor sizeuserName
- DN of the owner of the objectsCOBOCInvalidInputException
RequestFailedException
public TransactionObject startTransaction(int timeOutUnit)
timeOutUnit
- the timeout period in secspublic int endTransaction(TransactionObject transObj)
transObj
- the transaction whose scope is being closedpublic int abortTransaction(TransactionObject transObj)
transObj
- the specific transaction which is to be aborted.public RefObject[] getObjectsByReference(long objectID, java.lang.String[] referencePattern, java.lang.String[] references, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
objectID
- Id the object to retrievedreferencePattern
- the reference pattern to find the referenced objectsreferences
- to identify the returned responsesuserName
- DN of the user to be used as the requestorCOBOCInvalidInputException
RequestFailedException
public RefObject[] getObjectsByReference(java.lang.String objectID, java.lang.String[] referencePattern, java.lang.String[] references, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
COBOCInvalidInputException
RequestFailedException
public BizObject[] getObjectByObjectNameTemplate(java.lang.String objectName, long templateID, java.lang.String orderByStr, java.lang.String userName)
objectName
with template templateID
objectName
- Name of the objecttemplateID
- ID of the templateorderByStr
- the order clause for the query ( sql format)userName
- DN of the user to be used as the requestorpublic BizObject[] getObjectByObjectNameTemplate(java.lang.String objectName, java.lang.String templateID, java.lang.String orderByStr, java.lang.String userName)
public boolean dropObjectFromCache(long objectID)
objectID
- ID of the objectpublic boolean dropObjectFromCache(java.lang.String objectID)
public ReadObjResponse getObjectsByAttribute(java.util.Vector vtok, java.lang.String templateName, java.lang.String version, boolean flag, int numRows, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
vtok
- condition tokens as given out by the RuleEngine.parseExpressiontemplateName
- path of the templateversion
- The space(user/organization/isv) to get the objects fromflag
- for backward compatibility( false )numRows
- the cursor sizeuserName
- DN of the owner of the objectsCOBOCInvalidInputException
RequestFailedException
java.lang.Exception
public ReadObjResponse getObjectsByAttribute(java.lang.String queryStr, java.lang.String version, boolean flag, int numRows, java.lang.String userName, java.lang.String stOrderBy, java.lang.String orderStr) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
templateName
.queryStr
- String of the form -- Get "templatepath" where "template-name.attribute-name" version
- The space(user/organization/isv) to get the objects fromflag
- for backward compatibility( false )numRows
- the cursor node userName
- DN of the user to be used as the requestorstOrderBy
- ORDERBY clause for the query (sql format)orderStr
- whether DESC/ASCCOBOCInvalidInputException
RequestFailedException
java.lang.Exception
public java.util.List getSubscribedSubjects(java.lang.String user) throws RequestFailedException
user
- DN of the user to be used as the requestorRequestFailedException
public int getTotalObjectsInCache()
public int getTotalObjectsInDB()
public void transactionTimeOut(TransactionObject bustedTransaction)
public boolean[] getTemplateInformation(java.lang.String stUserName, java.lang.String stTemplatePath)
public BizObject[] GetObjectsByQuery(java.lang.String stPlugInClass, java.lang.String stQuery)
stPlugInClass
- the class to which the query need to be sentstQuery
- query stringpublic BizObject[] GetCollection(int iReqDoc, java.lang.String stUserName) throws RequestFailedException, XMLException, java.io.UnsupportedEncodingException
iReqDoc
- refer to documentation for the formatstUserName
- DN of the user to be used as the requestorRequestFailedException
XMLException
java.io.UnsupportedEncodingException
public ReadObjResponse GetXMLObject(int iReqDoc, java.lang.String userName, TransactionObject transObj) throws COBOCInvalidInputException
iReqDoc
as argument.Refer to documentation for xml formatiReqDoc
- refer to documentation for the formatuserName
- DN of the user to be used as the requestortransObj
- transaction scope for the requestCOBOCInvalidInputException
public GetXMLObject getXMLObject()
public BizObject processInsertXMLObject(int iReqNode, java.lang.String userName, TransactionObject transObj) throws COBOCInvalidInputException, RequestFailedException, RuleEvalFailException, java.lang.Exception
iReqDoc
as argument.Refer to documentation for xml formatiReqNode
- refer to documentation for the formatuserName
- DN of the user to be used as the requestortransObj
- transaction scope for the requestCOBOCInvalidInputException
RequestFailedException
java.lang.Exception
RuleEvalFailException
public BizObject processDeleteXMLObject(int iReqNode, java.lang.String userName, TransactionObject transObj) throws COBOCInvalidInputException, RequestFailedException
iReqDoc
as argument.Refer to documentation for xml formatiReqNode
- refer to documentation for the formatuserName
- DN of the user to be used as the requestortransObj
- transaction scope for the requestCOBOCInvalidInputException
RequestFailedException
public BizObject processUpdateXMLObject(int iReqNode, java.lang.String userName, TransactionObject transObj) throws COBOCInvalidInputException, RequestFailedException, RuleEvalFailException, java.lang.Exception
iReqDoc
as argument.Refer to documentation for xml formatiReqNode
- refer to documentation for the formatuserName
- DN of the user to be used as the requestortransObj
- transaction scope for the requestCOBOCInvalidInputException
RequestFailedException
java.lang.Exception
RuleEvalFailException
public boolean isEntityExists(long lEntityId)
lEntityId
is present in CoBOClEntityId
- id of the entitypublic boolean isEntityExists(java.lang.String lEntityId)
public BizObject[] getTemplatesByOrganization(java.lang.String stOrg, int iCursor, java.lang.String stUserName) throws RequestFailedException
stOrg
- DN of the organisationiCursor
- the cursor information( given in the last set of objects). if cursor is not made
zero'0' can be passedstUserName
- DN of the user to be used as the requestorRequestFailedException
public BizObject[] getTemplatesByReference(java.lang.String stReference, int iCursor, java.lang.String userName)
public boolean enableHistoryLogByObject(java.lang.String stId, java.lang.String stLastModified, int iChange)
public void dropPlugInFromCache(java.lang.String stKey)
public java.lang.String getSchemaInstance(java.lang.String templateId, java.lang.String userName) throws RequestFailedException
templateId
- id of the templateuserName
- DN of the user to be used as the requestorRequestFailedException
public java.lang.String getSchemaInstance(java.lang.String key, java.lang.String version, java.lang.String userName) throws RequestFailedException
RequestFailedException
public boolean pushObject(BizObject object)
public void insertObject(BizObject bizObject, java.lang.String userName, TransactionObject transObj) throws COBOCInvalidInputException, RuleEvalFailException, RequestFailedException, java.lang.Exception
COBOCInvalidInputException
RuleEvalFailException
RequestFailedException
java.lang.Exception
public boolean isObjectExist(java.lang.String userDN, java.lang.String objectName, java.lang.String templatePath, java.lang.String objectVersion, int i) throws java.lang.Exception
userDN
- DN of the user to be used as requestorobjectName
- Name of the objecttemplatePath
- Path of the templatejava.lang.Exception
public boolean isObjectExist(java.lang.String userDN, java.lang.String objectName, long templateID, java.lang.String objectVersion)
userDN
- DN of the user to be used as requestorobjectName
- Name of the objecttemplateID
- ID of the templatepublic boolean isObjectExist(java.lang.String userDN, java.lang.String objectName, java.lang.String templateID, java.lang.String objectVersion)
public int move(java.lang.String stSourceKey, java.lang.String stDestinationKey, java.lang.String stUser, int iType, java.lang.String stVersion, java.lang.String stLastModified, TransactionObject transObject) throws COBOCInvalidInputException, java.lang.Exception
COBOCInvalidInputException
java.lang.Exception
public int move(java.lang.String stSourceKey, java.lang.String stDestinationKey, java.lang.String stUser, int iType, java.lang.String stVersion, java.lang.String stLastModified, TransactionObject transObject, boolean isFullPath) throws COBOCInvalidInputException, java.lang.Exception
COBOCInvalidInputException
java.lang.Exception
public int move(java.lang.String stSourceKey, java.lang.String stDestinationKey, java.lang.String stUser, int iType, java.lang.String stVersion, java.lang.String stLastModified, java.lang.String stTemplateFilter, TransactionObject transObject) throws COBOCInvalidInputException, java.lang.Exception
COBOCInvalidInputException
java.lang.Exception
public int move(java.lang.String stSourceKey, java.lang.String stDestinationKey, java.lang.String stUser, int iType, java.lang.String stVersion, java.lang.String stLastModified, java.lang.String stTemplateFilter, TransactionObject transObject, boolean isFullPath) throws COBOCInvalidInputException, java.lang.Exception
COBOCInvalidInputException
java.lang.Exception
public com.cordys.cpc.coboc.repository.persistance.MoveObject getMoveObject()
public int getUndeletedNodesInMapperDocument(boolean printNodes)
public void setCurrentProcessor(java.lang.String processor)
processor
- DN which uses CoBOC in embedded mode.public java.lang.String getDBError(TransactionObject transObj)
public int getTemplateDependents(int reqDoc, TransactionObject oTransObj, java.lang.String userName) throws COBOCInvalidInputException, RequestFailedException
COBOCInvalidInputException
RequestFailedException
public BizObject updateObjectEx(BizObject oldBizObj, BizObject newBizObj, TransactionObject transObj, java.lang.String userName, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
COBOCInvalidInputException
RequestFailedException
java.lang.Exception
public BizObject deleteObjectEx(BizObject oldObjMetaData, TransactionObject transObj, java.lang.String userName, OperationContext oOperationContext) throws COBOCInvalidInputException, RequestFailedException, java.lang.Exception
COBOCInvalidInputException
RequestFailedException
java.lang.Exception
public void setProblemMonitor(CobocProblemMonitor problemMonitor)
public CobocProblemMonitor initializeProblemMonitor()
public void setProcessor(Processor oProcessor)
public IVolatileSchedulerEngine getScheduleManager()
public Processor getProcessor()
public static IManagedComponent retrieveManagedComponent()
public static IProblemDefinition retrieveProblemDefinition()
public TargetEntity copy(CopyInformation obSourceEntity, TransactionObject obTransaction) throws COBOCInvalidInputException, java.lang.Exception
COBOCInvalidInputException
java.lang.Exception