Package com.axemble.vdoc.sdk.impl
Class PortalLibraryModule
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
com.axemble.vdoc.sdk.impl.PortalModule
com.axemble.vdoc.sdk.impl.PortalLibraryModule
- All Implemented Interfaces:
- IBaseLibraryModule,- ILibraryModule,- IModule,- Remote
- Author:
- vlygeros
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.axemble.vdoc.sdk.modules.IBaseLibraryModuleIBaseLibraryModule.SubscriptionFrequency
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static HashMapprotected static final intprotected static final intprotected static final intprotected javax.jdo.PersistenceManagerFields inherited from class com.axemble.vdoc.sdk.impl.PortalModulecurrentContext, report
- 
Constructor SummaryConstructors
- 
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) Starts a new transaction or use the current one.beginTransaction(Object currentObject) Starts a new transaction if required.checkedOutBy(IContext context, IFile file) voidvoidvoidCommits the current transaction.voidcommitTransaction(Object currentObject) Commits the current transaction.copyTo(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 parent, 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 inputStream) 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 inputStream) 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) Creates a library on the default organizationcreateResourceDefinition(IContext context, String name) createResourceDefinition(IContext context, String name, String displayName, ILibrary library) voidAllow to delete a file.voidAllow to delete a folder.booleanexistSubscriptionByLibraryElement(IContext context, ILibraryElement libraryElement) check if theILibraryElementis subscribed by the userfindNativeClass(Class interfaceClass) Allows to retrieve the inner native class.voidfireDownloadHistoryEvent(IContext context, IFile file, String protocol) Fire download history event on IFilegetAttachment(IFile file, String fileName) getAttachment(IResourceHistory.ISnapshot snapshot) 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) getDeletedNodes(IContext context, ILibrary library) 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) Retrieves the firstILibrary.getLibrary(Object object) getLibraryByPath(IContext context, IOrganization organization, String path) Retrieves a library by its path.protected static ClassgetNativeClass(Class interfaceClass) 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) javax.jdo.PersistenceManagergetProperties(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) getRootFolder(ILibrary dest) getSearchController(IConnectionDefinition connectionDefinition) Gets a search controller object by specifying a ConnectionDefinition object.getSearchController(IDataSourceReference reference) getSearchController(IJdbcReference reference) Gets a search controller object by specifying a JDBC external reference.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 libraryDeprecated.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) Gets a view controller to searchIResourceobjects through their properties.getViewController(Class natureClass) Deprecated.voidinitialize(Properties properties) Initializes the module.booleanisCheckedOut(IContext context, IFile file) booleanChecks if there is a current transaction.booleanAllows to move a specifiedIFileunderneath a destination folder.booleanbooleanAllows to move a specifiedIFolderunderneath a destination folder.booleanvoidvoidRoll back the current transaction.voidrollbackTransaction(Object currentObject) Roll back the current transaction.voidsetSubscriptionFrequency(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) Sets subscription frequency.voidsetSubscriptionRecursive(IContext context, ILibrary library, ILibraryElement element) toggle subsription recursive flagvoidsetTransactionTimeout(int transactionTimeout) Allows the set the transaction timeout.voidvoidsubscribe(IContext context, ILibrary library, ILibraryElement element) Subscribe to aILibraryElement(IFile, IFolder, ICategory)voidundoCheckOut(IContext context, IFile file) voidReleases the module.voidunsubscribe(IContext context, ILibrary library, ILibraryElement element) Unsubscribe to aILibraryElement(IFile, IFolder, ICategory)Methods inherited from class com.axemble.vdoc.sdk.impl.PortalModuleconvertId, generateSystemName, getAnonymous, getAnonymousContext, getContext, getContext, getContext, getContextByLogin, getCurrentContext, getElementFromExternalElement, getExternalElement, getExternalElement, getLanguage, getLoggedOnUser, getLoggedOnUserContext, getLoggedOnUserLanguage, getProtocolPath, getProtocolPath, getProtocolURI, getProtocolURI, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getStaticString, getSysadmin, getSysadminContext, getUser, getUser, getUserByLogin, refreshUserMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModulegetTranslation, getTranslationForLanguage, getTranslationKeyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.modules.IBaseLibraryModulegetUserByLoginMethods inherited from interface com.axemble.vdoc.sdk.modules.IModuleconvertId, 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
- 
Field Details- 
ONE_KILO_OCTETSprotected static final int ONE_KILO_OCTETS- See Also:
 
- 
ONE_MEGA_OCTETSprotected static final int ONE_MEGA_OCTETS- See Also:
 
- 
ONE_GIGA_OCTETSprotected static final int ONE_GIGA_OCTETS- See Also:
 
- 
nativeClasses
- 
persistenceManagerprotected javax.jdo.PersistenceManager persistenceManager
 
- 
- 
Constructor Details- 
PortalLibraryModulepublic PortalLibraryModule()
 
- 
- 
Method Details- 
getNativeClass
- 
initializeDescription copied from interface:IModuleInitializes the module.- Specified by:
- initializein interface- IModule
- Parameters:
- properties- The custom properties.
 
- 
unInitializepublic void unInitialize()Description copied from interface:IModuleReleases the module.- Specified by:
- unInitializein interface- IModule
 
- 
findNativeClassDescription copied from interface:IModuleAllows to retrieve the inner native class.- Specified by:
- findNativeClassin interface- IModule
- Parameters:
- interfaceClass- A class type.
- Returns:
- The inner native class.
 
- 
getPersistenceManagerpublic javax.jdo.PersistenceManager getPersistenceManager()- Specified by:
- getPersistenceManagerin class- PortalModule
 
- 
setTransactionTimeoutDescription copied from interface:IModuleAllows the set the transaction timeout.- Specified by:
- setTransactionTimeoutin interface- IModule
- Parameters:
- transactionTimeout- The transaction timeout in milliseconds.
- Throws:
- ModuleException- The default exception.
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction or use the current one.- Specified by:
- beginTransactionin interface- IModule
- Returns:
- The report object.
 
- 
commitTransactionpublic void commitTransaction()Description copied from interface:IModuleCommits the current transaction.- Specified by:
- commitTransactionin interface- IModule
 
- 
rollbackTransactionpublic void rollbackTransaction()Description copied from interface:IModuleRoll back the current transaction.- Specified by:
- rollbackTransactionin interface- IModule
 
- 
beginTransactionDescription copied from interface:IModuleStarts a new transaction if required.- Specified by:
- beginTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
- Returns:
- The report object.
 
- 
commitTransactionDescription copied from interface:IModuleCommits the current transaction.- Specified by:
- commitTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
rollbackTransactionDescription copied from interface:IModuleRoll back the current transaction.- Specified by:
- rollbackTransactionin interface- IModule
- Parameters:
- currentObject- The synchronized object. Not used anymore.
 
- 
isTransactionActivepublic boolean isTransactionActive()Description copied from interface:IModuleChecks if there is a current transaction.- Specified by:
- isTransactionActivein interface- IModule
- Returns:
- true if a transaction has been started, false otherwise.
 
- 
createLibraryDescription copied from interface:IBaseLibraryModuleCreates a library on the default organization- Specified by:
- createLibraryin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- name- The name of the library.
- Returns:
- a ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
createLibrarypublic ILibrary createLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleCreates a library on a specified organization.- Specified by:
- createLibraryin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- name- The name of the library.
- Returns:
- a ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibraryDescription copied from interface:IBaseLibraryModuleRetrieves the firstILibrary.- Specified by:
- getLibraryin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- name- The name of the library.
- Returns:
- a ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibrarypublic ILibrary getLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleRetrieves aILibrarywithin a specified organization.- Specified by:
- getLibraryin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- name- The name of the library.
- Returns:
- A ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibrariesDescription copied from interface:IBaseLibraryModuleRetrieves all the libraries.- Specified by:
- getLibrariesin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- Returns:
- A java.util.Collection of ILibraryobjects.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibrariesDescription copied from interface:IBaseLibraryModuleRetrieves all the libraries.- Specified by:
- getLibrariesin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- right- The right required.
- Returns:
- A java.util.Collection of ILibraryobjects.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getLibrariespublic Collection getLibraries(IContext context, IOrganization organization) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleRetrieves all the libraries within a specified organization.- Specified by:
- getLibrariesin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- Returns:
- A java.util.Collection of ILibraryobjects.
- Throws:
- LibraryModuleException- default module exception.
 
- 
createFolderpublic IFolder createFolder(IContext context, IFolder parent, String name) throws LibraryModuleException - Specified by:
- createFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createFolderpublic IFolder createFolder(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
- createFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
deleteDescription copied from interface:IBaseLibraryModuleAllow to delete a folder. If used on a folder in the trash this will delete it from trash.- Specified by:
- deletein interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- folder- The folder to delete
- Throws:
- LibraryModuleException- thrown on any internal error
 
- 
getFolderpublic IFolder getFolder(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
- getFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFolderpublic IFolder getFolder(IContext context, IFolder parent, String name) throws LibraryModuleException - Specified by:
- getFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFolders- Specified by:
- getFoldersin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFolders- Specified by:
- getFoldersin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getDeletedNodespublic Collection<IElement> getDeletedNodes(IContext context, ILibrary library) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
getSubscriptionspublic Collection<ILibrarySubscription> getSubscriptions(IContext context, ILibrary library, boolean showElementInTrash) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleget all subscriptions for a user and a library- Specified by:
- getSubscriptionsin interface- IBaseLibraryModule
- 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
 
- 
setSubscriptionRecursivepublic void setSubscriptionRecursive(IContext context, ILibrary library, ILibraryElement element) throws LibraryModuleException Description copied from interface:IBaseLibraryModuletoggle subsription recursive flag- Specified by:
- setSubscriptionRecursivein interface- IBaseLibraryModule
- Parameters:
- context- user context
- library- library scope
- element- folder or category to set recursive flag to
- Throws:
- LibraryModuleException- default module exception
 
- 
subscribepublic void subscribe(IContext context, ILibrary library, ILibraryElement element) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleSubscribe to aILibraryElement(IFile, IFolder, ICategory)- Specified by:
- subscribein interface- IBaseLibraryModule
- Parameters:
- context- user context
- library- library scope
- element- library element to subscribe
- Throws:
- LibraryModuleException- default module exception
 
- 
existSubscriptionByLibraryElementDescription copied from interface:IBaseLibraryModulecheck if theILibraryElementis subscribed by the user- Specified by:
- existSubscriptionByLibraryElementin interface- IBaseLibraryModule
- Parameters:
- context- user context
- libraryElement- library element to check
- Returns:
- true if the user has subscribed to the ILibraryElement
 
- 
getSubscriptionFrequencypublic IBaseLibraryModule.SubscriptionFrequency getSubscriptionFrequency(IContext context, ILibrary library) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleGets subscription frequency.- Specified by:
- getSubscriptionFrequencyin interface- IBaseLibraryModule
- Parameters:
- context- the context
- library- the library
- Returns:
- the subscription frequency
- Throws:
- LibraryModuleException- the library module exception
 
- 
setSubscriptionFrequencypublic void setSubscriptionFrequency(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleSets subscription frequency.- Specified by:
- setSubscriptionFrequencyin interface- IBaseLibraryModule
- Parameters:
- context- the context
- library- the library
- frequency- the frequency
- Throws:
- LibraryModuleException- the library module exception
 
- 
unsubscribepublic void unsubscribe(IContext context, ILibrary library, ILibraryElement element) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleUnsubscribe to aILibraryElement(IFile, IFolder, ICategory)- Specified by:
- unsubscribein interface- IBaseLibraryModule
- Parameters:
- context- user context
- library- library scope
- element- library element to unsubscribe
- Throws:
- LibraryModuleException- default module exception
 
- 
restorepublic void restore(IContext context, ILibrary library, IElement element) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createFilepublic IFile createFile(IContext context, ILibrary library, String name, String description, InputStream inputStream) throws LibraryModuleException - Specified by:
- createFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createFilepublic IFile createFile(IContext context, IFolder folder, String name, String description, InputStream inputStream) throws LibraryModuleException - Specified by:
- createFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createFilepublic IFile createFile(IContext context, IFolder folder, String name, String description, byte[] content) throws LibraryModuleException - Specified by:
- createFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createFilepublic IFile createFile(IContext context, IFolder folder, String description, IAttachment attachment) throws LibraryModuleException - Specified by:
- createFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createFilepublic IFile createFile(IContext context, ILibrary library, String description, IAttachment attachment) throws LibraryModuleException - Specified by:
- createFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createFilepublic IFile createFile(IContext context, ILibrary library, String name, String description, byte[] content) throws LibraryModuleException - Specified by:
- createFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
deleteDescription copied from interface:IBaseLibraryModuleAllow to delete a file. If used on a file in the trash this will delete it from trash.- Specified by:
- deletein interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- file- The file to delete
- Throws:
- LibraryModuleException- thrown on any internal error
 
- 
getFile- Specified by:
- getFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFile- Specified by:
- getFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFile- Specified by:
- getFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFolder- Specified by:
- getFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createResourceDefinitionpublic IResourceDefinition createResourceDefinition(IContext context, String name, String displayName, ILibrary library) throws LibraryModuleException - Throws:
- LibraryModuleException
 
- 
createResourceDefinitionpublic IResourceDefinition createResourceDefinition(IContext context, String name) throws LibraryModuleException - Specified by:
- createResourceDefinitionin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getResourceDefinitionpublic IResourceDefinition getResourceDefinition(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
- getResourceDefinitionin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getResourceDefinitionspublic Collection getResourceDefinitions(IContext context, ILibrary library) throws LibraryModuleException - Specified by:
- getResourceDefinitionsin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createCategory- Specified by:
- createCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createCategorypublic ICategory createCategory(IContext context, ICategory parent, String name) throws LibraryModuleException - Specified by:
- createCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
createCategorypublic ICategory createCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
- createCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getCategorypublic ICategory getCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
- getCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getCategorypublic ICategory getCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Specified by:
- getCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getParentCategorypublic ICategory getParentCategory(IContext context, ICategory category) throws LibraryModuleException - Specified by:
- getParentCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getCategoriespublic Collection getCategories(IContext context, ILibrary library, boolean recursive) throws LibraryModuleException - Specified by:
- getCategoriesin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getCategoriespublic Collection getCategories(IContext context, ICategory category, boolean recursive) throws LibraryModuleException - Specified by:
- getCategoriesin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
addCategorypublic void addCategory(IContext context, IFile file, ICategory category) throws LibraryModuleException - Specified by:
- addCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
addCategoriespublic void addCategories(IContext context, IFile file, Collection categories) throws LibraryModuleException - Specified by:
- addCategoriesin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
setValuepublic void setValue(IContext context, IFile file, String propertyName, Object value) throws LibraryModuleException - Specified by:
- setValuein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getValuepublic Object getValue(IContext context, IFile file, String propertyName) throws LibraryModuleException - Specified by:
- getValuein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getList- Specified by:
- getListin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getLists- Specified by:
- getListsin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getPropertiespublic Collection getProperties(IContext context, IResourceDefinition resourceDefinition) throws LibraryModuleException - Specified by:
- getPropertiesin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getPropertypublic IProperty getProperty(IContext context, IResourceDefinition resourceDefinition, String name) throws LibraryModuleException - Specified by:
- getPropertyin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getUser- Specified by:
- getUserin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
addAttachment- Specified by:
- addAttachmentin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
addAttachmentpublic IAttachment addAttachment(IFile file, String fileName, InputStream inputStream) throws LibraryModuleException - Specified by:
- addAttachmentin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
addAttachmentpublic IAttachment addAttachment(IFile file, String fileName, String fullPath) throws LibraryModuleException - Specified by:
- addAttachmentin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
addAttachment- Specified by:
- addAttachmentin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getAttachment- Specified by:
- getAttachmentin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getAttachment- Throws:
- LibraryModuleException
 
- 
getAttachments- Specified by:
- getAttachmentsin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
fireDownloadHistoryEventpublic void fireDownloadHistoryEvent(IContext context, IFile file, String protocol) throws LibraryModuleException Fire download history event on IFile- Specified by:
- fireDownloadHistoryEventin interface- IBaseLibraryModule
- Parameters:
- context- The current context
- file- The downloaded IFile
- protocol- The origin protocol
- Throws:
- LibraryModuleException
 
- 
getSecurityControllerpublic ISecurityController getSecurityController(ISecuritySupport securitySupport) throws LibraryModuleException - Specified by:
- getSecurityControllerin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getSearchControllerpublic ISearchController getSearchController(IDataSourceReference reference) throws LibraryModuleException - Specified by:
- getSearchControllerin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getSearchControllerpublic ISearchController getSearchController(IJdbcReference reference) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleGets a search controller object by specifying a JDBC external reference.- Specified by:
- getSearchControllerin interface- IBaseLibraryModule
- Parameters:
- reference- The- IJdbcReferenceobject.
- Returns:
- The ISearchControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getSearchControllerpublic ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleGets a search controller object by specifying a ConnectionDefinition object.- Specified by:
- getSearchControllerin interface- IBaseLibraryModule
- Parameters:
- connectionDefinition- The- IConnectionDefinitionobject.
- Returns:
- The ISearchControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getSearchController- Specified by:
- getSearchControllerin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getResourceDefinition- Specified by:
- getResourceDefinitionin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getLibrary- Specified by:
- getLibraryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFolder- Specified by:
- getFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getCategory- Specified by:
- getCategoryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFile- Specified by:
- getFilein interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFileByPathpublic IFile getFileByPath(IContext context, ILibrary library, String path) throws LibraryModuleException - Specified by:
- getFileByPathin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFolderByPathpublic IFolder getFolderByPath(IContext context, ILibrary library, String path) throws LibraryModuleException - Specified by:
- getFolderByPathin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getLibraryByPathpublic ILibrary getLibraryByPath(IContext context, IOrganization organization, String path) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleRetrieves a library by its path.- Specified by:
- getLibraryByPathin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- organization- The- IOrganizationobject.
- path- The path to retrieve the organization from.
- Returns:
- A ILibraryobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getTransformer- Specified by:
- getTransformerin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFilesDescription copied from interface:IBaseLibraryModuleRetrieves all the files associated with a specifiedICategoryobject.- Specified by:
- getFilesin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- category- The- ICategoryobject.
- Returns:
- a collection of IFileobjects.
- Throws:
- LibraryModuleException
 
- 
getFilespublic Collection getFiles(IContext context, ICategory category, boolean includeDeleted) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleRetrieves all the files associated with a specifiedICategoryobject. It allows to specify if the deleted files should be included- Specified by:
- getFilesin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- category- The- ICategoryobject.
- includeDeleted- The flag to include or not deleted- IFileobjects.
- Returns:
- a collection of IFileobjects.
- Throws:
- LibraryModuleException
 
- 
getFiles- Specified by:
- getFilesin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getFiles- Specified by:
- getFilesin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
checkOut- Specified by:
- checkOutin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
undoCheckOut- Specified by:
- undoCheckOutin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
isCheckedOut- Specified by:
- isCheckedOutin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
checkedOutBy- Specified by:
- checkedOutByin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
checkIn- Specified by:
- checkInin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getLibrary- Specified by:
- getLibraryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getLibrary- Specified by:
- getLibraryin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getParentFolder- Specified by:
- getParentFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getParentFolder- Specified by:
- getParentFolderin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getParentFolders- Specified by:
- getParentFoldersin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
getParentFolders- Specified by:
- getParentFoldersin interface- IBaseLibraryModule
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFolder copyTo(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFolder copyTo(IContext context, IFolder folder, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- newName- The new- IFoldername.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFolder copyTo(IContext context, IFolder folder, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleAllows to copy a specifiedIFolderunderneath a destination folder;- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- dest- The destination- IFolderobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFolder copyTo(IContext context, IFolder folder, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleAllows to copy a specifiedIFolderunderneath a destination folder;- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- folder- The- IFolderto copy.
- newName- The new- IFoldername.
- dest- The destination- IFolderobject.
- Returns:
- the newly created folder
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFile copyTo(IContext context, IFile file, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- file- The- IFileto copy.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFile copyTo(IContext context, IFile file, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- file- The- IFileto copy.
- newName- The new- IFilename.
- dest- The destination- ILibraryobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFile copyTo(IContext context, IFile file, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleAllows to copy a specifiedIFileunderneath a destination folder;- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- file- file The- IFileto copy.
- dest- The destination- IFolderobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
copyTopublic IFile copyTo(IContext context, IFile file, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleAllows to copy a specifiedIFileunderneath a destination folder;- Specified by:
- copyToin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- file- file The- IFileto copy.
- dest- The destination- IFolderobject.
- Returns:
- the newly created file
- Throws:
- LibraryModuleException
 
- 
moveTopublic boolean moveTo(IContext context, IFolder folder, ILibrary destLibrary) throws LibraryModuleException Description copied from interface:IBaseLibraryModule- Specified by:
- moveToin interface- IBaseLibraryModule
- 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.
 
- 
moveTopublic boolean moveTo(IContext context, IFolder folder, IFolder destFolder) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleAllows to move a specifiedIFolderunderneath a destination folder.- Specified by:
- moveToin interface- IBaseLibraryModule
- 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.
 
- 
moveTopublic boolean moveTo(IContext context, IFile file, ILibrary destLibrary, boolean bOverwrite) throws LibraryModuleException Description copied from interface:IBaseLibraryModule- Specified by:
- moveToin interface- IBaseLibraryModule
- 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.
 
- 
moveTopublic boolean moveTo(IContext context, IFile file, IFolder destFolder, boolean bOverwrite) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleAllows to move a specifiedIFileunderneath a destination folder.- Specified by:
- moveToin interface- IBaseLibraryModule
- 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.
 
- 
getElementByProtocolURIDescription copied from interface:IBaseLibraryModuleGets anIElementobject which implementsIProtocolSupportinterface.- Specified by:
- getElementByProtocolURIin interface- IBaseLibraryModule
- Parameters:
- protocolURI- The protocol URI as a java.lang.String.
- Returns:
- A IProtocolSupportobject.
- Throws:
- ModuleException- default module exception.
 
- 
getViewControllerDeprecated.Description copied from interface:IBaseLibraryModuleGets a view controller to searchIResourceobjects through their properties.- Specified by:
- getViewControllerin interface- IBaseLibraryModule
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerDescription copied from interface:IBaseLibraryModuleGets a view controller to searchIResourceobjects through their properties.- Specified by:
- getViewControllerin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getRootFolder
- 
getViewController@Deprecated public IViewController getViewController(Class natureClass) throws LibraryModuleException Deprecated.Description copied from interface:IBaseLibraryModuleGets a view controller to searchIResourceobjects through their properties.- Specified by:
- getViewControllerin interface- IBaseLibraryModule
- Parameters:
- natureClass- : The class of the searched objects- IWorkflowInstance,- ITaskInstance,- IResource}
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerpublic IViewController getViewController(IContext context, Class natureClass) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleGets a view controller to searchIResourceobjects through their properties.- Specified by:
- getViewControllerin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- natureClass- : The class of the searched objects- IWorkflowInstance,- ITaskInstance,- IResource}
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerDescription copied from interface:IBaseLibraryModuleGets a view controller to searchIResourceobjects through their properties.- Specified by:
- getViewControllerin interface- IBaseLibraryModule
- Parameters:
- inputStream- The java.io.InputStream XML entry.
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
- 
getViewControllerpublic IViewController getViewController(IContext context, InputStream inputStream) throws LibraryModuleException Description copied from interface:IBaseLibraryModuleGets a view controller to searchIResourceobjects through their properties.- Specified by:
- getViewControllerin interface- IBaseLibraryModule
- Parameters:
- context- The execution context.
- inputStream- The java.io.InputStream XML entry.
- Returns:
- A IViewControllerobject.
- Throws:
- LibraryModuleException- default module exception.
 
 
-