|
Cool documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
interface ServiceFacade is the central entry point for the GCP User (Generic Client Proxy).
Beside the entry point function, there are the following main tasks:
ServiceModule instances
ServiceManager
| Method Summary | |
boolean |
check()
Checks if the current backend transaction is in a state, where it can be committed using the save() method without error. |
void |
cleanup()
Performs a rollback on the current backend transaction. |
void |
closeConnection()
Closes the connection to the backend server. |
void |
flush()
Flushes the service queue, which is associated with this instance. |
IMessageList |
getAllMessages()
Returns a list of all messages currently held by the frontend message handler. |
IMessageList |
getAndClearSystemMessages()
Returns the list with all system messages held by the frontend message handler and removes them at the same time. |
IMessageList |
getMessages()
Deprecated. use getAndClearSystemMessages()instead |
IServiceModule |
getServiceModule(java.lang.String serviceModuleName)
returns the ServiceModule with given name or throws an
IllegalArgumentException, if serviceModuleName is no existing ServiceModule |
IServiceModule |
getServiceModule(java.lang.String serviceModuleName,
java.lang.String configuration)
returns the ServiceModule with given name to the given configuration or throws an
IllegalArgumentException, if serviceModuleName is no existing ServiceModule or configuration is no valid
configuration |
java.lang.String[] |
getServiceModuleConfigurationNames(java.lang.String serviceModuleName)
returns an array with all configuration names for the ServiceModule with given name |
IServiceModuleDescriptor |
getServiceModuleDescriptor(java.lang.String serviceModuleName)
returns the meta data of the ServiceModule with given name. |
IServiceModuleDescriptor |
getServiceModuleDescriptor(java.lang.String serviceModuleName,
java.lang.String configuration)
returns the meta data of the ServiceModule with given name to the given configuration. |
java.lang.String[] |
getServiceModuleNames()
returns an array with all ServiceModule names |
void |
initLocalLogging()
Init local Logging in the GCP. |
boolean |
isDirty()
returns true if changing calls (insert, update, delete, Action) are pending or not commited, or
false otherwise. |
void |
resetLockCache()
resets the local Lock cache. |
boolean |
save()
Performs a commit on the current backend transaction. |
void |
setDebug(boolean enabled,
java.lang.String serviceModuleName,
java.lang.String guiHost)
Enables or disables backend debugging. |
| Method Detail |
public IServiceModule getServiceModule(java.lang.String serviceModuleName)
ServiceModule with given name or throws an
IllegalArgumentException, if serviceModuleName is no existing ServiceModuleserviceModuleName - the name of the service module
public IServiceModule getServiceModule(java.lang.String serviceModuleName,
java.lang.String configuration)
ServiceModule with given name to the given configuration or throws an
IllegalArgumentException, if serviceModuleName is no existing ServiceModule or configuration is no valid
configurationserviceModuleName - the name of the service moduleconfiguration - the name of a predefined ServiceModule configurationpublic IServiceModuleDescriptor getServiceModuleDescriptor(java.lang.String serviceModuleName)
ServiceModule with given name.serviceModuleName - the name of the ServiceModuleDescriptor to getServiceModule with given name
public IServiceModuleDescriptor getServiceModuleDescriptor(java.lang.String serviceModuleName,
java.lang.String configuration)
ServiceModule with given name to the given configuration.serviceModuleName - the name of the ServiceModuleDescriptor to getconfiguration - the name of a predefined ServiceModule configurationServiceModule with given namepublic java.lang.String[] getServiceModuleNames()
public java.lang.String[] getServiceModuleConfigurationNames(java.lang.String serviceModuleName)
serviceModuleName - the name of the ServiceModulepublic void flush()
instance.
Before flushing the queue all pending changes of the different ServiceModules are
appended to the queue. After flushing the queue, all ServiceModules will update
their data correspondingly.public boolean isDirty()
true if changing calls (insert, update, delete, Action) are pending or not commited, or
false otherwise. The method first puts all pending changes in the service queue (sendChanges())
and then returns the result.true if changing calls (insert, update, delete, Action) are pending or not commited, or
false otherwisepublic IMessageList getMessages()
getAndClearSystemMessages()instead
IAspect.getMessages().
Message lists must be cleared explicitly.public IMessageList getAndClearSystemMessages()
IAspect.getMessages().public IMessageList getAllMessages()
public void cleanup()
public boolean save()
resetLockCache()
true, if the save operation succeeded, false if it was rejected,public boolean check()
save() method without error.
The check is performed in the backend.save()public void resetLockCache()
public void setDebug(boolean enabled,
java.lang.String serviceModuleName,
java.lang.String guiHost)
enabled - if set to true, the debugging is switched on,
otherwise debugging is switched off.serviceModuleName - name of the service module to be debugged
or NULL for all service modules.guiHost - the host name of the computer where the GUI should run
or NULL for the default computer.public void initLocalLogging()
public void closeConnection()
|
Cool documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||