|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.services.OnlineServices
public class OnlineServices
The online services class holds all online service for a specific module. This class is populated by the module class. A specialized class loader is capable of detecting custom made server classes. Based on this information this class gets populated.
DcModule.getOnlineServices()
,
ServiceClassLoader
Constructor Summary | |
---|---|
OnlineServices(int module)
Create an instance for the specified module. |
Method Summary | |
---|---|
void |
addServer(IServer server)
Add a server |
Region |
getDefaultRegion()
Retrieves the previously used region. |
SearchMode |
getDefaultSearchMode()
Retrieves the previously used search mode. |
IServer |
getDefaultServer()
Retrieves the previously used server. |
SearchMode |
getMode(DcObject dco)
Retrieves the selected search mode used when the information of the supplied item was retrieved. |
int |
getModule()
The module to which the services belong |
java.lang.String |
getQuery(DcObject dco)
Retrieves the query used for updating or retrieving the item. |
Region |
getRegion(DcObject dco)
Retrieves the region from which the information of the supplied item was retrieved. |
IServer |
getServer(DcObject dco)
Retrieves the service from which the information of the supplied item was retrieved. |
IServer |
getServer(java.lang.String name)
Retrieves the server with the given name. |
java.util.Collection<IServer> |
getServers()
Retrieves all registered servers. |
OnlineSearchForm |
getUI(DcObject dco,
ItemForm itemForm,
boolean advanced)
Returns an instance of the online search form. |
DcObject |
query(DcObject dco)
Retrieves an item (a new instance!) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OnlineServices(int module)
module
- Method Detail |
---|
public java.util.Collection<IServer> getServers()
public void addServer(IServer server)
server
- public int getModule()
public IServer getServer(DcObject dco)
dco
-
DcObject._SYS_SERVICE
,
DcObject._SYS_SERVICEURL
public Region getRegion(DcObject dco)
dco
-
DcObject._SYS_SERVICE
,
DcObject._SYS_SERVICEURL
public SearchMode getMode(DcObject dco)
dco
-
SearchMode
public java.lang.String getQuery(DcObject dco)
dco
-
DcObject._SYS_SERVICE
,
DcObject._SYS_SERVICEURL
public Region getDefaultRegion()
Region
public IServer getDefaultServer()
IServer
public SearchMode getDefaultSearchMode()
SearchMode
public IServer getServer(java.lang.String name)
IServer
public DcObject query(DcObject dco) throws java.lang.Exception
dco
- The item on which the search is based.
java.lang.Exception
public OnlineSearchForm getUI(DcObject dco, ItemForm itemForm, boolean advanced)
OnlineSearchForm
class.
dco
- The item to be updated or null when searching for new items only.itemForm
- The item form from which the search is started or nulladvanced
- Indicates if the advanced options should be shown.OnlineSearchForm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |