|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IWSDocMgmt
Single document management web service interface.
| Method Summary | |
|---|---|
void |
addDocumentAttributeCategory(String token,
ArrayList<String> documentIDs,
String categoryID)
Adds an attribute category to the given document. |
void |
changeDocumentAttributes(String token,
ArrayList<String> documentIDs,
WSTMap attributes)
Changes a number of document attributes. |
void |
changeDocumentBasketPosition(String token,
String basketID,
String documentID,
int quantity)
Changes a basket position for a document. |
void |
changeDocumentLanguage(String token,
ArrayList<String> documentIDs,
String languageCode)
Changes the language property of a document -- language is not a conventional attribute, but a fundamental document property. |
void |
changeDocumentLicense(String token,
String documentID,
String licenseKey,
boolean keepExistingLicenses)
sets the license to a document |
void |
changeDocumentTags(String token,
ArrayList<String> documentIDs,
ArrayList<String> tagsToAdd,
ArrayList<String> tagsToRemove)
Changes the document's tags. |
void |
changeDocumentUserProperties(String token,
String documentID,
boolean master,
WSTMap userProperties)
Changes the user-specific (view) properties of a document. |
WSTCopyResult |
copyDocumentsFromKnownUser(String token,
ArrayList<String> documentIDs)
Copies a list of documents owned by someone else to the user's account. |
String |
createDocument(String token,
String displayName,
ArrayList<String> categoryIDs,
WSTMap attributes,
ArrayList<String> tags)
Creates a new, empty document (a document that doesn't have any versions, that is, does not have any binary data associated with) |
String |
createDocumentFromWeb(String token,
String documentURL,
String displayName,
ArrayList<String> categoryIDs,
WSTMap attributes,
ArrayList<String> tags)
Creates a new document with a first version (a binary) fetched from the web. |
String |
fulfillDocument(String token,
String documentID,
String userName,
String clientMarker,
String affiliateID,
String externalTransactionID)
Fulfills a single commercial document to a user's account. |
ArrayList<String> |
getAllDocumentIDs(String token,
boolean alsoRemoved)
Returns a list of all document ids of the current user |
ArrayList<String> |
getAllDocumentIDsConstrained(String token,
String search)
Returns a list of own documents that belong to the current user and are within the given constraints. |
ArrayList<WSTDocument> |
getAllDocuments(String token,
boolean alsoRemoved,
int offset,
int count)
Returns a list of all documents of the current user. |
ArrayList<WSTDocument> |
getAllDocumentsConstrained(String token,
String search,
int offset,
int count)
Returns a list of own documents that belong to the current user and fulfill the given constraints. |
String |
getCatalogDocumentID(String token,
String ean)
Find a catalog document with the given EAN (ISBN). |
WSTDocument |
getDocument(String token,
String documentID)
Returns a document and version information for all versions. |
WSTDocumentAccessDescriptor |
getDocumentAccessDescriptor(String token,
String documentID)
Returns a WSTDocumentAccessDescriptor object that describes if the given document could be accessed by the current user, and, if not, why. |
ArrayList<WSTDocumentAccessDescriptor> |
getDocumentAccessDescriptors(String token,
ArrayList<String> documentIDs)
Returns a list of WSTDocumentAccessDescriptor objects that describe if the given documents could be accessed by the current user, and, if not, why. |
WSTDocument |
getDocumentByOriginalURL(String token,
String originalURL)
Returns a document information. |
ArrayList<WSTDocument> |
getDocuments(String token,
ArrayList<String> documentIDs)
Returns a list of document objects |
ArrayList<WSTDocument> |
getDocumentsFeaturedAs(String token,
String feature,
int offset,
int count)
Deprecated. use getDocumentsInContentPresentation(String, String, String, int, int) instead |
ArrayList<WSTDocument> |
getDocumentsInContentCategory(String token,
String contentCategoryID,
boolean includeSubCategories,
String sortBy,
boolean invert,
int offset,
int count)
Returns a list of document objects, as contained in a content category. |
ArrayList<WSTDocument> |
getDocumentsInContentCategoryBySearchSource(String token,
String contentCategoryID,
boolean includeSubCategories,
String search,
ArrayList<String> sources,
String sortBy,
boolean invert,
int offset,
int count)
Returns a list of document objects, as contained in a content category. |
ArrayList<WSTDocument> |
getDocumentsInContentCategoryConstrained(String token,
String contentCategoryID,
boolean includeSubCategories,
String search,
String sortBy,
boolean invert,
int offset,
int count)
Returns a list of document objects, as contained in a content category. |
ArrayList<WSTDocument> |
getDocumentsInContentPresentation(String token,
String affiliateID,
String presentationID,
int offset,
int count)
Deprecated. use IWSFeaturedContentMgmt.getContentPresentationDocuments(String, String, String, int, int, String, boolean) instead |
ArrayList<WSTDocument> |
getDocumentsInList(String token,
String listID,
int offset,
int count)
Returns a list of document objects, as contained in a list. |
ArrayList<WSTDocument> |
getDocumentsRecommendedForUser(String token,
int offset,
int count)
Returns a list of document objects that are related to the given document. |
ArrayList<WSTDocument> |
getDocumentsRelatedToDocument(String token,
String documentID,
int offset,
int count)
Returns a list of document objects that are related to the given document. |
WSTDocumentStatistics |
getDocumentStatistics(String token,
String documentID)
Get some statistics on the requested document. |
HashMap<String,String> |
getPotentialDocumentAttributeCategories(String token,
String documentID)
Returns a map: category UID to localized display name of the attribute categories that could be added to the document |
ArrayList<String> |
getUnlistedDocumentIDs(String token)
Returns a list of documents IDs of all documents that are not in any list |
WSTDocumentFulfillablilityCode |
isDocumentFulfillable(String token,
String documentID)
Is the fulfillment of the given catalog document possible, or not? Checks, if specific restrictions (e.g. |
void |
prepareDocumentFormat(String token,
String documentID,
long versionID,
String format)
Prepare a given format for a document and version for delivery. |
void |
removeAllPreviews(String token,
String documentID)
Removes all previews of the given document regardless of format. |
void |
removeDocumentAttributeCategory(String token,
ArrayList<String> documentIDs,
String categoryID)
Removes an attribute category from the given document. |
void |
removeDocuments(String token,
ArrayList<String> documentIDs)
Removes a list of document objects. |
void |
removeDocumentsInList(String token,
String listID,
boolean keepDocumentsInOtherLists)
Removes a number of documents in a list (not merely from the list -- the documents will be removed!) |
void |
resetUserDocumentOriginalUrl(String token,
String documentId,
String newOriginalUrl)
Reset a document by removing the acsm blob of the document and then replacing the old original url by the given new one, if it is null. |
WSTDocument |
revertDocumentToVersion(String token,
String documentID,
long versionID)
Reverts a given document to the given version. |
void |
sendDocumentInvite(String token,
ArrayList<String> documentIDs,
ArrayList<String> eMailAddresses,
ArrayList<String> userNames,
boolean doCopyAlways,
String message)
Invites the given eMail addresses and user names to look a the given documents. |
void |
setDocumentTitleImageFromWeb(String token,
String documentID,
String imageURL)
Imports a title image from the web and makes it the title image of a given document. |
ArrayList<String> |
suggestTitleImages(String token,
String documentID)
Suggests title images for a document. |
| Method Detail |
|---|
String createDocument(String token,
String displayName,
@Nullable
ArrayList<String> categoryIDs,
WSTMap attributes,
@Nullable
ArrayList<String> tags)
throws WSException
token - the session ID, must be != null and validdisplayName - the display name to be used for the document. If you set title and author attributes, this may be null or empty and will be created automatically.categoryIDs - the IDs of the attribute categories to be added to the document. May be empty or null, in which case only the default attribute category will be added.attributes - the attributes (from the given categories) to be set. May be empty or null, in which case no attributes will be set.tags - a list of tags, may be empty or null to set no tags
WSException - if an error occurs
String createDocumentFromWeb(String token,
String documentURL,
@Nullable
String displayName,
@Nullable
ArrayList<String> categoryIDs,
@Nullable
WSTMap attributes,
@Nullable
ArrayList<String> tags)
throws WSException
token - the session ID, must be != null and validdocumentURL - the URL of the binary that is to be used as a first version of the document. This needs to be a valid URL. The type of the document will be auto-detected.displayName - the display name to be used for the document. If you set title and author attributes, this may be null or empty and will be created automatically.categoryIDs - the IDs of the attribute categories to be added to the document. May be empty or null, in which case only the default attribute category will be added.attributes - the attributes (from the given categories) to be set. May be empty or null, in which case no attributes will be set but those that can be discovered from
the binary document. If you set attributes that have also discovered values, the values set in this method will override the discovered values.tags - a list of tags, may be empty or null to set no tags
WSException - if an error occurs
ArrayList<String> getAllDocumentIDs(String token,
boolean alsoRemoved)
throws WSException
token - the session ID, must be != null and validalsoRemoved - get also the removed document IDs
WSException - if an error occurs
ArrayList<String> getUnlistedDocumentIDs(String token)
throws WSException
token - the session ID, must be != null and valid
WSException - if an error occurs
ArrayList<String> getAllDocumentIDsConstrained(String token,
String search)
throws WSException
IWSListMgmt
getListConstrained method.
token - a valid tokensearch - the search String. This is either a plain String to search all attributes, or a fielded String like "field:value". All attribute IDs are valid field IDs. You
can also user their lower-cased English localizations, so "author:gaddis" is equivalent to "20514d7d-7591-49a4-a62d-f5c02a8f5edd:gaddis". There are some special
(non-attribute) fields: currentVersionFormat, currentVersionNumber, originalURL, displayName and fileName. Search terms separated by spaces are ANDed. Boolean
Operators OR and AND NOT are allowed, so are brackets.WSException - if an error occurs
ArrayList<WSTDocument> getAllDocuments(String token,
boolean alsoRemoved,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validalsoRemoved - should removed documents also be returned?offset - the offset of the first document to be returnedcount - the number of documents to be returned, may be -1 to indicate that all documents should be returned
WSException - if an error occurs
ArrayList<WSTDocument> getAllDocumentsConstrained(String token,
String search,
int offset,
int count)
throws WSException
IWSListMgmt
getListConstrained method.
token - the sessionID of the user to return the documents forsearch - the search String. This is either a plain String to search all attributes, or a fielded String like "field:value". All attribute IDs are valid field IDs. You
can also user their lower-cased English localizations, so "author:gaddis" is equivalent to "20514d7d-7591-49a4-a62d-f5c02a8f5edd:gaddis". There are some special
(non-attribute) fields: currentVersionFormat, currentVersionNumber, originalURL, displayName and fileName. Search terms separated by spaces are ANDed. Boolean
Operators OR and AND NOT are allowed, so are brackets.offset - the offset of the first document to be returnedcount - the number of documents to be returned, may be -1 to indicate that all documents should be returned
WSException - if an error occurs
ArrayList<WSTDocument> getDocuments(String token,
ArrayList<String> documentIDs)
throws WSException
token - the session ID, must be != null and validdocumentIDs - a list of IDs of the documents to be returned
WSException - if an error occurs
ArrayList<WSTDocumentAccessDescriptor> getDocumentAccessDescriptors(String token,
ArrayList<String> documentIDs)
throws WSException
WSTDocumentAccessDescriptor objects that describe if the given documents could be accessed by the current user, and, if not, why.
token - the session ID, must be != null and validdocumentIDs - the IDs of the documents to be checked.
WSException
WSTDocument getDocument(String token,
String documentID)
throws WSException
token - the session ID, must be != null and validdocumentID - the ID of the document to be returned
WSException - if an error occurs
WSTDocument getDocumentByOriginalURL(String token,
String originalURL)
throws WSException
token - the session ID, must be != null and validoriginalURL - the originalURL according to of the document to be returned, must not be null
null if the given user has no document with the given URL
WSException - if the given token is invalid or the given URL is not
WSTDocumentAccessDescriptor getDocumentAccessDescriptor(String token,
String documentID)
throws WSException
WSTDocumentAccessDescriptor object that describes if the given document could be accessed by the current user, and, if not, why.
token - the session ID, must be != null and validdocumentID - the ID of the document to be checked.
WSException - if an error occurs
ArrayList<WSTDocument> getDocumentsInList(String token,
String listID,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validlistID - the ID of the list where the documents reside, must be valid and the current user must be able to access the list.offset - the index of the first document to be returnedcount - the number of objects to be returned, may be -1 to indicate that all documents are to be returned.
WSException - if an error occurs
ArrayList<WSTDocument> getDocumentsInContentCategory(String token,
String contentCategoryID,
boolean includeSubCategories,
@Nullable
String sortBy,
boolean invert,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideincludeSubCategories - if the documents of sub categories should be returned, toosortBy - sort the documents by this search field, may be nullinvert - if true, sorting order will be reversedoffset - the index of the first document to be returnedcount - the number of objects to be returned, may be -1 to indicate that all documents are to be returned.
WSException - if an error occurs
ArrayList<WSTDocument> getDocumentsInContentCategoryConstrained(String token,
String contentCategoryID,
boolean includeSubCategories,
@Nullable
String search,
@Nullable
String sortBy,
boolean invert,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideincludeSubCategories - if the documents of sub categories should be returned, toosearch - the search String. This is either a plain String to search all attributes, or a fielded String like "field:value". All attribute IDs are valid field IDs. You
can also user their lower-cased English localizations, so "author:gaddis" is equivalent to "20514d7d-7591-49a4-a62d-f5c02a8f5edd:gaddis". There are some special
(non-attribute) fields: currentVersionFormat, currentVersionNumber, originalURL, displayName and fileName. Search terms separated by spaces are ANDed. Boolean
Operators OR and AND NOT are allowed, so are brackets.sortBy - sort the documents by this search field, may be nullinvert - if true, sorting order will be reversedoffset - the index of the first document to be returnedcount - the number of objects to be returned, may be -1 to indicate that all documents are to be returned.
WSException - if an error occurs
ArrayList<WSTDocument> getDocumentsInContentCategoryBySearchSource(String token,
String contentCategoryID,
boolean includeSubCategories,
@Nullable
String search,
@Nullable
ArrayList<String> sources,
@Nullable
String sortBy,
boolean invert,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validcontentCategoryID - the ID of the content category where the documents resideincludeSubCategories - if the documents of sub categories should be returned, toosearch - the search String. This is either a plain String to search all attributes, or a fielded String like "field:value". All attribute IDs are valid field IDs. You
can also user their lower-cased English localizations, so "author:gaddis" is equivalent to "20514d7d-7591-49a4-a62d-f5c02a8f5edd:gaddis". There are some special
(non-attribute) fields: currentVersionFormat, currentVersionNumber, originalURL, displayName and fileName. Search terms separated by spaces are ANDed. Boolean
Operators OR and AND NOT are allowed, so are brackets.sources - see WSTDocumentSearchSource, excluding WSTDocumentSearchSource.OWN and WSTDocumentSearchSource.OTHERsortBy - sort the documents by this search field, may be nullinvert - if true, sorting order will be reversedoffset - the index of the first document to be returnedcount - the number of objects to be returned, may be -1 to indicate that all documents are to be returned.
WSException - if an exception occurs
ArrayList<WSTDocument> getDocumentsRelatedToDocument(String token,
String documentID,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validdocumentID - the ID of the document to be used for determining related documentsoffset - the index of the first document to be returned. This parameter is ignored in the current implementation.count - the number of objects to be returned, must be a positive value.
WSException - if an error occurs
ArrayList<WSTDocument> getDocumentsRecommendedForUser(String token,
int offset,
int count)
throws WSException
token - the session ID, must be != null and validoffset - the index of the first document to be returned. This parameter is ignored in the current implementation.count - the number of objects to be returned, must be a positive value.
WSException
@Deprecated
ArrayList<WSTDocument> getDocumentsFeaturedAs(String token,
String feature,
int offset,
int count)
throws WSException
getDocumentsInContentPresentation(String, String, String, int, int) instead
token - the session ID, must be != null and validfeature - the ID of the feature to be used for determining the documents to be returnedoffset - the index of the first document to be returnedcount - the number of objects to be returned, may be -1 to indicate that all documents are to be returned.
null
WSException
@Deprecated
ArrayList<WSTDocument> getDocumentsInContentPresentation(String token,
String affiliateID,
String presentationID,
int offset,
int count)
throws WSException
IWSFeaturedContentMgmt.getContentPresentationDocuments(String, String, String, int, int, String, boolean) instead
token - the valid session IDaffiliateID - the ID of the affiliate who wants to display the presentation, may be nullpresentationID - the ID of the presentationoffset - offset of the first document to be returnedcount - the maximum number of documents to be returned, may be -1 to indicate that all documents (up to the defined max list size) may be returned.
null
WSException - if the requested offset is out of bounds
void removeDocuments(String token,
ArrayList<String> documentIDs)
throws WSException
token - the session ID, must be != null and validdocumentIDs - a list of IDs of the documents to be removed.
WSException - if an error occurs
void removeDocumentsInList(String token,
String listID,
boolean keepDocumentsInOtherLists)
throws WSException
token - the session ID, must be != null and validlistID - a list IDkeepDocumentsInOtherLists - if true, the documents will not be removed if they still are listed in other lists, but only de-listed from the given list. If
false, the documents will be removed without taking other lists into account, effectively making them disappear from all lists.true is supported!
WSException - if an error occurs
void sendDocumentInvite(String token,
ArrayList<String> documentIDs,
ArrayList<String> eMailAddresses,
ArrayList<String> userNames,
boolean doCopyAlways,
String message)
throws WSException
token - the current session ID of the userdocumentIDs - the list of IDs of the document that the users should be invited to see. The current user must be allowed to see the document.eMailAddresses - the eMail addresses to send the invitations out touserNames - the user IDs that shall receive the invitationdoCopyAlways - if true, copies of the document will be generated even if the receivers could (by permission) access the original. recipients.message - a message to be sent out along with the invitations.
WSException - if an error occurs
WSTCopyResult copyDocumentsFromKnownUser(String token,
ArrayList<String> documentIDs)
throws WSException
token - the current session ID of the userdocumentIDs - the IDs of documents owned by some other user that shall be copied to the user's account.
WSTCopyResult object, never null
WSException - if an error occurs
void changeDocumentAttributes(String token,
ArrayList<String> documentIDs,
WSTMap attributes)
throws WSException
token - the current session ID of the userdocumentIDs - the IDs of the documents, must not be nullattributes - the attributes to be set
WSException - if an error occurs
void changeDocumentTags(String token,
ArrayList<String> documentIDs,
ArrayList<String> tagsToAdd,
ArrayList<String> tagsToRemove)
throws WSException
token - the current session ID of the userdocumentIDs - the IDs of the documents, must not be nulltagsToAdd - the tags to be added, values truncated to 1024 bytestagsToRemove - the tags to be removed
WSException - if an error occurs
void changeDocumentLanguage(String token,
ArrayList<String> documentIDs,
String languageCode)
throws WSException
token - the current session ID of the userdocumentIDs - the IDs of the documents, must not be nulllanguageCode - the code of the language that the give documents are written in. Accepted values are two-letter lower-case language codes, java-style.
WSException - if an error occurs
HashMap<String,String> getPotentialDocumentAttributeCategories(String token,
String documentID)
throws WSException
token - the current session ID of the userdocumentID - the ID of the document, must not be null
WSException - if an error occurs
void addDocumentAttributeCategory(String token,
ArrayList<String> documentIDs,
String categoryID)
throws WSException
token - the current session ID of the userdocumentIDs - the IDs of the documents, must not be nullcategoryID - the ID of the category as returned by getPotentialDocumentAttributeCategories()
WSException - if an error occurs
void removeDocumentAttributeCategory(String token,
ArrayList<String> documentIDs,
String categoryID)
throws WSException
token - the current session ID of the userdocumentIDs - the IDs of the documents, must not be nullcategoryID - the ID of the category
WSException - if an error occurs
WSTDocument revertDocumentToVersion(String token,
String documentID,
long versionID)
throws WSException
token - the tokendocumentID - the ID of the document to be revertedversionID - the version ID of the version to revert to.
WSException - if an error occurs
void prepareDocumentFormat(String token,
String documentID,
long versionID,
String format)
throws WSException
token - the tokendocumentID - the ID of the document of the formatversionID - the ID of the version of the documentformat - the format to be prepared
WSException - if an error occurs
ArrayList<String> suggestTitleImages(String token,
String documentID)
throws WSException
token - a valid tokendocumentID - a document ID
WSException - if an error occurs
void setDocumentTitleImageFromWeb(String token,
String documentID,
String imageURL)
throws WSException
token - a valid tokendocumentID - the documentIDimageURL - the URL of the image. Must resolve to a image, which must be either JPEG or PNG, and be of a sensible size (< 2 MB)
WSException - if an error occurs
void changeDocumentLicense(String token,
String documentID,
String licenseKey,
boolean keepExistingLicenses)
throws WSException
token - a valid tokendocumentID - the document IDlicenseKey - key of the master license, may be null to add no license (only makes sense when keepExistingLicenses=false)keepExistingLicenses - if we should keep existing licenses
WSException - if an error occurs
void changeDocumentUserProperties(String token,
String documentID,
boolean master,
WSTMap userProperties)
throws WSException
token - the session ID, must be != null and validdocumentID - the ID of the document to be checked.master - should the passed properties be visible to other users? (only available if this user is the owner of the document)userProperties - the properties to be set.
WSException - if an error occurs
void changeDocumentBasketPosition(String token,
String basketID,
String documentID,
int quantity)
throws WSException
token - a valid tokenbasketID - the basket where the document position should be changed, may be null to use the default basket (is created automatically)documentID - the document IDquantity - the desired quantity
WSException - if an error occurs
String fulfillDocument(String token,
String documentID,
String userName,
String clientMarker,
String affiliateID,
String externalTransactionID)
throws WSException
token - a token that identifies a user that has the right to trigger fulfillment operationsdocumentID - the ID of the commercial document to be fulfilleduserName - the unique identifier / login of the user who should receive the document, must not be nullclientMarker - a client marker indicating the kind of client. Use short, lower-case markers, e.g. "iphone" May be empty.affiliateID - an affiliate ID that will show up in transaction reports, may be emptyexternalTransactionID - an external transaction ID that will show up in reports for this fulfillment/checkout operation
WSException - if an error occurs
void removeAllPreviews(String token,
String documentID)
throws WSException
token - the token of a user that can modify the given document.documentID - a document id.
WSException - in case of errors.
WSTDocumentStatistics getDocumentStatistics(String token,
String documentID)
throws WSException
token - a token with right USE_BACKEND.documentID - a document id
WSException - in case of errors.
String getCatalogDocumentID(String token,
String ean)
throws WSException
token - a token used to resolve the catalog with right WSTRight.QUERY_CATALOG_DOCUMENT_IDS.ean - an EAN
WSException - in case of errors
void resetUserDocumentOriginalUrl(String token,
String documentId,
String newOriginalUrl)
throws WSException
token - a token with right EDIT_DOCUMENT_ATTRIBUTESdocumentId - a document idnewOriginalUrl - a new original url, may be null, in which case, the old url won't be changed.
WSException - in case of errors.
WSTDocumentFulfillablilityCode isDocumentFulfillable(String token,
String documentID)
throws WSException
token - a user token.documentID - a catalog document id of a document in the catalog of the user's nature.
WSException - in case of errors.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||