public class SystemService
extends java.lang.Object
| Constructor and Description |
|---|
SystemService() |
| Modifier and Type | Method and Description |
|---|---|
long |
convertFromReadableTime(java.lang.String time)
Converts the given date/time to the number of milliseconds since midnight, January 1, 1970 UTC.
|
java.lang.String |
convertToReadableTime(long time)
Converts the given time (number of milliseconds since midnight, January 1, 1970 UTC) into
a human-readable string representation.
|
java.lang.String |
getRepositoryInstanceID(java.lang.String sessionId)
Retrieves the repository instance ID that was defined when the repository was created.
|
boolean |
keepAlive(java.lang.String sessionId)
Keep session alive
|
java.lang.String |
logonUser(java.lang.String username,
java.lang.String plainPwd)
Logs on with a given username and password.
|
public java.lang.String logonUser(java.lang.String username,
java.lang.String plainPwd)
throws WSFaultException
username - the login usernameplainPwd - the password of the specified usernameWSFaultException - if logon failspublic java.lang.String convertToReadableTime(long time)
time - The time to convert (specified in milliseconds since midnight, January 1, 1970 UTC).public long convertFromReadableTime(java.lang.String time)
time - Date/time to be converted (based on UTC!) using the format "YYYY-MM-DD HH:MM:SS.MMM"public java.lang.String getRepositoryInstanceID(java.lang.String sessionId)
throws WSFaultException
sessionId - the web-service token, generated in the Silk Central UI, or the unique ID of the session created with logonUser(String, String)WSFaultException - if an error occurred.public boolean keepAlive(java.lang.String sessionId)
throws WSFaultException
sessionId - the unique ID of the session created with logonUser(String, String)WSFaultExceptionCopyright © Micro Focus 2004-2019. All rights reserved.