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
Modifier and TypeInterfaceDescriptionstatic enum
The 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) void
addCategories
(IContext context, IFile file, Collection categories) void
addCategory
(IContext context, IFile file, ICategory category) checkedOutBy
(IContext context, IFile file) void
void
copyTo
(IContext context, IFile file, IFolder dest, CopyOption... copyOptions) Allows to copy a specifiedIFile
underneath a destination folder;copyTo
(IContext context, IFile file, ILibrary dest, CopyOption... copyOptions) Allows to copy a specifiedIFile
underneath a destination folder;copyTo
(IContext context, IFolder folder, IFolder dest, CopyOption... copyOptions) Allows to copy a specifiedIFolder
underneath a destination folder;copyTo
(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) Allows to copy a specifiedIFolder
underneath 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) void
Allow to delete a file.void
Allow to delete a folder.boolean
existSubscriptionByLibraryElement
(IContext context, ILibraryElement libraryElement) check if theILibraryElement
is subscribed by the uservoid
fireDownloadHistoryEvent
(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 anIElement
object which implementsIProtocolSupport
interface.getFileByPath
(IContext context, ILibrary library, String path) Retrieves all the files associated with a specifiedICategory
object.Retrieves all the files associated with a specifiedICategory
object.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 aILibrary
within 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 searchIResource
objects through their properties.getViewController
(IContext context, InputStream inputStream) Gets a view controller to searchIResource
objects through their properties.getViewController
(IContext context, Class natureClass) Gets a view controller to searchIResource
objects 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.boolean
isCheckedOut
(IContext context, IFile file) boolean
Allows to move a specifiedIFile
underneath a destination folder.boolean
boolean
Allows to move a specifiedIFolder
underneath a destination folder.boolean
void
setSubscriptionFrequency
(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) Sets subscription frequency.void
setSubscriptionRecursive
(IContext context, ILibrary library, ILibraryElement libraryElement) toggle subsription recursive flagvoid
void
subscribe
(IContext context, ILibrary library, ILibraryElement libraryElement) Subscribe to aILibraryElement
(IFile, IFolder, ICategory)void
undoCheckOut
(IContext context, IFile file) void
unsubscribe
(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
ILibrary
object. - 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
- TheIOrganization
object.name
- The name of the library.- Returns:
- a
ILibrary
object. - 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
ILibrary
object. - Throws:
LibraryModuleException
- default module exception.
-
getLibrary
ILibrary getLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Retrieves aILibrary
within a specified organization.- Parameters:
context
- The execution context.organization
- TheIOrganization
object.name
- The name of the library.- Returns:
- A
ILibrary
object. - Throws:
LibraryModuleException
- default module exception.
-
getLibraries
Retrieves all the libraries.- Parameters:
context
- The execution context.- Returns:
- A java.util.Collection of
ILibrary
objects. - 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
ILibrary
objects. - Throws:
LibraryModuleException
- default module exception.
-
getLibraries
Retrieves all the libraries within a specified organization.- Parameters:
context
- The execution context.organization
- TheIOrganization
object.- Returns:
- A java.util.Collection of
ILibrary
objects. - 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
- TheIOrganization
object.path
- The path to retrieve the organization from.- Returns:
- A
ILibrary
object. - 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 specifiedICategory
object.- Parameters:
context
- The execution context.category
- TheICategory
object.- Returns:
- a collection of
IFile
objects. - Throws:
LibraryModuleException
-
getFiles
Collection getFiles(IContext context, ICategory category, boolean includeDeleted) throws LibraryModuleException Retrieves all the files associated with a specifiedICategory
object. It allows to specify if the deleted files should be included- Parameters:
context
- The execution context.category
- TheICategory
object.includeDeleted
- The flag to include or not deletedIFile
objects.- Returns:
- a collection of
IFile
objects. - Throws:
LibraryModuleException
-
copyTo
IFolder copyTo(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Parameters:
context
- The execution context.folder
- TheIFolder
to copy.dest
- The destinationILibrary
object.- 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
- TheIFolder
to copy.newName
- The newIFolder
name.dest
- The destinationILibrary
object.- Returns:
- the newly created folder
- Throws:
LibraryModuleException
-
copyTo
IFolder copyTo(IContext context, IFolder folder, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFolder
underneath a destination folder;- Parameters:
context
- The execution context.folder
- TheIFolder
to copy.dest
- The destinationIFolder
object.- 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 specifiedIFolder
underneath a destination folder;- Parameters:
context
- The execution context.folder
- TheIFolder
to copy.newName
- The newIFolder
name.dest
- The destinationIFolder
object.- 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
- TheIFile
to copy.dest
- The destinationILibrary
object.- 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
- TheIFile
to copy.newName
- The newIFile
name.dest
- The destinationILibrary
object.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
copyTo
IFile copyTo(IContext context, IFile file, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFile
underneath a destination folder;- Parameters:
context
- The execution context.file
- file TheIFile
to copy.dest
- The destinationIFolder
object.- 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 specifiedIFile
underneath a destination folder;- Parameters:
context
- The execution context.file
- file TheIFile
to copy.dest
- The destinationIFolder
object.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
moveTo
boolean moveTo(IContext context, IFolder folder, ILibrary destLibrary) throws LibraryModuleException - Parameters:
context
- The execution context.folder
- TheIFolder
to move.destLibrary
- The destinationILibrary
object.- Returns:
- true if the folder has been moved, false otherwise.
- Throws:
LibraryModuleException
- The default exception.
-
moveTo
Allows to move a specifiedIFolder
underneath a destination folder.- Parameters:
context
- The execution context.folder
- TheIFolder
to move.destFolder
- The destinationIFolder
object.- 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
- TheIFile
to move.destLibrary
- The destinationILibrary
object.- 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 specifiedIFile
underneath a destination folder.- Parameters:
context
- The execution context.file
- TheIFile
to move.destFolder
- The destinationIFolder
object.- 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 anIElement
object which implementsIProtocolSupport
interface.- Parameters:
protocolURI
- The protocol URI as a java.lang.String.- Returns:
- A
IProtocolSupport
object. - 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
- TheIJdbcReference
object.- Returns:
- The
ISearchController
object. - Throws:
LibraryModuleException
- default module exception.
-
getSearchController
ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws LibraryModuleException Gets a search controller object by specifying a ConnectionDefinition object.- Parameters:
connectionDefinition
- TheIConnectionDefinition
object.- Returns:
- The
ISearchController
object. - 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 searchIResource
objects through their properties.- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
Gets a view controller to searchIResource
objects through their properties.- Parameters:
context
- The execution context.- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
Deprecated.use getViewController( IContext context, Class natureClass ) instead.Gets a view controller to searchIResource
objects through their properties.- Parameters:
natureClass
- : The class of the searched objectsIWorkflowInstance
,ITaskInstance
,IResource
}- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
IViewController getViewController(IContext context, Class natureClass) throws LibraryModuleException Gets a view controller to searchIResource
objects through their properties.- Parameters:
context
- The execution context.natureClass
- : The class of the searched objectsIWorkflowInstance
,ITaskInstance
,IResource
}- Returns:
- A
IViewController
object. - 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 searchIResource
objects through their properties.- Parameters:
inputStream
- The java.io.InputStream XML entry.- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
IViewController getViewController(IContext context, InputStream inputStream) throws LibraryModuleException Gets a view controller to searchIResource
objects through their properties.- Parameters:
context
- The execution context.inputStream
- The java.io.InputStream XML entry.- Returns:
- A
IViewController
object. - 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 theILibraryElement
is 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
-