Package com.axemble.vdoc.sdk.impl
Class PortalLibrary
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.PortalElement
com.axemble.vdoc.sdk.impl.PortalLibrary
- All Implemented Interfaces:
IElement,ILibrary,IDeletionSupport,IExternalSupport,IProtocolSupport,ISearchSupport,ISecuritySupport,Serializable
Portal library (classic ILibrary implementation for Process)
- Author:
- vlygeros
- See Also:
-
Field Summary
FieldsFields inherited from class com.axemble.vdoc.sdk.impl.PortalElement
path, storageKeyFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPortalLibrary(IModule module, com.axemble.webdrive.jdo.beans.JDODataStore store) protectedPortalLibrary(IModule module, com.axemble.webdrive.om.DataStore store) -
Method Summary
Modifier and TypeMethodDescriptionvoidAllows to log history events.voidDeletes theIElementobject.voidAllows to stop logging history events.Gets the email addresses to notify when the alert size is reached.intGets the alert size in bytes.Gets all the categories.getAllFolders(IContext iContext) Gets off the folders.Gets the list of authorized extensions.Gets all the root categories.longGets the current size.Gets the file definitions.getFolders(IContext iContext) Gets all the folders at the root level.Gets the list of forbidden extensions.longGets the largest file size.longGets the maximum size of a file.longGets the maximum size available for a library.Gets the email addresses to notify if the maximum size is reached.getName()Gets the name of the library.Gets the native object underneath.longThe number of elements.longgetNumberOfElements(Class natureClass) The number of elements of a specific class.Gets the organization.Retrieves the physical path of the library.longGets the smallest file size.booleanHistory activation statusbooleanCheck if the datastore must be indexedvoidsetAlertEventListeners(String emails) Sets the email addresses to notify when the alert size is reached.voidsetAlertSize(int alertSize) Sets the alert size.voidsetAuthorizedExtensions(String authorizedExtensions) Sets the list of authorized extensions.voidsetForbiddenExtensions(String forbiddenExtensions) Sets the list of forbidden extensions.voidsetHistoryEvents(boolean enabled) voidsetIndexationEnable(boolean indexationEnable) Sets the indexation state of the datastorevoidsetMaxFileSize(long maxFileSize) Sets the maximum size for a file.voidsetMaxSize(long maxSize) Sets the maximum size available.voidsetMaxSizeEventListeners(String emails) Sets the email addresses to notify when the maximum size is reached.voidSets the name of the library.voidsetOrganization(IOrganization organization) Sets the organization.voidsetPhysicalPath(String path) Sets the physical path of the libraryMethods inherited from class com.axemble.vdoc.sdk.impl.PortalElement
equals, getId, getPath, getProtocolURI, getProtocolURI, hashCode, replaceBackSlash, replaceSlash, save, setIdMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModuleMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Field Details
-
store
protected com.axemble.webdrive.om.DataStore store
-
-
Constructor Details
-
PortalLibrary
-
PortalLibrary
-
-
Method Details
-
getNativeObject
Description copied from interface:IElementGets the native object underneath.- Specified by:
getNativeObjectin interfaceIElement- Returns:
- an object.
-
getExternalClassName
- Specified by:
getExternalClassNamein interfaceIExternalSupport
-
getExternalNativeId
- Specified by:
getExternalNativeIdin interfaceIExternalSupport
-
getName
Description copied from interface:ILibraryGets the name of the library. -
setName
Description copied from interface:ILibrarySets the name of the library. -
getAllFolders
Description copied from interface:ILibraryGets off the folders.- Specified by:
getAllFoldersin interfaceILibrary- Parameters:
iContext- The user context.- Returns:
- A java.util.Collection of
IFolderobjects.
-
getFolders
Description copied from interface:ILibraryGets all the folders at the root level.- Specified by:
getFoldersin interfaceILibrary- Parameters:
iContext- The user context.- Returns:
- A java.util.Collection of
IFolderobjects.
-
getAllCategories
Description copied from interface:ILibraryGets all the categories.- Specified by:
getAllCategoriesin interfaceILibrary- Returns:
- A java.util.Collection of
ICategoryobjects.
-
getCategories
Description copied from interface:ILibraryGets all the root categories.- Specified by:
getCategoriesin interfaceILibrary- Returns:
- A java.util.Collection of
ICategoryobjects.
-
getFileDefinitions
Description copied from interface:ILibraryGets the file definitions.- Specified by:
getFileDefinitionsin interfaceILibrary- Returns:
- A java.util.Collection of
IResourceDefinitionobjects.
-
getPhysicalPath
Description copied from interface:ILibraryRetrieves the physical path of the library.- Specified by:
getPhysicalPathin interfaceILibrary- Returns:
- The physical path.
-
delete
Description copied from interface:IDeletionSupportDeletes theIElementobject.- Specified by:
deletein interfaceIDeletionSupport- Parameters:
context- The Execution context.
-
getOrganization
Description copied from interface:ILibraryGets the organization.- Specified by:
getOrganizationin interfaceILibrary- Returns:
- A
IOrganizationobject.
-
setOrganization
Description copied from interface:ILibrarySets the organization.- Specified by:
setOrganizationin interfaceILibrary- Parameters:
organization- TheIOrganizationobject.
-
getForbiddenExtensions
Description copied from interface:ILibraryGets the list of forbidden extensions.- Specified by:
getForbiddenExtensionsin interfaceILibrary- Returns:
- The list of forbidden extensions.
-
setForbiddenExtensions
Description copied from interface:ILibrarySets the list of forbidden extensions.- Specified by:
setForbiddenExtensionsin interfaceILibrary- Parameters:
forbiddenExtensions- The forbidden extensions.
-
getAlertEventListeners
Description copied from interface:ILibraryGets the email addresses to notify when the alert size is reached.- Specified by:
getAlertEventListenersin interfaceILibrary- Returns:
- The email addresses.
-
getAlertSize
public int getAlertSize()Description copied from interface:ILibraryGets the alert size in bytes.- Specified by:
getAlertSizein interfaceILibrary- Returns:
- The size in bytes.
-
getMaxFileSize
public long getMaxFileSize()Description copied from interface:ILibraryGets the maximum size of a file.- Specified by:
getMaxFileSizein interfaceILibrary- Returns:
- The maximum size of a file in bytes.
-
getMaxSize
public long getMaxSize()Description copied from interface:ILibraryGets the maximum size available for a library.- Specified by:
getMaxSizein interfaceILibrary- Returns:
- The maximum size in bytes.
-
getMaxSizeEventListeners
Description copied from interface:ILibraryGets the email addresses to notify if the maximum size is reached.- Specified by:
getMaxSizeEventListenersin interfaceILibrary- Returns:
- The email addresses.
-
setAlertEventListeners
Description copied from interface:ILibrarySets the email addresses to notify when the alert size is reached.- Specified by:
setAlertEventListenersin interfaceILibrary- Parameters:
emails- The email addresses.
-
setAlertSize
public void setAlertSize(int alertSize) Description copied from interface:ILibrarySets the alert size.- Specified by:
setAlertSizein interfaceILibrary- Parameters:
alertSize- The size in bytes.
-
setMaxFileSize
public void setMaxFileSize(long maxFileSize) Description copied from interface:ILibrarySets the maximum size for a file.- Specified by:
setMaxFileSizein interfaceILibrary- Parameters:
maxFileSize- The file size in bytes.
-
setMaxSize
public void setMaxSize(long maxSize) Description copied from interface:ILibrarySets the maximum size available.- Specified by:
setMaxSizein interfaceILibrary- Parameters:
maxSize- The maximum size.
-
setMaxSizeEventListeners
Description copied from interface:ILibrarySets the email addresses to notify when the maximum size is reached.- Specified by:
setMaxSizeEventListenersin interfaceILibrary- Parameters:
emails- The email addresses.
-
setPhysicalPath
Description copied from interface:ILibrarySets the physical path of the library- Specified by:
setPhysicalPathin interfaceILibrary- Parameters:
path- The physical path.
-
getCurrentSize
public long getCurrentSize()Description copied from interface:ILibraryGets the current size.- Specified by:
getCurrentSizein interfaceILibrary- Returns:
- The size in bytes.
-
getLargestFileSize
public long getLargestFileSize()Description copied from interface:ILibraryGets the largest file size.- Specified by:
getLargestFileSizein interfaceILibrary- Returns:
- The size in bytes.
-
getNumberOfElements
public long getNumberOfElements()Description copied from interface:ILibraryThe number of elements.- Specified by:
getNumberOfElementsin interfaceILibrary- Returns:
- The number of elements.
-
getNumberOfElements
Description copied from interface:ILibraryThe number of elements of a specific class.- Specified by:
getNumberOfElementsin interfaceILibrary- Parameters:
natureClass- The nature.- Returns:
- The number of elements.
-
getSmallestFileSize
public long getSmallestFileSize()Description copied from interface:ILibraryGets the smallest file size.- Specified by:
getSmallestFileSizein interfaceILibrary- Returns:
- The size in bytes.
-
allowHistoryEvents
public void allowHistoryEvents()Description copied from interface:ILibraryAllows to log history events.- Specified by:
allowHistoryEventsin interfaceILibrary
-
denyHistoryEvents
public void denyHistoryEvents()Description copied from interface:ILibraryAllows to stop logging history events.- Specified by:
denyHistoryEventsin interfaceILibrary
-
setHistoryEvents
public void setHistoryEvents(boolean enabled) -
isHistoryEnabled
public boolean isHistoryEnabled()Description copied from interface:ILibraryHistory activation status- Specified by:
isHistoryEnabledin interfaceILibrary- Returns:
- The status of history.
-
isIndexationEnable
public boolean isIndexationEnable()Description copied from interface:ILibraryCheck if the datastore must be indexed- Specified by:
isIndexationEnablein interfaceILibrary- Returns:
- true if the datastore must be indexed, false if not
-
setIndexationEnable
public void setIndexationEnable(boolean indexationEnable) Description copied from interface:ILibrarySets the indexation state of the datastore- Specified by:
setIndexationEnablein interfaceILibrary- Parameters:
indexationEnable- true if the datastore must be indexed, false if not
-
getAuthorizedExtensions
Description copied from interface:ILibraryGets the list of authorized extensions.- Specified by:
getAuthorizedExtensionsin interfaceILibrary- Returns:
- The list of authorized extensions.
-
setAuthorizedExtensions
Description copied from interface:ILibrarySets the list of authorized extensions.- Specified by:
setAuthorizedExtensionsin interfaceILibrary- Parameters:
authorizedExtensions- The authorized extensions.
-