Package com.axemble.vdoc.sdk.modules
Interface IBaseLibraryModule
- All Known Subinterfaces:
- ILibraryModule
- All Known Implementing Classes:
- PortalLibraryModule
The library module interface.
 
Code sample :
 
 // creation of a library module object
 IBaseLibraryModule libraryModule = Modules.getLibraryModule();
 try
 {
 }
 finally
 {
  // uninitialize the module
        Modules.releaseModule(libraryModule);
 }
 
- Since:
- 1.0
- Version:
- 1.0, 28/10/2007
- Author:
- vlygeros
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumThe possible subscription frequencies.
- 
Method SummaryModifier and TypeMethodDescriptionaddAttachment(IFile file, IAttachment attachment) addAttachment(IFile file, File ioFile) addAttachment(IFile file, String fileName, InputStream inputStream) addAttachment(IFile file, String fileName, String fullPath) voidaddCategories(IContext context, IFile file, Collection categories) voidaddCategory(IContext context, IFile file, ICategory category) checkedOutBy(IContext context, IFile file) voidvoidcopyTo(IContext context, IFile file, IFolder dest, CopyOption... copyOptions) Allows to copy a specifiedIFileunderneath a destination folder;copyTo(IContext context, IFile file, ILibrary dest, CopyOption... copyOptions) Allows to copy a specifiedIFileunderneath a destination folder;copyTo(IContext context, IFolder folder, IFolder dest, CopyOption... copyOptions) Allows to copy a specifiedIFolderunderneath a destination folder;copyTo(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) Allows to copy a specifiedIFolderunderneath a destination folder;createCategory(IContext context, ICategory category, String name) createCategory(IContext context, ILibrary library, String name) createCategory(IContext context, String name) createFile(IContext context, IFolder folder, String description, IAttachment attachment) createFile(IContext context, IFolder folder, String name, String description, byte[] content) createFile(IContext context, IFolder folder, String name, String description, InputStream content) createFile(IContext context, ILibrary library, String description, IAttachment attachment) createFile(IContext context, ILibrary library, String name, String description, byte[] content) createFile(IContext context, ILibrary library, String name, String description, InputStream content) createFolder(IContext context, IFolder parent, String name) createFolder(IContext context, ILibrary library, String name) createLibrary(IContext context, IOrganization organization, String name) Creates a library on a specified organization.createLibrary(IContext context, String name) Deprecated.use createLibrary( IContext context, IOrganization organization, String name ) method instead.createResourceDefinition(IContext context, String name) voidAllow to delete a file.voidAllow to delete a folder.booleanexistSubscriptionByLibraryElement(IContext context, ILibraryElement libraryElement) check if theILibraryElementis subscribed by the uservoidfireDownloadHistoryEvent(IContext context, IFile file, String protocol) getAttachment(IFile file, String fileName) getAttachments(IFile file) getCategories(IContext context, ICategory category, boolean recursive) getCategories(IContext context, ILibrary library, boolean recursive) getCategory(IContext context, ICategory category, String name) getCategory(IContext context, ILibrary library, String name) getCategory(Object object) getElementByProtocolURI(String protocolURI) Gets anIElementobject which implementsIProtocolSupportinterface.getFileByPath(IContext context, ILibrary library, String path) Retrieves all the files associated with a specifiedICategoryobject.Retrieves all the files associated with a specifiedICategoryobject.getFolderByPath(IContext context, ILibrary library, String path) getFolders(IContext context, IFolder parent) getFolders(IContext context, ILibrary library) getLibraries(IContext context) Retrieves all the libraries.getLibraries(IContext context, IOrganization organization) Retrieves all the libraries within a specified organization.getLibraries(IContext context, String right) Retrieves all the libraries.getLibrary(IContext context, IFile file) getLibrary(IContext context, IFolder folder) getLibrary(IContext context, IOrganization organization, String name) Retrieves aILibrarywithin a specified organization.getLibrary(IContext context, String name) Deprecated.use getLibrary( IContext context, IOrganization organization, String name ) method instead.getLibrary(Object object) getLibraryByPath(IContext context, IOrganization organization, String path) Retrieves a library by its path.getParentCategory(IContext context, ICategory category) getParentFolder(IContext context, IFile file) getParentFolder(IContext context, IFolder folder) getParentFolders(IContext context, IFile file) getParentFolders(IContext context, IFolder folder) getProperties(IContext context, IResourceDefinition resourceDefinition) getProperty(IContext context, IResourceDefinition resourceDefinition, String name) getResourceDefinition(IContext context, ILibrary library, String name) getResourceDefinition(Object object) getResourceDefinitions(IContext context, ILibrary library) getSearchController(IConnectionDefinition connectionDefinition) Gets a search controller object by specifying a ConnectionDefinition object.getSearchController(IDataSourceReference reference) getSearchController(IJdbcReference reference) Deprecated.use getSearchController( IConnectionDefinition connectionDefinition ) method instead.getSecurityController(ISecuritySupport securitySupport) getSubscriptionFrequency(IContext context, ILibrary library) Gets subscription frequency.getSubscriptions(IContext context, ILibrary library, boolean showElementInTrash) get all subscriptions for a user and a librarygetUserByLogin(String login) Deprecated.use getViewController( IContext context ) instead.getViewController(IContext context) Gets a view controller to searchIResourceobjects through their properties.getViewController(IContext context, InputStream inputStream) Gets a view controller to searchIResourceobjects through their properties.getViewController(IContext context, Class natureClass) Gets a view controller to searchIResourceobjects through their properties.getViewController(InputStream inputStream) Deprecated.use getViewController( IContext context, InputStream inputStream ) instead.getViewController(Class natureClass) Deprecated.use getViewController( IContext context, Class natureClass ) instead.booleanisCheckedOut(IContext context, IFile file) booleanAllows to move a specifiedIFileunderneath a destination folder.booleanbooleanAllows to move a specifiedIFolderunderneath a destination folder.booleanvoidsetSubscriptionFrequency(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) Sets subscription frequency.voidsetSubscriptionRecursive(IContext context, ILibrary library, ILibraryElement libraryElement) toggle subsription recursive flagvoidvoidsubscribe(IContext context, ILibrary library, ILibraryElement libraryElement) Subscribe to aILibraryElement(IFile, IFolder, ICategory)voidundoCheckOut(IContext context, IFile file) voidunsubscribe(IContext context, ILibrary library, ILibraryElement libraryElement) Unsubscribe to aILibraryElement(IFile, IFolder, ICategory)Methods inherited from interface com.axemble.vdoc.sdk.modules.IModulebeginTransaction, beginTransaction, commitTransaction, commitTransaction, convertId, findNativeClass, generateSystemName, getAnonymous, getAnonymousContext, getContext, getContext, getContextByLogin, getElementFromExternalElement, getExternalElement, getExternalElement, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getTranslation, getTranslationForLanguage, getTranslationKey, initialize, isTransactionActive, rollbackTransaction, rollbackTransaction, setTransactionTimeout, unInitialize
- 
Method Details- 
createLibraryDeprecated.use createLibrary( IContext context, IOrganization organization, String name ) method instead.Creates a library on the default organization- Parameters:
- context- The execution context.
- name- The name of the library.
- Returns:
- a ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
createLibraryILibrary createLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Creates a library on a specified organization.- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- name- The name of the library.
- Returns:
- a ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibraryDeprecated.use getLibrary( IContext context, IOrganization organization, String name ) method instead.Retrieves the firstILibrary.- Parameters:
- context- The execution context.
- name- The name of the library.
- Returns:
- a ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibraryILibrary getLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Retrieves aILibrarywithin a specified organization.- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- name- The name of the library.
- Returns:
- A ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibrariesRetrieves all the libraries.- Parameters:
- context- The execution context.
- Returns:
- A java.util.Collection of ILibraryobjects.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibrariesRetrieves all the libraries.- Parameters:
- context- The execution context.
- right- The right required.
- Returns:
- A java.util.Collection of ILibraryobjects.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibrariesRetrieves all the libraries within a specified organization.- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- Returns:
- A java.util.Collection of ILibraryobjects.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibraryByPathILibrary getLibraryByPath(IContext context, IOrganization organization, String path) throws LibraryModuleException Retrieves a library by its path.- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- path- The path to retrieve the organization from.
- Returns:
- A ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
createResourceDefinitionIResourceDefinition createResourceDefinition(IContext context, String name) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getResourceDefinitionIResourceDefinition getResourceDefinition(IContext context, ILibrary library, String name) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getResourceDefinitionsCollection<IResourceDefinition> getResourceDefinitions(IContext context, ILibrary library) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getPropertiesCollection getProperties(IContext context, IResourceDefinition resourceDefinition) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getPropertyIProperty getProperty(IContext context, IResourceDefinition resourceDefinition, String name) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getLists- Throws:
- LibraryModuleException
 
- 
getList- Throws:
- LibraryModuleException
 
- 
getParentCategory- Throws:
- LibraryModuleException
 
- 
createCategory- Throws:
- LibraryModuleException
 
- 
createCategoryICategory createCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createCategoryICategory createCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getCategoryICategory getCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getCategoryICategory getCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getCategoriesCollection<ICategory> getCategories(IContext context, ILibrary library, boolean recursive) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getCategoriesCollection getCategories(IContext context, ICategory category, boolean recursive) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createFolder- Throws:
- LibraryModuleException
 
- 
createFolder- Throws:
- LibraryModuleException
 
- 
deleteAllow to delete a folder. If used on a folder in the trash this will delete it from trash.- Parameters:
- context- The execution context.
- folder- The folder to delete
- Throws:
- LibrarySecurityException- thrown when context has no writing rights
- LibraryModuleException- thrown on any internal error
 
- 
getFolder- Throws:
- LibraryModuleException
 
- 
getFolder- Throws:
- LibraryModuleException
 
- 
getFolders- Throws:
- LibraryModuleException
 
- 
getFolders- Throws:
- LibraryModuleException
 
- 
getFolderByPathIFolder getFolderByPath(IContext context, ILibrary library, String path) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getLibrary- Throws:
- LibraryModuleException
 
- 
getParentFolder- Throws:
- LibraryModuleException
 
- 
getParentFolders- Throws:
- LibraryModuleException
 
- 
createFileIFile createFile(IContext context, ILibrary library, String name, String description, byte[] content) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createFileIFile createFile(IContext context, ILibrary library, String name, String description, InputStream content) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createFileIFile createFile(IContext context, ILibrary library, String description, IAttachment attachment) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createFileIFile createFile(IContext context, IFolder folder, String name, String description, byte[] content) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createFileIFile createFile(IContext context, IFolder folder, String name, String description, InputStream content) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createFileIFile createFile(IContext context, IFolder folder, String description, IAttachment attachment) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
deleteAllow to delete a file. If used on a file in the trash this will delete it from trash.- Parameters:
- context- The execution context.
- file- The file to delete
- Throws:
- LibraryLockException- thrown when file is checked out by another user.
- LibrarySecurityException- thrown when context has no writing rights
- LibraryModuleException- thrown on any internal error
 
- 
getFile- Throws:
- LibraryModuleException
 
- 
getFile- Throws:
- LibraryModuleException
 
- 
getFileByPath- Throws:
- LibraryModuleException
 
- 
getFiles- Throws:
- LibraryModuleException
 
- 
getFiles- Throws:
- LibraryModuleException
 
- 
getFilesRetrieves all the files associated with a specifiedICategoryobject.- Parameters:
- context- The execution context.
- category- The- ICategoryobject.
- Returns:
- a collection of IFileobjects.
- Throws:
- LibraryModuleException
 
- 
getFilesCollection getFiles(IContext context, ICategory category, boolean includeDeleted) throws LibraryModuleException Retrieves all the files associated with a specifiedICategoryobject. It allows to specify if the deleted files should be included- Parameters:
- context- The execution context.
- category- The- ICategoryobject.
- includeDeleted- The flag to include or not deleted- IFileobjects.
- Returns:
- a collection of IFileobjects.
- Throws:
- LibraryModuleException
 
- 
copyToIFolder copyTo(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyToIFolder copyTo(IContext context, IFolder folder, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- newName- The new- IFoldername.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyToIFolder copyTo(IContext context, IFolder folder, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFolderunderneath a destination folder;- Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- dest- The destination- IFolderobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyToIFolder copyTo(IContext context, IFolder folder, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFolderunderneath a destination folder;- Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- newName- The new- IFoldername.
- dest- The destination- IFolderobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyToIFile copyTo(IContext context, IFile file, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
- context- The execution context.
- file- The- IFileto copy.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
copyToIFile copyTo(IContext context, IFile file, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
- context- The execution context.
- file- The- IFileto copy.
- newName- The new- IFilename.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
copyToIFile copyTo(IContext context, IFile file, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFileunderneath a destination folder;- Parameters:
- context- The execution context.
- file- file The- IFileto copy.
- dest- The destination- IFolderobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
copyToIFile copyTo(IContext context, IFile file, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFileunderneath a destination folder;- Parameters:
- context- The execution context.
- file- file The- IFileto copy.
- dest- The destination- IFolderobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
moveToboolean moveTo(IContext context, IFolder folder, ILibrary destLibrary) throws LibraryModuleException - Parameters:
- context- The execution context.
- folder- The- IFolderto move.
- destLibrary- The destination- ILibraryobject.
- Returns:
- true if the folder has been moved, false otherwise.
- Throws:
- LibraryModuleException- The default exception.
 
- 
moveToAllows to move a specifiedIFolderunderneath a destination folder.- Parameters:
- context- The execution context.
- folder- The- IFolderto move.
- destFolder- The destination- IFolderobject.
- Returns:
- true if the folder has been moved, false otherwise.
- Throws:
- LibraryModuleException- The default exception.
 
- 
moveToboolean moveTo(IContext context, IFile file, ILibrary destLibrary, boolean bOverwrite) throws LibraryModuleException - Parameters:
- context- The execution context.
- file- The- IFileto move.
- destLibrary- The destination- ILibraryobject.
- Returns:
- true if the file has been moved, false otherwise.
- Throws:
- LibraryModuleException- The default exception.
 
- 
moveToboolean moveTo(IContext context, IFile file, IFolder destFolder, boolean bOverwrite) throws LibraryModuleException Allows to move a specifiedIFileunderneath a destination folder.- Parameters:
- context- The execution context.
- file- The- IFileto move.
- destFolder- The destination- IFolderobject.
- Returns:
- true if the file has been moved, false otherwise.
- Throws:
- LibraryModuleException- The default exception.
 
- 
getLibrary- Throws:
- LibraryModuleException
 
- 
getParentFolder- Throws:
- LibraryModuleException
 
- 
getParentFolders- Throws:
- LibraryModuleException
 
- 
getFile- Throws:
- LibraryModuleException
 
- 
getFolder- Throws:
- LibraryModuleException
 
- 
getAttachments- Throws:
- LibraryModuleException
 
- 
getAttachment- Throws:
- LibraryModuleException
 
- 
addAttachment- Throws:
- LibraryModuleException
 
- 
addAttachmentIAttachment addAttachment(IFile file, String fileName, InputStream inputStream) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
addAttachmentIAttachment addAttachment(IFile file, String fileName, String fullPath) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
addAttachment- Throws:
- LibraryModuleException
 
- 
fireDownloadHistoryEventvoid fireDownloadHistoryEvent(IContext context, IFile file, String protocol) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
setValuevoid setValue(IContext context, IFile file, String propertyName, Object value) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getValue- Throws:
- LibraryModuleException
 
- 
addCategory- Throws:
- LibraryModuleException
 
- 
addCategoriesvoid addCategories(IContext context, IFile file, Collection categories) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
checkOut- Throws:
- LibraryModuleException
 
- 
undoCheckOut- Throws:
- LibraryModuleException
 
- 
checkIn- Throws:
- LibraryModuleException
 
- 
checkedOutBy- Throws:
- LibraryModuleException
 
- 
isCheckedOut- Throws:
- LibraryModuleException
 
- 
getUserByLogin
- 
getUser- Throws:
- LibraryModuleException
 
- 
getLibrary- Throws:
- LibraryModuleException
 
- 
getFolder- Throws:
- LibraryModuleException
 
- 
getFile- Throws:
- LibraryModuleException
 
- 
getCategory- Throws:
- LibraryModuleException
 
- 
getResourceDefinition- Throws:
- LibraryModuleException
 
- 
getElementByProtocolURIGets anIElementobject which implementsIProtocolSupportinterface.- Parameters:
- protocolURI- The protocol URI as a java.lang.String.
- Returns:
- A IProtocolSupportobject.
- Throws:
- ModuleException- default module exception.
 
- 
getSearchController- Throws:
- LibraryModuleException
 
- 
getSearchController@Deprecated ISearchController getSearchController(IJdbcReference reference) throws LibraryModuleException Deprecated.use getSearchController( IConnectionDefinition connectionDefinition ) method instead.Gets a search controller object by specifying a JDBC external reference.- Parameters:
- reference- The- IJdbcReferenceobject.
- Returns:
- The ISearchControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getSearchControllerISearchController getSearchController(IConnectionDefinition connectionDefinition) throws LibraryModuleException Gets a search controller object by specifying a ConnectionDefinition object.- Parameters:
- connectionDefinition- The- IConnectionDefinitionobject.
- Returns:
- The ISearchControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getSearchController- Throws:
- LibraryModuleException
 
- 
getSecurityControllerISecurityController getSecurityController(ISecuritySupport securitySupport) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getTransformer- Throws:
- LibraryModuleException
 
- 
getViewControllerDeprecated.use getViewController( IContext context ) instead.Gets a view controller to searchIResourceobjects through their properties.- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerGets a view controller to searchIResourceobjects through their properties.- Parameters:
- context- The execution context.
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerDeprecated.use getViewController( IContext context, Class natureClass ) instead.Gets a view controller to searchIResourceobjects through their properties.- Parameters:
- natureClass- : The class of the searched objects- IWorkflowInstance,- ITaskInstance,- IResource}
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerIViewController getViewController(IContext context, Class natureClass) throws LibraryModuleException Gets a view controller to searchIResourceobjects through their properties.- Parameters:
- context- The execution context.
- natureClass- : The class of the searched objects- IWorkflowInstance,- ITaskInstance,- IResource}
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewController@Deprecated IViewController getViewController(InputStream inputStream) throws LibraryModuleException Deprecated.use getViewController( IContext context, InputStream inputStream ) instead.Gets a view controller to searchIResourceobjects through their properties.- Parameters:
- inputStream- The java.io.InputStream XML entry.
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerIViewController getViewController(IContext context, InputStream inputStream) throws LibraryModuleException Gets a view controller to searchIResourceobjects through their properties.- Parameters:
- context- The execution context.
- inputStream- The java.io.InputStream XML entry.
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getSubscriptionsCollection<ILibrarySubscription> getSubscriptions(IContext context, ILibrary library, boolean showElementInTrash) throws LibraryModuleException get all subscriptions for a user and a library- Parameters:
- context- user context
- library- library scope
- showElementInTrash- include subscribed elements that are in trash
- Returns:
- Collectioninvalid input: '<'{ @ link ILibrarySubscription }> subscriptions
- Throws:
- LibraryModuleException- default module exception
 
- 
subscribevoid subscribe(IContext context, ILibrary library, ILibraryElement libraryElement) throws LibraryModuleException Subscribe to aILibraryElement(IFile, IFolder, ICategory)- Parameters:
- context- user context
- library- library scope
- libraryElement- library element to subscribe
- Throws:
- LibraryModuleException- default module exception
 
- 
unsubscribevoid unsubscribe(IContext context, ILibrary library, ILibraryElement libraryElement) throws LibraryModuleException Unsubscribe to aILibraryElement(IFile, IFolder, ICategory)- Parameters:
- context- user context
- library- library scope
- libraryElement- library element to unsubscribe
- Throws:
- LibraryModuleException- default module exception
 
- 
setSubscriptionRecursivevoid setSubscriptionRecursive(IContext context, ILibrary library, ILibraryElement libraryElement) throws LibraryModuleException toggle subsription recursive flag- Parameters:
- context- user context
- library- library scope
- libraryElement- folder or category to set recursive flag to
- Throws:
- LibraryModuleException- default module exception
 
- 
existSubscriptionByLibraryElementboolean existSubscriptionByLibraryElement(IContext context, ILibraryElement libraryElement) throws LibraryModuleException check if theILibraryElementis subscribed by the user- Parameters:
- context- user context
- libraryElement- library element to check
- Returns:
- true if the user has subscribed to the ILibraryElement
- Throws:
- LibraryModuleException- default module exception
 
- 
getSubscriptionFrequencyIBaseLibraryModule.SubscriptionFrequency getSubscriptionFrequency(IContext context, ILibrary library) throws LibraryModuleException Gets subscription frequency.- Parameters:
- context- the context
- library- the library
- Returns:
- the subscription frequency
- Throws:
- LibraryModuleException- the library module exception
 
- 
setSubscriptionFrequencyvoid setSubscriptionFrequency(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) throws LibraryModuleException Sets subscription frequency.- Parameters:
- context- the context
- library- the library
- frequency- the frequency
- Throws:
- LibraryModuleException- the library module exception
 
 
-