public class DefaultCometService extends Object implements CometService
COMET_NS| Constructor and Description |
|---|
DefaultCometService() |
| Modifier and Type | Method and Description |
|---|---|
AutocometGetNextHotfolderResult |
autocometGetNextHotfolder(String sessionId,
String program,
String client,
int status,
int id)
Returns the next hotfolder that AutoComet shall observe for AutoCometJobs
|
AutocometGetNextJobResult |
autocometGetNextJob(String sessionId,
String program,
String client,
int status)
Returns the next AutoCometJob
|
AutocometSetDoneResult |
autocometSetDone(String sessionId,
int id,
int status,
Date starttime,
Date endtime,
int exitValue)
Reports the end of the execution of an AutoCometJob
|
AutocometSetStartResult |
autocometSetStart(String sessionId,
int id,
Date starttime,
int status,
String client)
Reports the execution start of an AutoCometJob
|
AutocometSetStatusResult |
autocometSetStatus(String sessionId,
int id,
int status)
Sets the current status of an AutoCometJob
|
CallResult |
call(String sessionId,
String method,
String args)
Returns any kind of information, depending on the "arg" argument.
|
GetBinaryFileResult |
getBinaryFile(String sessionId,
String fileId)
Returns a media that contains the requested file
|
protected CometResultMessageTools |
getCometResultMessageTools() |
GetElementListResult |
getElementList(String sessionId,
String method,
String args)
Returns an Array of CometElements that represent the content of an element list (recurring elements)
|
GetListResult |
getList(String sessionId,
String method,
String args)
Returns a GetListResult (contains a 2-dimensional String array) that can be used for different purposes.
|
Message |
getMessage(String sessionId,
int messageCode)
Returns a (localized) (error)message for the given error code
|
GetProductListResult |
getProductList(String sessionId,
CometCondition[] conditions,
CometCondition[] parentConditions) |
protected PublicationController |
getPublicationController()
Returns the IPublicationController that is specified in the CometConfiguration of the active Publication
|
LoginResult |
login(String login,
String passwd,
String client,
String language)
Logs in a Werk II Comet session
|
LogoutResult |
logout(String sessionId)
Logs out a Werk II Comet session
|
PutBinaryFileResult |
putBinaryFile(String sessionId,
String fileId,
CometBinary file)
Stores the content of the given file
|
SetLanguageResult |
setLanguage(String sessionId,
String language)
Sets the language for the current Werk II Comet session
|
public LoginResult login(String login, String passwd, String client, String language)
login in interface CometServicelogin - The user name for which to do the loginpasswd - The user's passwordclient - The client that should be used in the new sessionlanguage - The language that should be used in the new sessionpublic LogoutResult logout(String sessionId)
logout in interface CometServicesessionId - The session ID that shall be closedpublic SetLanguageResult setLanguage(String sessionId, String language)
setLanguage in interface CometServicesessionId - The session ID for which to change the languagelanguage - The ISO code of the language to usepublic CallResult call(String sessionId, String method, String args)
call in interface CometServicepublic Message getMessage(String sessionId, int messageCode)
getMessage in interface CometServicesessionId - The session ID in which's context to get the (localized) messagemessageCode - The code for which to get the respective messagepublic GetProductListResult getProductList(String sessionId, CometCondition[] conditions, CometCondition[] parentConditions)
getProductList in interface CometServicepublic GetBinaryFileResult getBinaryFile(String sessionId, String fileId)
getBinaryFile in interface CometServicesessionId - The session ID for which to get the specified filefileId - The file name for which to get the contentpublic PutBinaryFileResult putBinaryFile(String sessionId, String fileId, CometBinary file)
putBinaryFile in interface CometServicesessionId - The session ID to use while storing the file contentfileId - The filename of related contentfile - The content that shall be storedpublic GetElementListResult getElementList(String sessionId, String method, String args)
getElementList in interface CometServicesessionId - The session ID in which's context to get the element listmethod - The method name or type for which to get the list of elementsargs - The search/request parameterspublic GetListResult getList(String sessionId, String method, String args)
getList in interface CometServicesessionId - The session ID in which's context to get the listmethod - The method name or type for which to get a listargs - The search/request parameterspublic AutocometGetNextJobResult autocometGetNextJob(String sessionId, String program, String client, int status)
autocometGetNextJob in interface CometServicesessionId - The session ID in which's context to get the next AutoCometJobprogram - Unused (TODO: what is this?)client - Unused (The client in which's context the next AutoCometJob shall be searched)status - Unused (TODO: what is this?)public AutocometSetStartResult autocometSetStart(String sessionId, int id, Date starttime, int status, String client)
autocometSetStart in interface CometServicesessionId - The session ID in which's context to start the AutoCometJobid - The ID of the AutoCometJob that's execution has startedstarttime - The time, when the execution has startedstatus - The AutoCometJob's current statusclient - Unused (The client in which's context the AutoCometJob's execution has started)public AutocometSetStatusResult autocometSetStatus(String sessionId, int id, int status)
autocometSetStatus in interface CometServicesessionId - The session ID in which's context to set the status to an AutoCometJobid - The ID of the AutoCometJob that's status becomes reportedstatus - The AutoCometJob's current statuspublic AutocometSetDoneResult autocometSetDone(String sessionId, int id, int status, Date starttime, Date endtime, int exitValue)
autocometSetDone in interface CometServicesessionId - The session ID in which's context to set the status of an AutoCometJob to doneid - The ID of the AutoCometJob that's execution has endedstatus - The AutoCometJob's current statusstarttime - The time, when the execution has startedendtime - The time, when the execution has endedexitValue - The result codepublic AutocometGetNextHotfolderResult autocometGetNextHotfolder(String sessionId, String program, String client, int status, int id)
autocometGetNextHotfolder in interface CometServicesessionId - The session ID in which's context to get next HotFoldersprogram - Unused (TODO: what is this?)client - Unused (The client in which's context the next hotfolder shall be searched)status - Unused (TODO: what is this?)id - Unused (TODO: what is this?)protected PublicationController getPublicationController()
protected CometResultMessageTools getCometResultMessageTools()
Copyright © 2017 SAP SE. All Rights Reserved.