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 Summary
Nested classes/interfaces inherited from interface com.axemble.vdoc.sdk.modules.IBaseLibraryModule
IBaseLibraryModule.SubscriptionFrequency
-
Field Summary
Modifier and TypeFieldDescriptionprotected static HashMap
protected static final int
protected static final int
protected static final int
protected javax.jdo.PersistenceManager
Fields inherited from class com.axemble.vdoc.sdk.impl.PortalModule
currentContext, report
-
Constructor Summary
-
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) Starts a new transaction or use the current one.beginTransaction
(Object currentObject) Starts a new transaction if required.checkedOutBy
(IContext context, IFile file) void
void
void
Commits the current transaction.void
commitTransaction
(Object currentObject) Commits the current transaction.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 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) 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 userfindNativeClass
(Class interfaceClass) Allows to retrieve the inner native class.void
fireDownloadHistoryEvent
(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 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) Retrieves the firstILibrary
.getLibrary
(Object object) getLibraryByPath
(IContext context, IOrganization organization, String path) Retrieves a library by its path.protected static Class
getNativeClass
(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.PersistenceManager
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) 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 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) Gets a view controller to searchIResource
objects through their properties.getViewController
(Class natureClass) Deprecated.void
initialize
(Properties properties) Initializes the module.boolean
isCheckedOut
(IContext context, IFile file) boolean
Checks if there is a current transaction.boolean
Allows to move a specifiedIFile
underneath a destination folder.boolean
boolean
Allows to move a specifiedIFolder
underneath a destination folder.boolean
void
void
Roll back the current transaction.void
rollbackTransaction
(Object currentObject) Roll back the current transaction.void
setSubscriptionFrequency
(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) Sets subscription frequency.void
setSubscriptionRecursive
(IContext context, ILibrary library, ILibraryElement element) toggle subsription recursive flagvoid
setTransactionTimeout
(int transactionTimeout) Allows the set the transaction timeout.void
void
subscribe
(IContext context, ILibrary library, ILibraryElement element) Subscribe to aILibraryElement
(IFile, IFolder, ICategory)void
undoCheckOut
(IContext context, IFile file) void
Releases the module.void
unsubscribe
(IContext context, ILibrary library, ILibraryElement element) Unsubscribe to aILibraryElement
(IFile, IFolder, ICategory)Methods inherited from class com.axemble.vdoc.sdk.impl.PortalModule
convertId, 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, refreshUser
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractTranslaterModule
getTranslation, getTranslationForLanguage, getTranslationKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdoc.sdk.modules.IBaseLibraryModule
getUserByLogin
Methods inherited from interface com.axemble.vdoc.sdk.modules.IModule
convertId, 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_OCTETS
protected static final int ONE_KILO_OCTETS- See Also:
-
ONE_MEGA_OCTETS
protected static final int ONE_MEGA_OCTETS- See Also:
-
ONE_GIGA_OCTETS
protected static final int ONE_GIGA_OCTETS- See Also:
-
nativeClasses
-
persistenceManager
protected javax.jdo.PersistenceManager persistenceManager
-
-
Constructor Details
-
PortalLibraryModule
public PortalLibraryModule()
-
-
Method Details
-
getNativeClass
-
initialize
Description copied from interface:IModule
Initializes the module.- Specified by:
initialize
in interfaceIModule
- Parameters:
properties
- The custom properties.
-
unInitialize
public void unInitialize()Description copied from interface:IModule
Releases the module.- Specified by:
unInitialize
in interfaceIModule
-
findNativeClass
Description copied from interface:IModule
Allows to retrieve the inner native class.- Specified by:
findNativeClass
in interfaceIModule
- Parameters:
interfaceClass
- A class type.- Returns:
- The inner native class.
-
getPersistenceManager
public javax.jdo.PersistenceManager getPersistenceManager()- Specified by:
getPersistenceManager
in classPortalModule
-
setTransactionTimeout
Description copied from interface:IModule
Allows the set the transaction timeout.- Specified by:
setTransactionTimeout
in interfaceIModule
- Parameters:
transactionTimeout
- The transaction timeout in milliseconds.- Throws:
ModuleException
- The default exception.
-
beginTransaction
Description copied from interface:IModule
Starts a new transaction or use the current one.- Specified by:
beginTransaction
in interfaceIModule
- Returns:
- The report object.
-
commitTransaction
public void commitTransaction()Description copied from interface:IModule
Commits the current transaction.- Specified by:
commitTransaction
in interfaceIModule
-
rollbackTransaction
public void rollbackTransaction()Description copied from interface:IModule
Roll back the current transaction.- Specified by:
rollbackTransaction
in interfaceIModule
-
beginTransaction
Description copied from interface:IModule
Starts a new transaction if required.- Specified by:
beginTransaction
in interfaceIModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.- Returns:
- The report object.
-
commitTransaction
Description copied from interface:IModule
Commits the current transaction.- Specified by:
commitTransaction
in interfaceIModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.
-
rollbackTransaction
Description copied from interface:IModule
Roll back the current transaction.- Specified by:
rollbackTransaction
in interfaceIModule
- Parameters:
currentObject
- The synchronized object. Not used anymore.
-
isTransactionActive
public boolean isTransactionActive()Description copied from interface:IModule
Checks if there is a current transaction.- Specified by:
isTransactionActive
in interfaceIModule
- Returns:
- true if a transaction has been started, false otherwise.
-
createLibrary
Description copied from interface:IBaseLibraryModule
Creates a library on the default organization- Specified by:
createLibrary
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.name
- The name of the library.- Returns:
- a
ILibrary
object. - Throws:
LibraryModuleException
- default module exception.
-
createLibrary
public ILibrary createLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Creates a library on a specified organization.- Specified by:
createLibrary
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.organization
- TheIOrganization
object.name
- The name of the library.- Returns:
- a
ILibrary
object. - Throws:
LibraryModuleException
- default module exception.
-
getLibrary
Description copied from interface:IBaseLibraryModule
Retrieves the firstILibrary
.- Specified by:
getLibrary
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.name
- The name of the library.- Returns:
- a
ILibrary
object. - Throws:
LibraryModuleException
- default module exception.
-
getLibrary
public ILibrary getLibrary(IContext context, IOrganization organization, String name) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Retrieves aILibrary
within a specified organization.- Specified by:
getLibrary
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.organization
- TheIOrganization
object.name
- The name of the library.- Returns:
- A
ILibrary
object. - Throws:
LibraryModuleException
- default module exception.
-
getLibraries
Description copied from interface:IBaseLibraryModule
Retrieves all the libraries.- Specified by:
getLibraries
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.- Returns:
- A java.util.Collection of
ILibrary
objects. - Throws:
LibraryModuleException
- default module exception.
-
getLibraries
Description copied from interface:IBaseLibraryModule
Retrieves all the libraries.- Specified by:
getLibraries
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.right
- The right required.- Returns:
- A java.util.Collection of
ILibrary
objects. - Throws:
LibraryModuleException
- default module exception.
-
getLibraries
public Collection getLibraries(IContext context, IOrganization organization) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Retrieves all the libraries within a specified organization.- Specified by:
getLibraries
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.organization
- TheIOrganization
object.- Returns:
- A java.util.Collection of
ILibrary
objects. - Throws:
LibraryModuleException
- default module exception.
-
createFolder
public IFolder createFolder(IContext context, IFolder parent, String name) throws LibraryModuleException - Specified by:
createFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createFolder
public IFolder createFolder(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
createFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
delete
Description copied from interface:IBaseLibraryModule
Allow to delete a folder. If used on a folder in the trash this will delete it from trash.- Specified by:
delete
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.folder
- The folder to delete- Throws:
LibraryModuleException
- thrown on any internal error
-
getFolder
public IFolder getFolder(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
getFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFolder
public IFolder getFolder(IContext context, IFolder parent, String name) throws LibraryModuleException - Specified by:
getFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFolders
- Specified by:
getFolders
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFolders
- Specified by:
getFolders
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getDeletedNodes
public Collection<IElement> getDeletedNodes(IContext context, ILibrary library) throws LibraryModuleException - Throws:
LibraryModuleException
-
getSubscriptions
public Collection<ILibrarySubscription> getSubscriptions(IContext context, ILibrary library, boolean showElementInTrash) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
get all subscriptions for a user and a library- Specified by:
getSubscriptions
in 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
-
setSubscriptionRecursive
public void setSubscriptionRecursive(IContext context, ILibrary library, ILibraryElement element) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
toggle subsription recursive flag- Specified by:
setSubscriptionRecursive
in interfaceIBaseLibraryModule
- Parameters:
context
- user contextlibrary
- library scopeelement
- folder or category to set recursive flag to- Throws:
LibraryModuleException
- default module exception
-
subscribe
public void subscribe(IContext context, ILibrary library, ILibraryElement element) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Subscribe to aILibraryElement
(IFile, IFolder, ICategory)- Specified by:
subscribe
in interfaceIBaseLibraryModule
- Parameters:
context
- user contextlibrary
- library scopeelement
- library element to subscribe- Throws:
LibraryModuleException
- default module exception
-
existSubscriptionByLibraryElement
Description copied from interface:IBaseLibraryModule
check if theILibraryElement
is subscribed by the user- Specified by:
existSubscriptionByLibraryElement
in interfaceIBaseLibraryModule
- Parameters:
context
- user contextlibraryElement
- library element to check- Returns:
- true if the user has subscribed to the
ILibraryElement
-
getSubscriptionFrequency
public IBaseLibraryModule.SubscriptionFrequency getSubscriptionFrequency(IContext context, ILibrary library) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Gets subscription frequency.- Specified by:
getSubscriptionFrequency
in interfaceIBaseLibraryModule
- Parameters:
context
- the contextlibrary
- the library- Returns:
- the subscription frequency
- Throws:
LibraryModuleException
- the library module exception
-
setSubscriptionFrequency
public void setSubscriptionFrequency(IContext context, ILibrary library, IBaseLibraryModule.SubscriptionFrequency frequency) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Sets subscription frequency.- Specified by:
setSubscriptionFrequency
in interfaceIBaseLibraryModule
- Parameters:
context
- the contextlibrary
- the libraryfrequency
- the frequency- Throws:
LibraryModuleException
- the library module exception
-
unsubscribe
public void unsubscribe(IContext context, ILibrary library, ILibraryElement element) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Unsubscribe to aILibraryElement
(IFile, IFolder, ICategory)- Specified by:
unsubscribe
in interfaceIBaseLibraryModule
- Parameters:
context
- user contextlibrary
- library scopeelement
- library element to unsubscribe- Throws:
LibraryModuleException
- default module exception
-
restore
public void restore(IContext context, ILibrary library, IElement element) throws LibraryModuleException - Throws:
LibraryModuleException
-
createFile
public IFile createFile(IContext context, ILibrary library, String name, String description, InputStream inputStream) throws LibraryModuleException - Specified by:
createFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createFile
public IFile createFile(IContext context, IFolder folder, String name, String description, InputStream inputStream) throws LibraryModuleException - Specified by:
createFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createFile
public IFile createFile(IContext context, IFolder folder, String name, String description, byte[] content) throws LibraryModuleException - Specified by:
createFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createFile
public IFile createFile(IContext context, IFolder folder, String description, IAttachment attachment) throws LibraryModuleException - Specified by:
createFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createFile
public IFile createFile(IContext context, ILibrary library, String description, IAttachment attachment) throws LibraryModuleException - Specified by:
createFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createFile
public IFile createFile(IContext context, ILibrary library, String name, String description, byte[] content) throws LibraryModuleException - Specified by:
createFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
delete
Description copied from interface:IBaseLibraryModule
Allow to delete a file. If used on a file in the trash this will delete it from trash.- Specified by:
delete
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.file
- The file to delete- Throws:
LibraryModuleException
- thrown on any internal error
-
getFile
- Specified by:
getFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFile
- Specified by:
getFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFile
- Specified by:
getFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFolder
- Specified by:
getFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createResourceDefinition
public IResourceDefinition createResourceDefinition(IContext context, String name, String displayName, ILibrary library) throws LibraryModuleException - Throws:
LibraryModuleException
-
createResourceDefinition
public IResourceDefinition createResourceDefinition(IContext context, String name) throws LibraryModuleException - Specified by:
createResourceDefinition
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getResourceDefinition
public IResourceDefinition getResourceDefinition(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
getResourceDefinition
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getResourceDefinitions
public Collection getResourceDefinitions(IContext context, ILibrary library) throws LibraryModuleException - Specified by:
getResourceDefinitions
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createCategory
- Specified by:
createCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createCategory
public ICategory createCategory(IContext context, ICategory parent, String name) throws LibraryModuleException - Specified by:
createCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
createCategory
public ICategory createCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
createCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getCategory
public ICategory getCategory(IContext context, ILibrary library, String name) throws LibraryModuleException - Specified by:
getCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getCategory
public ICategory getCategory(IContext context, ICategory category, String name) throws LibraryModuleException - Specified by:
getCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getParentCategory
public ICategory getParentCategory(IContext context, ICategory category) throws LibraryModuleException - Specified by:
getParentCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getCategories
public Collection getCategories(IContext context, ILibrary library, boolean recursive) throws LibraryModuleException - Specified by:
getCategories
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getCategories
public Collection getCategories(IContext context, ICategory category, boolean recursive) throws LibraryModuleException - Specified by:
getCategories
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
addCategory
public void addCategory(IContext context, IFile file, ICategory category) throws LibraryModuleException - Specified by:
addCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
addCategories
public void addCategories(IContext context, IFile file, Collection categories) throws LibraryModuleException - Specified by:
addCategories
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
setValue
public void setValue(IContext context, IFile file, String propertyName, Object value) throws LibraryModuleException - Specified by:
setValue
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getValue
public Object getValue(IContext context, IFile file, String propertyName) throws LibraryModuleException - Specified by:
getValue
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getList
- Specified by:
getList
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getLists
- Specified by:
getLists
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getProperties
public Collection getProperties(IContext context, IResourceDefinition resourceDefinition) throws LibraryModuleException - Specified by:
getProperties
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getProperty
public IProperty getProperty(IContext context, IResourceDefinition resourceDefinition, String name) throws LibraryModuleException - Specified by:
getProperty
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getUser
- Specified by:
getUser
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
addAttachment
- Specified by:
addAttachment
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
addAttachment
public IAttachment addAttachment(IFile file, String fileName, InputStream inputStream) throws LibraryModuleException - Specified by:
addAttachment
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
addAttachment
public IAttachment addAttachment(IFile file, String fileName, String fullPath) throws LibraryModuleException - Specified by:
addAttachment
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
addAttachment
- Specified by:
addAttachment
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getAttachment
- Specified by:
getAttachment
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getAttachment
- Throws:
LibraryModuleException
-
getAttachments
- Specified by:
getAttachments
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
fireDownloadHistoryEvent
public void fireDownloadHistoryEvent(IContext context, IFile file, String protocol) throws LibraryModuleException Fire download history event on IFile- Specified by:
fireDownloadHistoryEvent
in interfaceIBaseLibraryModule
- Parameters:
context
- The current contextfile
- The downloaded IFileprotocol
- The origin protocol- Throws:
LibraryModuleException
-
getSecurityController
public ISecurityController getSecurityController(ISecuritySupport securitySupport) throws LibraryModuleException - Specified by:
getSecurityController
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getSearchController
public ISearchController getSearchController(IDataSourceReference reference) throws LibraryModuleException - Specified by:
getSearchController
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getSearchController
public ISearchController getSearchController(IJdbcReference reference) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Gets a search controller object by specifying a JDBC external reference.- Specified by:
getSearchController
in interfaceIBaseLibraryModule
- Parameters:
reference
- TheIJdbcReference
object.- Returns:
- The
ISearchController
object. - Throws:
LibraryModuleException
- default module exception.
-
getSearchController
public ISearchController getSearchController(IConnectionDefinition connectionDefinition) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Gets a search controller object by specifying a ConnectionDefinition object.- Specified by:
getSearchController
in interfaceIBaseLibraryModule
- Parameters:
connectionDefinition
- TheIConnectionDefinition
object.- Returns:
- The
ISearchController
object. - Throws:
LibraryModuleException
- default module exception.
-
getSearchController
- Specified by:
getSearchController
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getResourceDefinition
- Specified by:
getResourceDefinition
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getLibrary
- Specified by:
getLibrary
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFolder
- Specified by:
getFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getCategory
- Specified by:
getCategory
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFile
- Specified by:
getFile
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFileByPath
public IFile getFileByPath(IContext context, ILibrary library, String path) throws LibraryModuleException - Specified by:
getFileByPath
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFolderByPath
public IFolder getFolderByPath(IContext context, ILibrary library, String path) throws LibraryModuleException - Specified by:
getFolderByPath
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getLibraryByPath
public ILibrary getLibraryByPath(IContext context, IOrganization organization, String path) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Retrieves a library by its path.- Specified by:
getLibraryByPath
in interfaceIBaseLibraryModule
- 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.
-
getTransformer
- Specified by:
getTransformer
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFiles
Description copied from interface:IBaseLibraryModule
Retrieves all the files associated with a specifiedICategory
object.- Specified by:
getFiles
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.category
- TheICategory
object.- Returns:
- a collection of
IFile
objects. - Throws:
LibraryModuleException
-
getFiles
public Collection getFiles(IContext context, ICategory category, boolean includeDeleted) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Retrieves all the files associated with a specifiedICategory
object. It allows to specify if the deleted files should be included- Specified by:
getFiles
in interfaceIBaseLibraryModule
- 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
-
getFiles
- Specified by:
getFiles
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getFiles
- Specified by:
getFiles
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
checkOut
- Specified by:
checkOut
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
undoCheckOut
- Specified by:
undoCheckOut
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
isCheckedOut
- Specified by:
isCheckedOut
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
checkedOutBy
- Specified by:
checkedOutBy
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
checkIn
- Specified by:
checkIn
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getLibrary
- Specified by:
getLibrary
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getLibrary
- Specified by:
getLibrary
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getParentFolder
- Specified by:
getParentFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getParentFolder
- Specified by:
getParentFolder
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getParentFolders
- Specified by:
getParentFolders
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
getParentFolders
- Specified by:
getParentFolders
in interfaceIBaseLibraryModule
- Throws:
LibraryModuleException
-
copyTo
public IFolder copyTo(IContext context, IFolder folder, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
- Specified by:
copyTo
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.folder
- TheIFolder
to copy.dest
- The destinationILibrary
object.- Returns:
- the newly created folder
- Throws:
LibraryModuleException
-
copyTo
public IFolder copyTo(IContext context, IFolder folder, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
- Specified by:
copyTo
in interfaceIBaseLibraryModule
- 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
public IFolder copyTo(IContext context, IFolder folder, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Allows to copy a specifiedIFolder
underneath a destination folder;- Specified by:
copyTo
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.folder
- TheIFolder
to copy.dest
- The destinationIFolder
object.- Returns:
- the newly created folder
- Throws:
LibraryModuleException
-
copyTo
public IFolder copyTo(IContext context, IFolder folder, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Allows to copy a specifiedIFolder
underneath a destination folder;- Specified by:
copyTo
in interfaceIBaseLibraryModule
- 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
public IFile copyTo(IContext context, IFile file, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
- Specified by:
copyTo
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.file
- TheIFile
to copy.dest
- The destinationILibrary
object.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
copyTo
public IFile copyTo(IContext context, IFile file, String newName, ILibrary dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
- Specified by:
copyTo
in interfaceIBaseLibraryModule
- 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
public IFile copyTo(IContext context, IFile file, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Allows to copy a specifiedIFile
underneath a destination folder;- Specified by:
copyTo
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.file
- file TheIFile
to copy.dest
- The destinationIFolder
object.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
copyTo
public IFile copyTo(IContext context, IFile file, String newName, IFolder dest, CopyOption... copyOptions) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Allows to copy a specifiedIFile
underneath a destination folder;- Specified by:
copyTo
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.file
- file TheIFile
to copy.dest
- The destinationIFolder
object.- Returns:
- the newly created file
- Throws:
LibraryModuleException
-
moveTo
public boolean moveTo(IContext context, IFolder folder, ILibrary destLibrary) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
- Specified by:
moveTo
in interfaceIBaseLibraryModule
- 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
public boolean moveTo(IContext context, IFolder folder, IFolder destFolder) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Allows to move a specifiedIFolder
underneath a destination folder.- Specified by:
moveTo
in interfaceIBaseLibraryModule
- 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
public boolean moveTo(IContext context, IFile file, ILibrary destLibrary, boolean bOverwrite) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
- Specified by:
moveTo
in interfaceIBaseLibraryModule
- 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
public boolean moveTo(IContext context, IFile file, IFolder destFolder, boolean bOverwrite) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Allows to move a specifiedIFile
underneath a destination folder.- Specified by:
moveTo
in interfaceIBaseLibraryModule
- 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.
-
getElementByProtocolURI
Description copied from interface:IBaseLibraryModule
Gets anIElement
object which implementsIProtocolSupport
interface.- Specified by:
getElementByProtocolURI
in interfaceIBaseLibraryModule
- Parameters:
protocolURI
- The protocol URI as a java.lang.String.- Returns:
- A
IProtocolSupport
object. - Throws:
ModuleException
- default module exception.
-
getViewController
Deprecated.Description copied from interface:IBaseLibraryModule
Gets a view controller to searchIResource
objects through their properties.- Specified by:
getViewController
in interfaceIBaseLibraryModule
- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
Description copied from interface:IBaseLibraryModule
Gets a view controller to searchIResource
objects through their properties.- Specified by:
getViewController
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getRootFolder
-
getViewController
@Deprecated public IViewController getViewController(Class natureClass) throws LibraryModuleException Deprecated.Description copied from interface:IBaseLibraryModule
Gets a view controller to searchIResource
objects through their properties.- Specified by:
getViewController
in interfaceIBaseLibraryModule
- Parameters:
natureClass
- : The class of the searched objectsIWorkflowInstance
,ITaskInstance
,IResource
}- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
public IViewController getViewController(IContext context, Class natureClass) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Gets a view controller to searchIResource
objects through their properties.- Specified by:
getViewController
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.natureClass
- : The class of the searched objectsIWorkflowInstance
,ITaskInstance
,IResource
}- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
Description copied from interface:IBaseLibraryModule
Gets a view controller to searchIResource
objects through their properties.- Specified by:
getViewController
in interfaceIBaseLibraryModule
- Parameters:
inputStream
- The java.io.InputStream XML entry.- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-
getViewController
public IViewController getViewController(IContext context, InputStream inputStream) throws LibraryModuleException Description copied from interface:IBaseLibraryModule
Gets a view controller to searchIResource
objects through their properties.- Specified by:
getViewController
in interfaceIBaseLibraryModule
- Parameters:
context
- The execution context.inputStream
- The java.io.InputStream XML entry.- Returns:
- A
IViewController
object. - Throws:
LibraryModuleException
- default module exception.
-