|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bigllc.retsiq.simpleclient.RETSUserSession
public class RETSUserSession
A user session for an authenticated user. The session allows interaction with the RETS Server such as searches, updates and object retrieval.
To create a RETSUserSession use the a RETSConnection class to configure the server and authenticate a user.
RETSConnection connection = new RETSConnection("http://myretserver.com");
RETSUserSession session = connection.getSession("username", "password");
session.logout();
The RETS GetObject transaction calls take object path identifiers
in the format
/<Resource>/<ObjectType>/<RecordId>:(*|ObjectId-List)[,<RecordId>:(*|ObjectId-List),...].
Resource is the RETS resource system name, ObjectType
is the object type name, and RecordID is the key field value of
the record for which objects are being retrieved and is followed by either
a wildcard (*) or a list of integer object identifiers specifying the
objects that are to be retrieved.
Examples of object paths:
/Property/Photo/123456:*: all objects for a record/Property/Photo/123456:0: the default object for a record/Property/Photo/123456:1:2:3: object 1 2 and 3 for a single record/Property/Photo/123456:*,123457:*: all objects for two recordsFor GetObject methods with the suffix byUID,
the object path format is of the format
/<Resource>/<ObjectType>/<UID>[,<UID>,...]
where the UID specifies specific objects to retrieve.
Examples of UID object paths:
/Property/Photo/100000/Property/Photo/100000,100001,200101The RETS PostObject transaction calls (add/delete/replace object) take
object paths that specify the record ID only, passing the object identifier
to operate on as a separate method paramater. That is, the
:(*|ObjectId-List) component present in GetObject paths
is omitted from the path, and only a single integer object identifier
is passed to the method. UID paths are specified in the same manner as
Get Object paths, but only a single UID is permitted in the last
path component.
| Nested Class Summary | |
|---|---|
static class |
RETSUserSession.MetadataLevel
Enumerated type for determining the level of metadata to load. |
| Field Summary | |
|---|---|
static int |
NO_LIMIT
Magic number for notifying the server that the search limit should be overridden. |
static int |
VALIDATEFLAG_AUTOPOP
Magic number for sending an update to auto populate the record. |
static int |
VALIDATEFLAG_UPDATE
Magic number for sending an update that will be written to database if valid. |
static int |
VALIDATEFLAG_VALIDATE
Magic number for sending an update to validate but no write the record. |
| Method Summary | |
|---|---|
void |
action()
Action request. |
PostObjectResponse |
addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
Add an object for a record. |
PostObjectResponse |
addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
Add an object for a record. |
PostObjectResponse |
addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
This version of addObject() explicitly takes an content stream, content length, and content type. |
PostObjectResponse |
addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
This version of addObject() explicitly takes an content stream, content length, and content type. |
PostObjectResponse |
addObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
Add an object for a record. |
PostObjectResponse |
addObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
Add an object for a record. |
PostObjectResponse |
addObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
This version of addObjectByUID() explicitly takes an content stream, content length, and content type. |
PostObjectResponse |
addObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
This version of addObjectByUID() explicitly takes an content stream, content length, and content type. |
UpdateResponse |
beginUpdate(java.lang.String classPath,
java.util.Map<java.lang.String,java.lang.String> record,
int lockTime,
java.lang.String lockKey)
Get a lock on a record before updating. |
UpdateResponse |
cancelUpdate(java.lang.String classPath,
java.util.Map<java.lang.String,java.lang.String> record,
java.lang.String lockKey)
Get a lock on a record before updating. |
void |
close()
Alias for logout so that the Closeable interface can be used. |
PostObjectResponse |
deleteObject(java.lang.String objectPath,
java.lang.Integer objectId)
Delete an object for a record. |
PostObjectResponse |
deleteObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.util.List<WarningResponse> warningResponse)
Delete an object for a record. |
PostObjectResponse |
deleteObjectByUID(java.lang.String objectPath)
Delete an object for a record. |
PostObjectResponse |
deleteObjectByUID(java.lang.String objectPath,
java.util.List<WarningResponse> warningResponse)
Delete an object for a record. |
java.lang.String |
getAgentCode()
Get the agent code. |
java.lang.String |
getBrokerKey()
Get the broker key. |
java.lang.String |
getMemberName()
Get the member name. |
MetadataSystem |
getMetadata()
Fetch the complete Standard XML metadata and load it into the Metadata in memory model. |
MetadataSystem |
getMetadata(boolean everything)
Fetch XML metadata from the server. |
void |
getMetadata(java.io.OutputStream out)
Fetch the complete Standard XML metadata and write to the stream supplied. |
void |
getMetadata(java.io.OutputStream out,
boolean everything)
Fetch system metadata from the server. |
MetadataSystem |
getMetadata(RETSUserSession.MetadataLevel level)
Fetch XML metadata from the server. |
java.util.List<ObjectRecord> |
getObjects(java.lang.String objectPath,
java.io.File directory)
Fetch and save objects for records identified by ResourceID:ObjectID pairs. |
java.util.List<ObjectRecord> |
getObjects(java.lang.String objectPath,
ObjectResponseHandler handler)
Fetch and save objects for records identified by their ResourceID:ObjectID pairs. |
java.util.List<ObjectRecord> |
getObjectsByUID(java.lang.String objectPath,
java.io.File directory)
Fetch and save objects for records identified by their UIDs. |
java.util.List<ObjectRecord> |
getObjectsByUID(java.lang.String objectPath,
ObjectResponseHandler handler)
Fetch and save objects for records identified by their object UIDs. |
ObjectRecord |
getObjectUrl(java.lang.String objectPathId)
Get the URL location for a single object such as a photo identified by a ResourceID:ObjectID pair. |
ObjectRecord |
getObjectUrlByUID(java.lang.String objectPathId)
Get the URL location for a single object such as a photo, identified by an object UID. |
java.util.List<ObjectRecord> |
getObjectUrls(java.lang.String objectPath)
Get the URL locations for multiple objects, identified by ResourceID:ObjectID pairs. |
java.util.List<ObjectRecord> |
getObjectUrlsByUID(java.lang.String objectPath)
Get the URL locations for multiple objects identified by their object UIDs. |
java.io.InputStream |
getPayload(java.lang.String path,
java.lang.String payload,
java.lang.String query,
java.util.List<java.lang.String> orderby,
int limit,
int offset)
Execute a search for a given payload which returns the input stream containing the paylod. |
java.util.List<PayloadDescriptor> |
getPayloadList()
Get the payload list available from the server. |
int |
getRecordCount(java.lang.String path,
java.lang.String query)
Get the number of records that match a search query. |
com.bigllc.retsiq.api.http.RetsHttpSession |
getRetsHttpSession()
|
java.lang.String |
getRetsVersion()
Get the RETS version being used to talk to the server. |
java.lang.String |
getSessionId()
Get the session id. |
java.lang.String |
getUserClassification()
Get the user classification. |
java.lang.String |
getUserId()
Get the user ID. |
int |
getUserLevel()
Get the user level. |
void |
logout()
Logout the session. |
PostObjectResponse |
replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
Replace an object for a record. |
PostObjectResponse |
replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
Replace an object for a record. |
PostObjectResponse |
replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
This version of replaceObject() explicitly takes an content stream, content length, and content type. |
PostObjectResponse |
replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
This version of replaceObject() explicitly takes an content stream, content length, and content type. |
PostObjectResponse |
replaceObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
Replace an object for a record. |
PostObjectResponse |
replaceObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
Replace an object for a record. |
PostObjectResponse |
replaceObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
This version of replaceObjectByUID() explicitly takes an content stream, content length, and content type. |
PostObjectResponse |
replaceObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
This version of replaceObjectByUID() explicitly takes an content stream, content length, and content type. |
SearchResultSet |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields)
Execute a search with the default server limit imposed. |
SearchResultSet |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset)
Execute a search. |
SearchResultSet |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset,
boolean decoded)
Execute a search. |
void |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset,
boolean decoded,
SearchResponseHandler out)
Execute a search. |
void |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset,
SearchResponseHandler out)
Execute a search. |
SearchResultSet |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
java.util.List<java.lang.String> orderby,
int limit,
int offset,
boolean decoded)
Execute a search, ordering the result by one or more fields, returning a SearchResultSet. |
void |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
java.util.List<java.lang.String> orderby,
int limit,
int offset,
boolean decoded,
SearchResponseHandler out)
Execute a search, ordering the result by one or more fields. |
void |
search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
SearchResponseHandler out)
Execute a search with the default server limit imposed. |
void |
setRequestRecordCount(boolean count)
Set whether the search request demand the record count value. |
boolean |
shouldRequestRecordCount()
Should the search request include the record count value. |
UpdateResponse |
update(java.lang.String updatePath,
java.util.Map<java.lang.String,java.lang.String> record,
int validate)
Update a record. |
UpdateResponse |
update(java.lang.String updatePath,
java.util.Map<java.lang.String,java.lang.String> record,
int validate,
java.util.List<java.lang.String> fields)
Update a record. |
UpdateResponse |
update(java.lang.String updatePath,
java.util.Map<java.lang.String,java.lang.String> record,
int validate,
java.util.List<java.lang.String> fields,
java.lang.String lockKey,
java.util.List<WarningResponse> warningResponse)
Update a record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_LIMIT
public static final int VALIDATEFLAG_UPDATE
public static final int VALIDATEFLAG_AUTOPOP
public static final int VALIDATEFLAG_VALIDATE
| Method Detail |
|---|
public com.bigllc.retsiq.api.http.RetsHttpSession getRetsHttpSession()
public boolean shouldRequestRecordCount()
public void setRequestRecordCount(boolean count)
public java.lang.String getBrokerKey()
public java.lang.String getSessionId()
public java.lang.String getMemberName()
public java.lang.String getAgentCode()
public java.lang.String getUserClassification()
public java.lang.String getUserId()
public int getUserLevel()
public java.lang.String getRetsVersion()
public void action()
throws RETSClientException
RETSClientException
public java.util.List<PayloadDescriptor> getPayloadList()
throws RETSClientException
RETSClientException
public void search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
SearchResponseHandler out)
throws RETSClientException
path - the resource and classification to query in the following
format - /<Resource>/<Classification>.query - the DMQL2 query to execute.fields - the fields to return, an empty list or null will
fetch all the fields.out - the handler to process the response.
RETSClientExceptionSearchResponseHandler,
DelimitedSearchResponseHandler,
RecordCollectionResponseHandler
public void search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset,
SearchResponseHandler out)
throws RETSClientException
path - the resource and classification to query in the following
format - /<Resource>/<Classification>.query - the DMQL2 query to execute.fields - the fields to return, an empty list or null will
fetch all the fields.limit - the number of records to limit the response to.
The number 0 specifies the server limit if one
existsoffset - the offset of the record the server should return.
The first record is 0. Note that some servers may not
honour this request.out - the handler to process the response.
RETSClientExceptionSearchResponseHandler,
DelimitedSearchResponseHandler,
RecordCollectionResponseHandler
public void search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset,
boolean decoded,
SearchResponseHandler out)
throws RETSClientException
path - the resource and classification to query in the following
format - /<Resource>/<Classification>.query - the DMQL2 query to execute.fields - the fields to return, an empty list or null will
fetch all the fields.limit - the number of records to limit the response to.
The number 0 specifies the server limit if one
existsoffset - the offset of the record the server should return.
The first record is 0. Note that some servers may not
honour this request.decoded - if true lookup values are decoded otherwise raw values
are returned.out - the handler to process the response.
RETSClientExceptionSearchResponseHandler,
DelimitedSearchResponseHandler,
RecordCollectionResponseHandler
public void search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
java.util.List<java.lang.String> orderby,
int limit,
int offset,
boolean decoded,
SearchResponseHandler out)
throws RETSClientException
orderby - The list of field names to order results by. If a field
name is prefixed with '-', for example -LISTPRICE, results are sorted
in descending order.
RETSClientExceptionsearch(String, String, List, int, int, boolean, SearchResponseHandler)
public SearchResultSet search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields)
throws RETSClientException
path - the resource and classification to query in the following
format - /<Resource>/<Classification>.query - the DMQL2 query to execute.fields - the fields to return, an empty list or null will
fetch all the fields.
RETSClientExceptionSearchResponseHandler,
DelimitedSearchResponseHandler,
RecordCollectionResponseHandler
public SearchResultSet search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset)
throws RETSClientException
path - the resource and classification to query in the following
format - /<Resource>/<Classification>.query - the DMQL2 query to execute.fields - the fields to return, an empty list or null will
fetch all the fields.limit - the number of records to limit the response to.
The number 0 specifies the server limit if one
existsoffset - the offset of the record the server should return.
The first record is 0. Note that some servers may not
honour this request.
RETSClientExceptionSearchResponseHandler,
DelimitedSearchResponseHandler,
RecordCollectionResponseHandler
public SearchResultSet search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
int limit,
int offset,
boolean decoded)
throws RETSClientException
path - the resource and classification to query in the following
format - /<Resource>/<Classification>.query - the DMQL2 query to execute.fields - the fields to return, an empty list or null will
fetch all the fields.limit - the number of records to limit the response to.
The number 0 specifies the server limit if one
existsoffset - the offset of the record the server should return.
The first record is 0. Note that some servers may not
honour this request.decoded - if true lookup values are decoded otherwise raw values
are returned.
RETSClientExceptionSearchResponseHandler,
DelimitedSearchResponseHandler,
RecordCollectionResponseHandler
public SearchResultSet search(java.lang.String path,
java.lang.String query,
java.util.List<java.lang.String> fields,
java.util.List<java.lang.String> orderby,
int limit,
int offset,
boolean decoded)
throws RETSClientException
SearchResultSet.
orderby - The list of field names to order results by. If a field
name is prefixed with '-', for example -LISTPRICE, results are sorted
in descending order.
RETSClientExceptionsearch(String, String, List, int, int, boolean)
public java.io.InputStream getPayload(java.lang.String path,
java.lang.String payload,
java.lang.String query,
java.util.List<java.lang.String> orderby,
int limit,
int offset)
throws RETSClientException
path - the resource and classification to query in the following
format - /<Resource>/<Classification>.payload - the payload name as returned by getPayloadList.query - the DMQL2 query to execute.orderby - The list of field names to order results by. If a field
name is prefixed with '-', for example -LISTPRICE, results are sorted
in descending order.limit - the number of records to limit the response to.
The number 0 specifies the server limit if one
existsoffset - the offset of the record the server should return.
The first record is 0. Note that some servers may not
honour this request.
RETSClientException
public int getRecordCount(java.lang.String path,
java.lang.String query)
throws RETSClientException
path - the resource and classification to query in the following
format: /<Resource>/<Classification>query - the DMQL2 query to execute.
RETSClientException
public ObjectRecord getObjectUrl(java.lang.String objectPathId)
throws RETSClientException
objectPathId - the object path of
object to retrieve the URL of.
RETSClientException
public ObjectRecord getObjectUrlByUID(java.lang.String objectPathId)
throws RETSClientException
objectPathId - the UID object path of
object to retrieve the URL of.
RETSClientException
public java.util.List<ObjectRecord> getObjectUrls(java.lang.String objectPath)
throws RETSClientException
objectPath - the object path of
objects to retrieve URLs for.
RETSClientException
public java.util.List<ObjectRecord> getObjectUrlsByUID(java.lang.String objectPath)
throws RETSClientException
objectPath - the UID object path of
objects to retrieve URLs for.
RETSClientException
public java.util.List<ObjectRecord> getObjects(java.lang.String objectPath,
java.io.File directory)
throws RETSClientException
<RecordID>-<ObjectID>[.<FileExtension>].
The file extension is derived from the MIME type. If no match is
found then there will be no extension.
It is possible to register extensions with MIME types. If you
want to do this then please get in touch ;)
objectPath - the object path of
objects to retrieve.directory - the directory to save the returned objects to.
RETSClientException
public java.util.List<ObjectRecord> getObjectsByUID(java.lang.String objectPath,
java.io.File directory)
throws RETSClientException
<RecordID>-<ObjectID>[.<FileExtension>].
The file extension is derived from the MIME type. If no match is found
then there will be no extension. It is possible to register extensions with
MIME types. If you want to do this then please get in touch ;)
objectPath - the UID object paths
of objects to retrieve.directory - the directory to save the returned objects to.
RETSClientException
public java.util.List<ObjectRecord> getObjects(java.lang.String objectPath,
ObjectResponseHandler handler)
throws RETSClientException
objectPath - the object paths
of objects to retrieve.handler - the handler responsible for persistence.
RETSClientException
public java.util.List<ObjectRecord> getObjectsByUID(java.lang.String objectPath,
ObjectResponseHandler handler)
throws RETSClientException
objectPath - the UID object paths
of objects to retrieve.handler - the handler responsible for persistence.
RETSClientException
public PostObjectResponse addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
objectPath - the object path
of the object to operate on.objectId - the sequential integer idfile - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.
RETSClientException
public PostObjectResponse addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
objectPath - the object path
of the object to operate on.objectId - the sequential integer idfile - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.warningResponse - the warning response if one is required
RETSClientException
public PostObjectResponse addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
addObject(String, Integer, File, Map).
RETSClientException
public PostObjectResponse addObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
addObject(String, Integer, File, Map).
RETSClientException
public PostObjectResponse addObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
objectPath - the object path
of the object to operate on.file - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.
RETSClientException
public PostObjectResponse addObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
objectPath - the object path
of the object to operate on.file - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.warningResponse - the warning response if one is required
RETSClientException
public PostObjectResponse addObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
addObjectByUID(String, File, Map);
RETSClientException
public PostObjectResponse addObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
addObjectByUID(String, File, Map);
RETSClientException
public PostObjectResponse replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
objectPath - the object path
of the object to operate on.objectId - the sequential integer idfile - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.
RETSClientException
public PostObjectResponse replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
objectPath - the object path
of the object to operate on.objectId - the sequential integer idfile - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.warningResponse - the warning response if one is required
RETSClientException
public PostObjectResponse replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
replaceObject(String, Integer, File, Map).
RETSClientException
public PostObjectResponse replaceObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
replaceObject(String, Integer, File, Map).
RETSClientException
public PostObjectResponse replaceObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
objectPath - the object path
of the object to operate on.file - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.
RETSClientException
public PostObjectResponse replaceObjectByUID(java.lang.String objectPath,
java.io.File file,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
objectPath - the object path
of the object to operate on.file - the the file to postattributes - name-value pairs sent to the server which may be used
to update the object record.warningResponse - the warning response if one is required
RETSClientException
public PostObjectResponse replaceObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws RETSClientException
replaceObjectByUID(String, File, Map);
RETSClientException
public PostObjectResponse replaceObjectByUID(java.lang.String objectPath,
java.io.InputStream content,
java.lang.String contentType,
int contentLength,
java.util.Map<java.lang.String,java.lang.String> attributes,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
replaceObjectByUID(String, File, Map);
RETSClientException
public PostObjectResponse deleteObject(java.lang.String objectPath,
java.lang.Integer objectId)
throws RETSClientException
objectPath - the object path
of the object to operate on.objectId - the sequential integer id
RETSClientException
public PostObjectResponse deleteObject(java.lang.String objectPath,
java.lang.Integer objectId,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
objectPath - the object path
of the object to operate on.objectId - the sequential integer idwarningResponse - the warning response if one is required
RETSClientException
public PostObjectResponse deleteObjectByUID(java.lang.String objectPath)
throws RETSClientException
objectPath - the object path
of the object to operate on.
RETSClientException
public PostObjectResponse deleteObjectByUID(java.lang.String objectPath,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
objectPath - the object path
of the object to operate on.warningResponse - the warning response if one is required
RETSClientException
public UpdateResponse update(java.lang.String updatePath,
java.util.Map<java.lang.String,java.lang.String> record,
int validate)
throws RETSClientException
updatePath - the type of update to perform. The format is
/<Resource>/<Classification>/<UpdateType> record - a column value map of fields representing the record to be
added or edited.validate - false to try and execute the update, true to simply perfrom
validation
RETSClientException
public UpdateResponse update(java.lang.String updatePath,
java.util.Map<java.lang.String,java.lang.String> record,
int validate,
java.util.List<java.lang.String> fields)
throws RETSClientException
updatePath - the type of update to perform. The format is
/<Resource>/<Classification>/<UpdateType> record - a column value map of fields representing the record to be
added or edited.validate - false to try and execute the update, true to simply perfrom
validationfields - the fields to return, an empty list or null will
fetch all the fields.
RETSClientException
public UpdateResponse update(java.lang.String updatePath,
java.util.Map<java.lang.String,java.lang.String> record,
int validate,
java.util.List<java.lang.String> fields,
java.lang.String lockKey,
java.util.List<WarningResponse> warningResponse)
throws RETSClientException
updatePath - the type of update to perform. The format is
/<Resource>/<Classification>/<UpdateType> record - a column value map of fields representing the record to be
added or edited.validate - false to try and execute the update, true to simply perfrom
validationfields - the fields to return, an empty list or null will
fetch all the fields.lockKey - if the server supports locking and begin update returned
a lock key then this needs to be sent. Otherwise it can be null.warningResponse - if the server requires a warning response then
submit this as per the specification format.
RETSClientException
public UpdateResponse beginUpdate(java.lang.String classPath,
java.util.Map<java.lang.String,java.lang.String> record,
int lockTime,
java.lang.String lockKey)
throws RETSClientException
classPath - the type of update to perform. The format is
/<Resource>/<Classification> record - a column value map of fields representing the record to be
added or edited.lockTime - the lock time in seconds to request.lockKey - the lock key must be supplied if the record is already
locked and an extension to the lock time.
RETSClientException
public UpdateResponse cancelUpdate(java.lang.String classPath,
java.util.Map<java.lang.String,java.lang.String> record,
java.lang.String lockKey)
throws RETSClientException
classPath - the type of update to perform. The format is
/<Resource>/<Classification> record - a column value map of fields representing the record to be
added or edited.lockKey - the lock key returned by the server when the lock was
attained.
RETSClientException
public void getMetadata(java.io.OutputStream out,
boolean everything)
throws RETSClientException
out - the output stream to write the metadata too.everything - if true, fetch the entire metadata. If false, fetch only
the METADATA-SYSTEM level
RETSClientException
public void getMetadata(java.io.OutputStream out)
throws RETSClientException
out - the output stream to write the metadata too.
RETSClientException
public MetadataSystem getMetadata(boolean everything)
throws RETSClientException
everything - if false, only fetch the METADATA-SYSTEM
level of metadata. If true, fetch METADATA-SYSTEM and all contained
metadata (ie, everything).
RETSClientException
public MetadataSystem getMetadata(RETSUserSession.MetadataLevel level)
throws RETSClientException
level - the level of metadata to get
RETSClientException
public MetadataSystem getMetadata()
throws RETSClientException
getMetadata(true)
RETSClientException
public void logout()
throws RETSClientException
RETSClientException
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||