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 Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe possible subscription frequencies. -
Method Summary
Modifier 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.IModule
beginTransaction, 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
-
createLibrary
Deprecated.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.
-
createLibrary
ILibrary createLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Creates a library on a specified organization.- Parameters:
context- The execution context.organization- TheIOrganizationobject.name- The name of the library.- Returns:
- a
ILibraryobject. - Throws:
LibraryModuleException- default module exception.
-
getLibrary
Deprecated.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.
-
getLibrary
ILibrary getLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Retrieves aILibrarywithin a specified organization.- Parameters:
context- The execution context.organization- TheIOrganizationobject.name- The name of the library.- Returns:
- A
ILibraryobject. - Throws:
LibraryModuleException- default module exception.
-
getLibraries
Retrieves all the libraries.- Parameters:
context- The execution context.- Returns:
- A java.util.Collection of
ILibraryobjects. - Throws:
LibraryModuleException- default module exception.
-
getLibraries
Retrieves all the libraries.- Parameters:
context- The execution context.right- The right required.- Returns:
- A java.util.Collection of
ILibraryobjects. - Throws:
LibraryModuleException- default module exception.
-
getLibraries
Retrieves all the libraries within a specified organization.- Parameters:
context- The execution context.organization- TheIOrganizationobject.- Returns:
- A java.util.Collection of
ILibraryobjects. - Throws:
LibraryModuleException- default module exception.
-
getLibraryByPath
ILibrary getLibraryByPath(IContext context, IOrganization organization, String path) throws LibraryModuleException Retrieves a library by its path.- Parameters:
context- The execution context.organization- TheIOrganizationobject.path- The path to retrieve the organization from.- Returns:
- A
ILibraryobject. - Throws:
LibraryModuleException- default module exception.
-
createResourceDefinition
IResourceDefinition createResourceDefinition(IContext context, String name) throws LibraryModuleException - Throws:
LibraryModuleException
-
getResourceDefinition
IResourceDefinition getResourceDefinition(IContext context, ILibrary library, String name) throws LibraryModuleException - Throws:
LibraryModuleException
-
getResourceDefinitions
Collection<IResourceDefinition> getResourceDefinitions(IContext context, ILibrary library) throws LibraryModuleException - Throws:
LibraryModuleException
-
getProperties
Collection getProperties(IContext context, IResourceDefinition resourceDefinition) throws LibraryModuleException - Throws:
LibraryModuleException
-
getProperty
IProperty getProperty(IContext context, IResourceDefinition resourceDefinition, String name) throws LibraryModuleException - Throws:
LibraryModuleException
-
getLists
- Throws:
LibraryModuleException
-
getList
- Throws:
LibraryModuleException
-
getParentCategory
- Throws:
LibraryModuleException
-
createCategory
- Throws:
LibraryModuleException
-
createCategory
ICategory createCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Throws:
LibraryModuleException
-
createCategory
ICategory createCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Throws:
LibraryModuleException
-
getCategory
ICategory getCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Throws:
LibraryModuleException
-
getCategory
ICategory getCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Throws:
LibraryModuleException
-
getCategories
Collection<ICategory> getCategories(IContext context, ILibrary library, boolean recursive) throws LibraryModuleException - Throws:
LibraryModuleException
-
getCategories
Collection getCategories(IContext context, ICategory category, boolean recursive) throws LibraryModuleException - Throws:
LibraryModuleException
-
createFolder
- Throws:
LibraryModuleException
-
createFolder
- Throws:
LibraryModuleException
-
delete
Allow 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 rightsLibraryModuleException- thrown on any internal error
-
getFolder
- Throws:
LibraryModuleException
-
getFolder
- Throws:
LibraryModuleException
-
getFolders
- Throws:
LibraryModuleException
-
getFolders
- Throws:
LibraryModuleException
-
getFolderByPath
IFolder getFolderByPath(IContext context, ILibrary library, String path) throws LibraryModuleException - Throws:
LibraryModuleException
-
getLibrary
- Throws:
LibraryModuleException
-
getParentFolder
- Throws:
LibraryModuleException
-
getParentFolders
- Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, ILibrary library, String name, String description, byte[] content) throws LibraryModuleException - Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, ILibrary library, String name, String description, InputStream content) throws LibraryModuleException - Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, ILibrary library, String description, IAttachment attachment) throws LibraryModuleException - Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, IFolder folder, String name, String description, byte[] content) throws LibraryModuleException - Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, IFolder folder, String name, String description, InputStream content) throws LibraryModuleException - Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, IFolder folder, String description, IAttachment attachment) throws LibraryModuleException - Throws:
LibraryModuleException
-
delete
Allow 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 rightsLibraryModuleException- thrown on any internal error
-
getFile
- Throws:
LibraryModuleException
-
getFile
- Throws:
LibraryModuleException
-
getFileByPath
- Throws:
LibraryModuleException
-
getFiles
- Throws:
LibraryModuleException
-
getFiles
- Throws:
LibraryModuleException
-
getFiles
Retrieves all the files associated with a specifiedICategoryobject.- Parameters:
context- The execution context.category- TheICategoryobject.- Returns:
- a collection of
IFileobjects. - Throws:
LibraryModuleException
-
getFiles
Collection 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- TheICategoryobject.includeDeleted- The flag to include or not deletedIFileobjects.- Returns:
- a collection of
IFileobjects. - Throws:
LibraryModuleException
-
copyTo
IFolder copyTo(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
context- The execution context.folder- TheIFolderto copy.dest- The destinationILibraryobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException
-
copyTo
IFolder copyTo(IContext context, IFolder folder, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
context- The execution context.folder- TheIFolderto copy.newName- The newIFoldername.dest- The destinationILibraryobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException
-
copyTo
IFolder 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- TheIFolderto copy.dest- The destinationIFolderobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException
-
copyTo
IFolder 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- TheIFolderto copy.newName- The newIFoldername.dest- The destinationIFolderobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException
-
copyTo
IFile copyTo(IContext context, IFile file, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
context- The execution context.file- TheIFileto copy.dest- The destinationILibraryobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
copyTo
IFile copyTo(IContext context, IFile file, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
context- The execution context.file- TheIFileto copy.newName- The newIFilename.dest- The destinationILibraryobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
copyTo
IFile 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 TheIFileto copy.dest- The destinationIFolderobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
copyTo
IFile 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 TheIFileto copy.dest- The destinationIFolderobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
moveTo
boolean moveTo(IContext context, IFolder folder, ILibrary destLibrary) throws LibraryModuleException - Parameters:
context- The execution context.folder- TheIFolderto move.destLibrary- The destinationILibraryobject.- Returns:
- true if the folder has been moved, false otherwise.
- Throws:
LibraryModuleException- The default exception.
-
moveTo
Allows to move a specifiedIFolderunderneath a destination folder.- Parameters:
context- The execution context.folder- TheIFolderto move.destFolder- The destinationIFolderobject.- Returns:
- true if the folder has been moved, false otherwise.
- Throws:
LibraryModuleException- The default exception.
-
moveTo
boolean moveTo(IContext context, IFile file, ILibrary destLibrary, boolean bOverwrite) throws LibraryModuleException - Parameters:
context- The execution context.file- TheIFileto move.destLibrary- The destinationILibraryobject.- Returns:
- true if the file has been moved, false otherwise.
- Throws:
LibraryModuleException- The default exception.
-
moveTo
boolean 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- TheIFileto move.destFolder- The destinationIFolderobject.- 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
-
addAttachment
IAttachment addAttachment(IFile file, String fileName, InputStream inputStream) throws LibraryModuleException - Throws:
LibraryModuleException
-
addAttachment
IAttachment addAttachment(IFile file, String fileName, String fullPath) throws LibraryModuleException - Throws:
LibraryModuleException
-
addAttachment
- Throws:
LibraryModuleException
-
fireDownloadHistoryEvent
void fireDownloadHistoryEvent(IContext context, IFile file, String protocol) throws LibraryModuleException - Throws:
LibraryModuleException
-
setValue
void setValue(IContext context, IFile file, String propertyName, Object value) throws LibraryModuleException - Throws:
LibraryModuleException
-
getValue
- Throws:
LibraryModuleException
-
addCategory
- Throws:
LibraryModuleException
-
addCategories
void 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
-
getElementByProtocolURI
Gets 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- TheIJdbcReferenceobject.- Returns:
- The
ISearchControllerobject. - Throws:
LibraryModuleException- default module exception.
-
getSearchController
ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws LibraryModuleException Gets a search controller object by specifying a ConnectionDefinition object.- Parameters:
connectionDefinition- TheIConnectionDefinitionobject.- Returns:
- The
ISearchControllerobject. - Throws:
LibraryModuleException- default module exception.
-
getSearchController
- Throws:
LibraryModuleException
-
getSecurityController
ISecurityController getSecurityController(ISecuritySupport securitySupport) throws LibraryModuleException - Throws:
LibraryModuleException
-
getTransformer
- Throws:
LibraryModuleException
-
getViewController
Deprecated.use getViewController( IContext context ) instead.Gets a view controller to searchIResourceobjects through their properties.- Returns:
- A
IViewControllerobject. - Throws:
LibraryModuleException- default module exception.
-
getViewController
Gets a view controller to searchIResourceobjects through their properties.- Parameters:
context- The execution context.- Returns:
- A
IViewControllerobject. - Throws:
LibraryModuleException- default module exception.
-
getViewController
Deprecated.use getViewController( IContext context, Class natureClass ) instead.Gets a view controller to searchIResourceobjects through their properties.- Parameters:
natureClass- : The class of the searched objectsIWorkflowInstance,ITaskInstance,IResource}- Returns:
- A
IViewControllerobject. - Throws:
LibraryModuleException- default module exception.
-
getViewController
IViewController 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 objectsIWorkflowInstance,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.
-
getViewController
IViewController 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.
-
getSubscriptions
Collection<ILibrarySubscription> getSubscriptions(IContext context, ILibrary library, boolean showElementInTrash) throws LibraryModuleException get all subscriptions for a user and a library- Parameters:
context- user contextlibrary- library scopeshowElementInTrash- include subscribed elements that are in trash- Returns:
- Collectioninvalid input: '<'{ @ link ILibrarySubscription }> subscriptions
- Throws:
LibraryModuleException- default module exception
-
subscribe
void subscribe(IContext context, ILibrary library, ILibraryElement libraryElement) throws LibraryModuleException Subscribe to aILibraryElement(IFile, IFolder, ICategory)- Parameters:
context- user contextlibrary- library scopelibraryElement- library element to subscribe- Throws:
LibraryModuleException- default module exception
-
unsubscribe
void unsubscribe(IContext context, ILibrary library, ILibraryElement libraryElement) throws LibraryModuleException Unsubscribe to aILibraryElement(IFile, IFolder, ICategory)- Parameters:
context- user contextlibrary- library scopelibraryElement- library element to unsubscribe- Throws:
LibraryModuleException- default module exception
-
setSubscriptionRecursive
void setSubscriptionRecursive(IContext context, ILibrary library, ILibraryElement libraryElement) throws LibraryModuleException toggle subsription recursive flag- Parameters:
context- user contextlibrary- library scopelibraryElement- folder or category to set recursive flag to- Throws:
LibraryModuleException- default module exception
-
existSubscriptionByLibraryElement
boolean existSubscriptionByLibraryElement(IContext context, ILibraryElement libraryElement) throws LibraryModuleException check if theILibraryElementis subscribed by the user- Parameters:
context- user contextlibraryElement- library element to check- Returns:
- true if the user has subscribed to the
ILibraryElement - Throws:
LibraryModuleException- default module exception
-
getSubscriptionFrequency
IBaseLibraryModule.SubscriptionFrequency getSubscriptionFrequency(IContext context, ILibrary library) throws LibraryModuleException Gets subscription frequency.- Parameters:
context- the contextlibrary- the library- Returns:
- the subscription frequency
- Throws:
LibraryModuleException- the library module exception
-
setSubscriptionFrequency
void setSubscriptionFrequency(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) throws LibraryModuleException Sets subscription frequency.- Parameters:
context- the contextlibrary- the libraryfrequency- the frequency- Throws:
LibraryModuleException- the library module exception
-