Package com.axemble.vdoc.sdk.modules
Interface ILibraryModule
- All Superinterfaces:
IBaseLibraryModule,IModule,Remote
- All Known Implementing Classes:
CustomPortalLibraryModule,PortalLibraryModule
The library module interface.
Code sample :
// creation of a library module object
ILibraryModule libraryModule = SDKFactory.MODULES.getLibraryModule();
try
{
}
finally
{
// uninitialize the module
SDKFactory.MODULES.releaseModule(libraryModule);
}
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.axemble.vdoc.sdk.modules.IBaseLibraryModule
IBaseLibraryModule.SubscriptionFrequency -
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- Specified by:
createLibraryin interfaceIBaseLibraryModule- 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.- Specified by:
createLibraryin interfaceIBaseLibraryModule- 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.- Specified by:
getLibraryin interfaceIBaseLibraryModule- 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.- Specified by:
getLibraryin interfaceIBaseLibraryModule- 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.- Specified by:
getLibrariesin interfaceIBaseLibraryModule- Parameters:
context- The execution context.- Returns:
- A java.util.Collection of
ILibraryobjects. - Throws:
LibraryModuleException- default module exception.
-
getLibraries
Retrieves all the libraries.- Specified by:
getLibrariesin interfaceIBaseLibraryModule- 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.- Specified by:
getLibrariesin interfaceIBaseLibraryModule- 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.- Specified by:
getLibraryByPathin interfaceIBaseLibraryModule- 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 - Specified by:
createResourceDefinitionin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getResourceDefinition
IResourceDefinition getResourceDefinition(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
getResourceDefinitionin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getResourceDefinitions
Collection<IResourceDefinition> getResourceDefinitions(IContext context, ILibrary library) throws LibraryModuleException - Specified by:
getResourceDefinitionsin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getProperties
Collection getProperties(IContext context, IResourceDefinition resourceDefinition) throws LibraryModuleException - Specified by:
getPropertiesin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getProperty
IProperty getProperty(IContext context, IResourceDefinition resourceDefinition, String name) throws LibraryModuleException - Specified by:
getPropertyin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getLists
- Specified by:
getListsin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getList
- Specified by:
getListin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getParentCategory
- Specified by:
getParentCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createCategory
- Specified by:
createCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createCategory
ICategory createCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
createCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createCategory
ICategory createCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Specified by:
createCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getCategory
ICategory getCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
getCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getCategory
ICategory getCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Specified by:
getCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getCategories
Collection<ICategory> getCategories(IContext context, ILibrary library, boolean recursive) throws LibraryModuleException - Specified by:
getCategoriesin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getCategories
Collection getCategories(IContext context, ICategory category, boolean recursive) throws LibraryModuleException - Specified by:
getCategoriesin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFolder
- Specified by:
createFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFolder
- Specified by:
createFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
delete
Allow to delete a folder. If used on a folder in the trash this will delete it from trash.- Specified by:
deletein interfaceIBaseLibraryModule- 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
- Specified by:
getFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFolder
- Specified by:
getFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFolders
- Specified by:
getFoldersin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFolders
- Specified by:
getFoldersin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFolderByPath
IFolder getFolderByPath(IContext context, ILibrary library, String path) throws LibraryModuleException - Specified by:
getFolderByPathin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getLibrary
- Specified by:
getLibraryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getParentFolder
- Specified by:
getParentFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getParentFolders
- Specified by:
getParentFoldersin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, ILibrary library, String name, String description, byte[] content) throws LibraryModuleException - Specified by:
createFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, ILibrary library, String name, String description, InputStream content) throws LibraryModuleException - Specified by:
createFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, ILibrary library, String description, IAttachment attachment) throws LibraryModuleException - Specified by:
createFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, IFolder folder, String name, String description, byte[] content) throws LibraryModuleException - Specified by:
createFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, IFolder folder, String name, String description, InputStream content) throws LibraryModuleException - Specified by:
createFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
createFile
IFile createFile(IContext context, IFolder folder, String description, IAttachment attachment) throws LibraryModuleException - Specified by:
createFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
delete
Allow to delete a file. If used on a file in the trash this will delete it from trash.- Specified by:
deletein interfaceIBaseLibraryModule- 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
- Specified by:
getFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFile
- Specified by:
getFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFileByPath
- Specified by:
getFileByPathin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFiles
- Specified by:
getFilesin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFiles
- Specified by:
getFilesin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFiles
Retrieves all the files associated with a specifiedICategoryobject.- Specified by:
getFilesin interfaceIBaseLibraryModule- Parameters:
context- The execution context.category- TheICategoryobject.- Returns:
- a collection of
IFileobjects. - Throws:
LibraryModuleException- default module exception.
-
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- Specified by:
getFilesin interfaceIBaseLibraryModule- Parameters:
context- The execution context.category- TheICategoryobject.includeDeleted- The flag to include or not deletedIFileobjects.- Returns:
- a collection of
IFileobjects. - Throws:
LibraryModuleException- default module exception.
-
copyTo
IFolder copyTo(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.folder- TheIFolderto copy.dest- The destinationILibraryobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException- default module exception.
-
copyTo
IFolder copyTo(IContext context, IFolder folder, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.folder- TheIFolderto copy.newName- The newIFoldername.dest- The destinationILibraryobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException- default module exception.
-
copyTo
IFolder copyTo(IContext context, IFolder folder, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFolderunderneath a destination folder;- Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.folder- TheIFolderto copy.dest- The destinationIFolderobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException- default module exception.
-
copyTo
IFolder copyTo(IContext context, IFolder folder, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFolderunderneath a destination folder;- Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.folder- TheIFolderto copy.newName- The newIFoldername.dest- The destinationIFolderobject.- Returns:
- the newly created folder
- Throws:
LibraryModuleException- default module exception.
-
copyTo
IFile copyTo(IContext context, IFile file, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.file- TheIFileto copy.dest- The destinationILibraryobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException- default module exception.
-
copyTo
IFile copyTo(IContext context, IFile file, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException - Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.file- TheIFileto copy.newName- The newIFilename.dest- The destinationILibraryobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException- default module exception.
-
copyTo
IFile copyTo(IContext context, IFile file, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFileunderneath a destination folder;- Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.file- file TheIFileto copy.dest- The destinationIFolderobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException- default module exception.
-
copyTo
IFile copyTo(IContext context, IFile file, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Allows to copy a specifiedIFileunderneath a destination folder;- Specified by:
copyToin interfaceIBaseLibraryModule- Parameters:
context- The execution context.file- file TheIFileto copy.dest- The destinationIFolderobject.- Returns:
- the newly created file
- Throws:
LibraryModuleException- default module exception.
-
moveTo
boolean moveTo(IContext context, IFolder folder, ILibrary destLibrary) throws LibraryModuleException - Specified by:
moveToin interfaceIBaseLibraryModule- 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.- Specified by:
moveToin interfaceIBaseLibraryModule- 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 - Specified by:
moveToin interfaceIBaseLibraryModule- 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.- Specified by:
moveToin interfaceIBaseLibraryModule- 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
- Specified by:
getLibraryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getParentFolder
- Specified by:
getParentFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getParentFolders
- Specified by:
getParentFoldersin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFile
- Specified by:
getFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFolder
- Specified by:
getFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getAttachments
- Specified by:
getAttachmentsin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getAttachment
- Specified by:
getAttachmentin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
addAttachment
- Specified by:
addAttachmentin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
addAttachment
IAttachment addAttachment(IFile file, String fileName, InputStream inputStream) throws LibraryModuleException - Specified by:
addAttachmentin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
addAttachment
IAttachment addAttachment(IFile file, String fileName, String fullPath) throws LibraryModuleException - Specified by:
addAttachmentin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
addAttachment
- Specified by:
addAttachmentin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
fireDownloadHistoryEvent
void fireDownloadHistoryEvent(IContext context, IFile file, String protocol) throws LibraryModuleException - Specified by:
fireDownloadHistoryEventin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
setValue
void setValue(IContext context, IFile file, String propertyName, Object value) throws LibraryModuleException - Specified by:
setValuein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getValue
- Specified by:
getValuein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
addCategory
- Specified by:
addCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
addCategories
void addCategories(IContext context, IFile file, Collection categories) throws LibraryModuleException - Specified by:
addCategoriesin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
checkOut
- Specified by:
checkOutin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
undoCheckOut
- Specified by:
undoCheckOutin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
checkIn
- Specified by:
checkInin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
checkedOutBy
- Specified by:
checkedOutByin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
isCheckedOut
- Specified by:
isCheckedOutin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getUserByLogin
- Specified by:
getUserByLoginin interfaceIBaseLibraryModule
-
getUser
- Specified by:
getUserin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getLibrary
- Specified by:
getLibraryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFolder
- Specified by:
getFolderin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getFile
- Specified by:
getFilein interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getCategory
- Specified by:
getCategoryin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getResourceDefinition
- Specified by:
getResourceDefinitionin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getElementByProtocolURI
Gets anIElementobject which implementsIProtocolSupportinterface.- Specified by:
getElementByProtocolURIin interfaceIBaseLibraryModule- Parameters:
protocolURI- The protocol URI as a java.lang.String.- Returns:
- A
IProtocolSupportobject. - Throws:
ModuleException- default module exception.
-
getSearchController
- Specified by:
getSearchControllerin interfaceIBaseLibraryModule- 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.- Specified by:
getSearchControllerin interfaceIBaseLibraryModule- 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.- Specified by:
getSearchControllerin interfaceIBaseLibraryModule- Parameters:
connectionDefinition- TheIConnectionDefinitionobject.- Returns:
- The
ISearchControllerobject. - Throws:
LibraryModuleException- default module exception.
-
getSearchController
- Specified by:
getSearchControllerin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getSecurityController
ISecurityController getSecurityController(ISecuritySupport securitySupport) throws LibraryModuleException - Specified by:
getSecurityControllerin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getTransformer
- Specified by:
getTransformerin interfaceIBaseLibraryModule- Throws:
LibraryModuleException
-
getViewController
Deprecated.use getViewController( IContext context ) instead.Gets a view controller to searchIResourceobjects through their properties.- Specified by:
getViewControllerin interfaceIBaseLibraryModule- Returns:
- A
IViewControllerobject. - Throws:
LibraryModuleException- default module exception.
-
getViewController
Gets a view controller to searchIResourceobjects through their properties.- Specified by:
getViewControllerin interfaceIBaseLibraryModule- 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.- Specified by:
getViewControllerin interfaceIBaseLibraryModule- 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.- Specified by:
getViewControllerin interfaceIBaseLibraryModule- 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.- Specified by:
getViewControllerin interfaceIBaseLibraryModule- 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.- Specified by:
getViewControllerin interfaceIBaseLibraryModule- 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- Specified by:
getSubscriptionsin interfaceIBaseLibraryModule- 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)- Specified by:
subscribein interfaceIBaseLibraryModule- 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)- Specified by:
unsubscribein interfaceIBaseLibraryModule- 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- Specified by:
setSubscriptionRecursivein interfaceIBaseLibraryModule- 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- Specified by:
existSubscriptionByLibraryElementin interfaceIBaseLibraryModule- 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.- Specified by:
getSubscriptionFrequencyin interfaceIBaseLibraryModule- 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.- Specified by:
setSubscriptionFrequencyin interfaceIBaseLibraryModule- Parameters:
context- the contextlibrary- the libraryfrequency- the frequency- Throws:
LibraryModuleException- the library module exception
-