com.infoengine.doorsadapter
Class DoorsJNIlink
java.lang.Object
com.infoengine.doorsadapter.DoorsJNIlink
- public class DoorsJNIlink
- extends Object
Method Summary |
int |
APIinitialize(String hostname,
int portno,
boolean verbose,
String logFile,
int times_to_retry,
boolean debug)
|
void |
DeleteImageFile(String filePath)
|
byte[] |
DoorsBulkProcess(String ObjectList,
String Attributes,
int Links,
boolean Images,
String UserName)
Function DoorsBulkProcess (char *ObjectList ,char *Attributes,int Links, bool Images,char *UserName);
ObjectList - comma delimited list of object IDs to process
Attributes - comma delimited list of attributes to retrieve
Images - true to turn image processing on
UserName - Name to determine access
Status - status code, less than zero indicates failure
Return - "ID=\bModule ID=\bType=(Text,Picture,OLE)\bImage Path=\bLinks=(OUT:id,IN:id)\bAccess=(READ,EDIT)\b
Attribute Name=\bAttribute Name=\b\b" |
byte[] |
DoorsQuery(String containerID,
String moduleID,
String query,
String attributes,
boolean images,
String userid)
|
String |
DoorsQuickSearch(String ContainerID,
String Module,
String Query,
String UserName)
Function DoorsQuickSearch (char *ContainerID,char *Module,char *Query,char *UserName);
ContainerID - unique identifier of Project or Folder to start search
Module - unique identifier of Module or expression to search on i.e. |
byte[] |
GetChangeProposal(String ObjectID,
String dbuser)
|
byte[] |
GetDoorsObject(String ObjectID,
String Attributes,
boolean Modify,
String dbuser)
|
byte[] |
GetDoorsStructure(String ItemID,
int level,
boolean folder,
boolean project,
boolean module,
String userid)
|
String |
GetImageFile(String objectID,
String userid)
|
byte[] |
GetModuleStructure(String moduleIDs,
String objectID,
int stopLevel,
boolean text,
boolean pic,
boolean ole,
String attributes,
String userid)
|
int |
GetObjectAccess(String ObjectID,
String dbuser)
|
byte[] |
GetObjectLinks(String ObjectID,
int LinkDirection,
int StopLevel,
String Attributes,
boolean Modify,
String dbuser)
|
void |
getResponse(byte[] myarray,
Group groupOut)
|
void |
getResponse(String resultBuf,
Group groupOut)
|
void |
initializeBulkProcessor(String hostName,
int portNumber)
Function initializeBulkProcessor (char *hostName , int portNumber );
ServerName - host server name or IP address
PortNumber - dedicated port to call server
Status - status code, less than zero indicates failure
Return - null or error message |
void |
initializeQuickSearch(String hostName,
int portNumber)
Function initializeQuickSearch (char *hostName , int portNumber ,
ServerName - host server name or IP address
PortNumber - dedicated port to call server
Status - status code, less than zero indicates failure
Return - null or error message |
void |
logWrite(Object X)
|
byte[] |
QueryChangeProposal(String ObjectID,
String Author,
String Query,
String dbuser)
|
int |
setByteSize(int size)
|
void |
SetChangeProposalNotification(String ObjectID,
String EmailList,
int Action,
String dbuser)
|
void |
SetObjectAttribute(String ObjectID,
String AttrName,
String AttrValue,
String dbuser)
|
void |
SetObjectNotification(String ObjectID,
String EmailList,
int Action,
String dbuser)
|
byte[] |
SubmitChangeProposal(String ObjectID,
String ChangeType,
String Priority,
String Reason,
String Attributes,
String dbuser)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteSize
public int ByteSize
logWriter
public static com.infoengine.log.LogWriter logWriter
DEBUG
public static boolean DEBUG
TIMES_TO_RETRY
public static int TIMES_TO_RETRY
DEBUG1
private static boolean DEBUG1
DoorsJNIlink
public DoorsJNIlink()
APIinitialize
public int APIinitialize(String hostname,
int portno,
boolean verbose,
String logFile,
int times_to_retry,
boolean debug)
GetDoorsStructure
public byte[] GetDoorsStructure(String ItemID,
int level,
boolean folder,
boolean project,
boolean module,
String userid)
GetModuleStructure
public byte[] GetModuleStructure(String moduleIDs,
String objectID,
int stopLevel,
boolean text,
boolean pic,
boolean ole,
String attributes,
String userid)
GetDoorsObject
public byte[] GetDoorsObject(String ObjectID,
String Attributes,
boolean Modify,
String dbuser)
GetObjectAccess
public int GetObjectAccess(String ObjectID,
String dbuser)
GetObjectLinks
public byte[] GetObjectLinks(String ObjectID,
int LinkDirection,
int StopLevel,
String Attributes,
boolean Modify,
String dbuser)
GetImageFile
public String GetImageFile(String objectID,
String userid)
DoorsQuery
public byte[] DoorsQuery(String containerID,
String moduleID,
String query,
String attributes,
boolean images,
String userid)
SetObjectAttribute
public void SetObjectAttribute(String ObjectID,
String AttrName,
String AttrValue,
String dbuser)
SetObjectNotification
public void SetObjectNotification(String ObjectID,
String EmailList,
int Action,
String dbuser)
SubmitChangeProposal
public byte[] SubmitChangeProposal(String ObjectID,
String ChangeType,
String Priority,
String Reason,
String Attributes,
String dbuser)
SetChangeProposalNotification
public void SetChangeProposalNotification(String ObjectID,
String EmailList,
int Action,
String dbuser)
GetChangeProposal
public byte[] GetChangeProposal(String ObjectID,
String dbuser)
QueryChangeProposal
public byte[] QueryChangeProposal(String ObjectID,
String Author,
String Query,
String dbuser)
DeleteImageFile
public void DeleteImageFile(String filePath)
initializeQuickSearch
public void initializeQuickSearch(String hostName,
int portNumber)
- Function initializeQuickSearch (char *hostName , int portNumber ,
ServerName - host server name or IP address
PortNumber - dedicated port to call server
Status - status code, less than zero indicates failure
Return - null or error message
DoorsQuickSearch
public String DoorsQuickSearch(String ContainerID,
String Module,
String Query,
String UserName)
- Function DoorsQuickSearch (char *ContainerID,char *Module,char *Query,char *UserName);
ContainerID - unique identifier of Project or Folder to start search
Module - unique identifier of Module or expression to search on i.e. "0000086" or (*Engine*)
Query - expression to search on i.e. "contains (\"shall\",true) || attribute (\"cost\" > \"100.0\")"
UserName - Name to determine access
Status - status code, less than zero indicates failure
Return - "000000229-13,00000227-21,00000224-123,00000228-1"
initializeBulkProcessor
public void initializeBulkProcessor(String hostName,
int portNumber)
- Function initializeBulkProcessor (char *hostName , int portNumber );
ServerName - host server name or IP address
PortNumber - dedicated port to call server
Status - status code, less than zero indicates failure
Return - null or error message
DoorsBulkProcess
public byte[] DoorsBulkProcess(String ObjectList,
String Attributes,
int Links,
boolean Images,
String UserName)
- Function DoorsBulkProcess (char *ObjectList ,char *Attributes,int Links, bool Images,char *UserName);
ObjectList - comma delimited list of object IDs to process
Attributes - comma delimited list of attributes to retrieve
Images - true to turn image processing on
UserName - Name to determine access
Status - status code, less than zero indicates failure
Return - "ID=\bModule ID=\bType=(Text,Picture,OLE)\bImage Path=\bLinks=(OUT:id,IN:id)\bAccess=(READ,EDIT)\b
Attribute Name=\bAttribute Name=\b\b"
setByteSize
public int setByteSize(int size)
logWrite
public void logWrite(Object X)
getResponse
public void getResponse(String resultBuf,
Group groupOut)
getResponse
public void getResponse(byte[] myarray,
Group groupOut)