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
Fields inherited from class com.axemble.vdoc.sdk.impl.PortalElement
path, storageKey
Fields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module
-
Constructor Summary
ModifierConstructorDescriptionprotected
PortalLibrary
(IModule module, com.axemble.webdrive.jdo.beans.JDODataStore store) protected
PortalLibrary
(IModule module, com.axemble.webdrive.om.DataStore store) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Allows to log history events.void
Deletes theIElement
object.void
Allows to stop logging history events.Gets the email addresses to notify when the alert size is reached.int
Gets 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.long
Gets the current size.Gets the file definitions.getFolders
(IContext iContext) Gets all the folders at the root level.Gets the list of forbidden extensions.long
Gets the largest file size.long
Gets the maximum size of a file.long
Gets 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.long
The number of elements.long
getNumberOfElements
(Class natureClass) The number of elements of a specific class.Gets the organization.Retrieves the physical path of the library.long
Gets the smallest file size.boolean
History activation statusboolean
Check if the datastore must be indexedvoid
setAlertEventListeners
(String emails) Sets the email addresses to notify when the alert size is reached.void
setAlertSize
(int alertSize) Sets the alert size.void
setAuthorizedExtensions
(String authorizedExtensions) Sets the list of authorized extensions.void
setForbiddenExtensions
(String forbiddenExtensions) Sets the list of forbidden extensions.void
setHistoryEvents
(boolean enabled) void
setIndexationEnable
(boolean indexationEnable) Sets the indexation state of the datastorevoid
setMaxFileSize
(long maxFileSize) Sets the maximum size for a file.void
setMaxSize
(long maxSize) Sets the maximum size available.void
setMaxSizeEventListeners
(String emails) Sets the email addresses to notify when the maximum size is reached.void
Sets the name of the library.void
setOrganization
(IOrganization organization) Sets the organization.void
setPhysicalPath
(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, setId
Methods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getPath, save
Methods 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:IElement
Gets the native object underneath.- Specified by:
getNativeObject
in interfaceIElement
- Returns:
- an object.
-
getExternalClassName
- Specified by:
getExternalClassName
in interfaceIExternalSupport
-
getExternalNativeId
- Specified by:
getExternalNativeId
in interfaceIExternalSupport
-
getName
Description copied from interface:ILibrary
Gets the name of the library. -
setName
Description copied from interface:ILibrary
Sets the name of the library. -
getAllFolders
Description copied from interface:ILibrary
Gets off the folders.- Specified by:
getAllFolders
in interfaceILibrary
- Parameters:
iContext
- The user context.- Returns:
- A java.util.Collection of
IFolder
objects.
-
getFolders
Description copied from interface:ILibrary
Gets all the folders at the root level.- Specified by:
getFolders
in interfaceILibrary
- Parameters:
iContext
- The user context.- Returns:
- A java.util.Collection of
IFolder
objects.
-
getAllCategories
Description copied from interface:ILibrary
Gets all the categories.- Specified by:
getAllCategories
in interfaceILibrary
- Returns:
- A java.util.Collection of
ICategory
objects.
-
getCategories
Description copied from interface:ILibrary
Gets all the root categories.- Specified by:
getCategories
in interfaceILibrary
- Returns:
- A java.util.Collection of
ICategory
objects.
-
getFileDefinitions
Description copied from interface:ILibrary
Gets the file definitions.- Specified by:
getFileDefinitions
in interfaceILibrary
- Returns:
- A java.util.Collection of
IResourceDefinition
objects.
-
getPhysicalPath
Description copied from interface:ILibrary
Retrieves the physical path of the library.- Specified by:
getPhysicalPath
in interfaceILibrary
- Returns:
- The physical path.
-
delete
Description copied from interface:IDeletionSupport
Deletes theIElement
object.- Specified by:
delete
in interfaceIDeletionSupport
- Parameters:
context
- The Execution context.
-
getOrganization
Description copied from interface:ILibrary
Gets the organization.- Specified by:
getOrganization
in interfaceILibrary
- Returns:
- A
IOrganization
object.
-
setOrganization
Description copied from interface:ILibrary
Sets the organization.- Specified by:
setOrganization
in interfaceILibrary
- Parameters:
organization
- TheIOrganization
object.
-
getForbiddenExtensions
Description copied from interface:ILibrary
Gets the list of forbidden extensions.- Specified by:
getForbiddenExtensions
in interfaceILibrary
- Returns:
- The list of forbidden extensions.
-
setForbiddenExtensions
Description copied from interface:ILibrary
Sets the list of forbidden extensions.- Specified by:
setForbiddenExtensions
in interfaceILibrary
- Parameters:
forbiddenExtensions
- The forbidden extensions.
-
getAlertEventListeners
Description copied from interface:ILibrary
Gets the email addresses to notify when the alert size is reached.- Specified by:
getAlertEventListeners
in interfaceILibrary
- Returns:
- The email addresses.
-
getAlertSize
public int getAlertSize()Description copied from interface:ILibrary
Gets the alert size in bytes.- Specified by:
getAlertSize
in interfaceILibrary
- Returns:
- The size in bytes.
-
getMaxFileSize
public long getMaxFileSize()Description copied from interface:ILibrary
Gets the maximum size of a file.- Specified by:
getMaxFileSize
in interfaceILibrary
- Returns:
- The maximum size of a file in bytes.
-
getMaxSize
public long getMaxSize()Description copied from interface:ILibrary
Gets the maximum size available for a library.- Specified by:
getMaxSize
in interfaceILibrary
- Returns:
- The maximum size in bytes.
-
getMaxSizeEventListeners
Description copied from interface:ILibrary
Gets the email addresses to notify if the maximum size is reached.- Specified by:
getMaxSizeEventListeners
in interfaceILibrary
- Returns:
- The email addresses.
-
setAlertEventListeners
Description copied from interface:ILibrary
Sets the email addresses to notify when the alert size is reached.- Specified by:
setAlertEventListeners
in interfaceILibrary
- Parameters:
emails
- The email addresses.
-
setAlertSize
public void setAlertSize(int alertSize) Description copied from interface:ILibrary
Sets the alert size.- Specified by:
setAlertSize
in interfaceILibrary
- Parameters:
alertSize
- The size in bytes.
-
setMaxFileSize
public void setMaxFileSize(long maxFileSize) Description copied from interface:ILibrary
Sets the maximum size for a file.- Specified by:
setMaxFileSize
in interfaceILibrary
- Parameters:
maxFileSize
- The file size in bytes.
-
setMaxSize
public void setMaxSize(long maxSize) Description copied from interface:ILibrary
Sets the maximum size available.- Specified by:
setMaxSize
in interfaceILibrary
- Parameters:
maxSize
- The maximum size.
-
setMaxSizeEventListeners
Description copied from interface:ILibrary
Sets the email addresses to notify when the maximum size is reached.- Specified by:
setMaxSizeEventListeners
in interfaceILibrary
- Parameters:
emails
- The email addresses.
-
setPhysicalPath
Description copied from interface:ILibrary
Sets the physical path of the library- Specified by:
setPhysicalPath
in interfaceILibrary
- Parameters:
path
- The physical path.
-
getCurrentSize
public long getCurrentSize()Description copied from interface:ILibrary
Gets the current size.- Specified by:
getCurrentSize
in interfaceILibrary
- Returns:
- The size in bytes.
-
getLargestFileSize
public long getLargestFileSize()Description copied from interface:ILibrary
Gets the largest file size.- Specified by:
getLargestFileSize
in interfaceILibrary
- Returns:
- The size in bytes.
-
getNumberOfElements
public long getNumberOfElements()Description copied from interface:ILibrary
The number of elements.- Specified by:
getNumberOfElements
in interfaceILibrary
- Returns:
- The number of elements.
-
getNumberOfElements
Description copied from interface:ILibrary
The number of elements of a specific class.- Specified by:
getNumberOfElements
in interfaceILibrary
- Parameters:
natureClass
- The nature.- Returns:
- The number of elements.
-
getSmallestFileSize
public long getSmallestFileSize()Description copied from interface:ILibrary
Gets the smallest file size.- Specified by:
getSmallestFileSize
in interfaceILibrary
- Returns:
- The size in bytes.
-
allowHistoryEvents
public void allowHistoryEvents()Description copied from interface:ILibrary
Allows to log history events.- Specified by:
allowHistoryEvents
in interfaceILibrary
-
denyHistoryEvents
public void denyHistoryEvents()Description copied from interface:ILibrary
Allows to stop logging history events.- Specified by:
denyHistoryEvents
in interfaceILibrary
-
setHistoryEvents
public void setHistoryEvents(boolean enabled) -
isHistoryEnabled
public boolean isHistoryEnabled()Description copied from interface:ILibrary
History activation status- Specified by:
isHistoryEnabled
in interfaceILibrary
- Returns:
- The status of history.
-
isIndexationEnable
public boolean isIndexationEnable()Description copied from interface:ILibrary
Check if the datastore must be indexed- Specified by:
isIndexationEnable
in interfaceILibrary
- Returns:
- true if the datastore must be indexed, false if not
-
setIndexationEnable
public void setIndexationEnable(boolean indexationEnable) Description copied from interface:ILibrary
Sets the indexation state of the datastore- Specified by:
setIndexationEnable
in interfaceILibrary
- Parameters:
indexationEnable
- true if the datastore must be indexed, false if not
-
getAuthorizedExtensions
Description copied from interface:ILibrary
Gets the list of authorized extensions.- Specified by:
getAuthorizedExtensions
in interfaceILibrary
- Returns:
- The list of authorized extensions.
-
setAuthorizedExtensions
Description copied from interface:ILibrary
Sets the list of authorized extensions.- Specified by:
setAuthorizedExtensions
in interfaceILibrary
- Parameters:
authorizedExtensions
- The authorized extensions.
-