public class InterfaceA_EnvironmentBasedClient extends Interface_Client
Constructor and Description |
---|
InterfaceA_EnvironmentBasedClient(java.lang.String backEndURIStr)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addClientAccount(java.lang.String name,
java.lang.String password,
java.lang.String documentation,
java.lang.String sessionHandle)
Creates a new user inside the engine.
|
java.lang.String |
addClientAccount(YExternalClient client,
java.lang.String sessionHandle) |
java.lang.String |
addYAWLService(YAWLServiceReference service,
java.lang.String sessionHandle)
Registers a new custom YAWL service woth the engine.
|
java.lang.String |
changePassword(java.lang.String password,
java.lang.String sessionHandle)
Change the password of a service or client account on the engine, the account
being the owner of the session handle.
|
java.lang.String |
checkConnection(java.lang.String sessionHandle)
Checks that a session handle is active
|
java.lang.String |
connect(java.lang.String userID,
java.lang.String password)
Creates a user session with the engine.
|
java.lang.String |
demote(java.lang.String sessionHandle) |
java.lang.String |
disconnect(java.lang.String handle)
Disconnects an external entity from the engine
|
java.lang.String |
getBackEndURI() |
java.lang.String |
getBuildProperties(java.lang.String sessionHandle) |
YExternalClient |
getClientAccount(java.lang.String userID,
java.lang.String sessionHandle) |
java.util.Set<YExternalClient> |
getClientAccounts(java.lang.String sessionHandle)
Gets all the client accounts registered in the engine
|
java.lang.String |
getExternalDBGateways(java.lang.String sessionHandle) |
java.lang.String |
getHibernateStatistics(java.lang.String sessionHandle) |
java.lang.String |
getPassword(java.lang.String userid,
java.lang.String sessionHandle) |
java.util.Set<YAWLServiceReference> |
getRegisteredYAWLServices(java.lang.String sessionHandle)
Returns a list of YAWL service objects registered with the engine.
|
java.lang.String |
getRegisteredYAWLServicesAsXML(java.lang.String sessionHandle)
Returns an XML string list of YAWL services registered with the engine.
|
YAWLServiceReference |
getYAWLService(java.lang.String serviceURI,
java.lang.String sessionHandle) |
java.lang.String |
isHibernateStatisticsEnabled(java.lang.String sessionHandle) |
java.lang.String |
promote(java.lang.String sessionHandle) |
java.lang.String |
removeClientAccount(java.lang.String name,
java.lang.String sessionHandle)
Delete an external client account
PREcondition: cannot delete self
|
java.lang.String |
removeYAWLService(java.lang.String serviceURI,
java.lang.String sessionHandle)
Removes a YAWL service from the engine.
|
java.lang.String |
setHibernateStatisticsEnabled(boolean enabled,
java.lang.String sessionHandle) |
java.lang.String |
unloadSpecification(java.lang.String specID,
java.lang.String sessionHandle)
Deprecated.
superceded by unloadSpecification(YSpecificationID, String) - this
version is appropriate for pre-2.0 schema-based specs only
|
java.lang.String |
unloadSpecification(YSpecificationID specID,
java.lang.String sessionHandle)
Unloads a loaded specification from the engine
|
java.lang.String |
updateClientAccount(java.lang.String name,
java.lang.String password,
java.lang.String documentation,
java.lang.String sessionHandle) |
java.lang.String |
uploadSpecification(java.io.File file,
java.lang.String sessionHandle)
Uploads a specification into the engine.
|
java.lang.String |
uploadSpecification(java.lang.String specification,
java.lang.String sessionHandle)
Uploads a specification into the engine.
|
java.lang.String |
uploadSpecification(java.lang.String specification,
java.lang.String filename,
java.lang.String sessionHandle)
Deprecated.
use uploadSpecification(String, String) instead (since 2.0)
|
executeGet, executePost, getReply, initPostConnection, prepareParamMap, send, setReadTimeout, stripOuterElement, successful
public InterfaceA_EnvironmentBasedClient(java.lang.String backEndURIStr)
backEndURIStr
- the back end uri of where to find
the engine. In a default deployment, this value is
"http://localhost:8080/yawl/ia" but it can be changed.public java.lang.String getBackEndURI()
public java.lang.String connect(java.lang.String userID, java.lang.String password) throws java.io.IOException
userID
- a valid user IDpassword
- a valid passwordjava.io.IOException
- if there's a problem connecting to the enginepublic java.lang.String checkConnection(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- the handle to checkjava.io.IOException
- if there's a problem connecting to the enginepublic java.lang.String disconnect(java.lang.String handle) throws java.io.IOException
handle
- the sessionHandle to disconnectjava.io.IOException
- if the engine can't be reachedpublic java.lang.String addYAWLService(YAWLServiceReference service, java.lang.String sessionHandle) throws java.io.IOException
service
- the service.sessionHandle
- a valid sessionhandlejava.io.IOException
- if something goes awry.public java.lang.String removeYAWLService(java.lang.String serviceURI, java.lang.String sessionHandle) throws java.io.IOException
serviceURI
- the service URI.sessionHandle
- a valid sessionhandle.java.io.IOException
- if bad connection.public YAWLServiceReference getYAWLService(java.lang.String serviceURI, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.util.Set<YAWLServiceReference> getRegisteredYAWLServices(java.lang.String sessionHandle)
sessionHandle
- a valid session handlepublic java.lang.String getRegisteredYAWLServicesAsXML(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- an active handlejava.io.IOException
- if there's a problem connecting to the enginepublic java.lang.String uploadSpecification(java.lang.String specification, java.lang.String sessionHandle) throws java.io.IOException
specification
- this is *not* a file name, this is the entire specification
xml file in string format.sessionHandle
- a sessionhandle.java.io.IOException
- if bad connection.public java.lang.String uploadSpecification(java.lang.String specification, java.lang.String filename, java.lang.String sessionHandle) throws java.io.IOException
specification
- this is *not* a file name, this is the entire specification
xml file in string format.filename
- the file name of the specification xml file (no longer used since 2.0)sessionHandle
- a sessionhandle.java.io.IOException
- if bad connection.public java.lang.String uploadSpecification(java.io.File file, java.lang.String sessionHandle) throws java.io.IOException
file
- the file name of the specification xml filesessionHandle
- a sessionhandle.java.io.IOException
- if bad connection.public java.lang.String unloadSpecification(java.lang.String specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the id of the specification to unloadsessionHandle
- a sessionhandle.java.io.IOException
- if bad connection.public java.lang.String unloadSpecification(YSpecificationID specID, java.lang.String sessionHandle) throws java.io.IOException
specID
- the id of the specification to unloadsessionHandle
- a sessionhandle.java.io.IOException
- if bad connection.public java.lang.String addClientAccount(java.lang.String name, java.lang.String password, java.lang.String documentation, java.lang.String sessionHandle) throws java.io.IOException
name
- the new usernamepassword
- the new passworddocumentation
- some descriptive text about the accountsessionHandle
- a current valid sessionhandlejava.io.IOException
- if bad connection.public java.lang.String addClientAccount(YExternalClient client, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String updateClientAccount(java.lang.String name, java.lang.String password, java.lang.String documentation, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.util.Set<YExternalClient> getClientAccounts(java.lang.String sessionHandle) throws java.io.IOException
sessionHandle
- a current valid sessionhandle of an admin type user.java.io.IOException
- if bad connection.public YExternalClient getClientAccount(java.lang.String userID, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String removeClientAccount(java.lang.String name, java.lang.String sessionHandle) throws java.io.IOException
name
- the user to deletesessionHandle
- an active handlejava.io.IOException
- if there's a problem connecting to the enginepublic java.lang.String changePassword(java.lang.String password, java.lang.String sessionHandle) throws java.io.IOException
password
- the new passwordsessionHandle
- an active handlejava.io.IOException
- if there's a problem connecting to the enginepublic java.lang.String getPassword(java.lang.String userid, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String getBuildProperties(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String getExternalDBGateways(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String setHibernateStatisticsEnabled(boolean enabled, java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String isHibernateStatisticsEnabled(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String getHibernateStatistics(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String promote(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
public java.lang.String demote(java.lang.String sessionHandle) throws java.io.IOException
java.io.IOException
Copyright © 2004-2014 The YAWL Foundation.