Package com.axemble.vdoc.sdk.interfaces
Interface ILibrary
- All Superinterfaces:
IDeletionSupport,IElement,IExternalSupport,IProtocolSupport,ISearchSupport,ISecuritySupport,Serializable
- All Known Implementing Classes:
PortalLibrary
public interface ILibrary
extends IElement, IDeletionSupport, IExternalSupport, ISecuritySupport, ISearchSupport, IProtocolSupport
The library object within the library system.
- Since:
- 1.0, 10/05/2008
- Author:
- vlygeros
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidAllows to log history events.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.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.voidsetIndexationEnable(boolean indexationEnable) Sets the indexation state of the datastorevoidsetMaxFileSize(long maximumFileSize) 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 interface com.axemble.vdoc.sdk.supports.IDeletionSupport
deleteMethods inherited from interface com.axemble.vdoc.sdk.interfaces.IElement
getId, getModule, getNativeObject, getPath, saveMethods inherited from interface com.axemble.vdoc.sdk.supports.IExternalSupport
getExternalClassName, getExternalNativeIdMethods inherited from interface com.axemble.vdoc.sdk.supports.IProtocolSupport
getProtocolURI, getProtocolURI
-
Method Details
-
getName
String getName()Gets the name of the library.- Returns:
- The name of the library.
-
setName
Sets the name of the library.- Parameters:
name- The new name to set to the library.
-
getPhysicalPath
String getPhysicalPath()Retrieves the physical path of the library.- Returns:
- The physical path.
-
setPhysicalPath
Sets the physical path of the library- Parameters:
path- The physical path.
-
getMaxFileSize
long getMaxFileSize()Gets the maximum size of a file.- Returns:
- The maximum size of a file in bytes.
-
setMaxFileSize
void setMaxFileSize(long maximumFileSize) Sets the maximum size for a file.- Parameters:
maximumFileSize- The file size in bytes.
-
getMaxSize
long getMaxSize()Gets the maximum size available for a library.- Returns:
- The maximum size in bytes.
-
setMaxSize
void setMaxSize(long maxSize) Sets the maximum size available.- Parameters:
maxSize- The maximum size.
-
getMaxSizeEventListeners
String getMaxSizeEventListeners()Gets the email addresses to notify if the maximum size is reached.- Returns:
- The email addresses.
-
setMaxSizeEventListeners
Sets the email addresses to notify when the maximum size is reached.- Parameters:
emails- The email addresses.
-
getAlertSize
int getAlertSize()Gets the alert size in bytes.- Returns:
- The size in bytes.
-
setAlertSize
void setAlertSize(int alertSize) Sets the alert size.- Parameters:
alertSize- The size in bytes.
-
getAlertEventListeners
String getAlertEventListeners()Gets the email addresses to notify when the alert size is reached.- Returns:
- The email addresses.
-
setAlertEventListeners
Sets the email addresses to notify when the alert size is reached.- Parameters:
emails- The email addresses.
-
getForbiddenExtensions
String getForbiddenExtensions()Gets the list of forbidden extensions.- Returns:
- The list of forbidden extensions.
-
setForbiddenExtensions
Sets the list of forbidden extensions.- Parameters:
forbiddenExtensions- The forbidden extensions.
-
getAllFolders
Gets off the folders.- Parameters:
iContext- The user context.- Returns:
- A java.util.Collection of
IFolderobjects.
-
getFolders
Gets all the folders at the root level.- Parameters:
iContext- The user context.- Returns:
- A java.util.Collection of
IFolderobjects.
-
getAllCategories
Collection<ICategory> getAllCategories()Gets all the categories.- Returns:
- A java.util.Collection of
ICategoryobjects.
-
getCategories
Collection<ICategory> getCategories()Gets all the root categories.- Returns:
- A java.util.Collection of
ICategoryobjects.
-
getFileDefinitions
Collection<IResourceDefinition> getFileDefinitions()Gets the file definitions.- Returns:
- A java.util.Collection of
IResourceDefinitionobjects.
-
getOrganization
IOrganization getOrganization()Gets the organization.- Returns:
- A
IOrganizationobject.
-
setOrganization
Sets the organization.- Parameters:
organization- TheIOrganizationobject.
-
getCurrentSize
long getCurrentSize()Gets the current size.- Returns:
- The size in bytes.
-
getLargestFileSize
long getLargestFileSize()Gets the largest file size.- Returns:
- The size in bytes.
-
getSmallestFileSize
long getSmallestFileSize()Gets the smallest file size.- Returns:
- The size in bytes.
-
getNumberOfElements
long getNumberOfElements()The number of elements.- Returns:
- The number of elements.
-
getNumberOfElements
The number of elements of a specific class.- Parameters:
natureClass- The nature.- Returns:
- The number of elements.
-
allowHistoryEvents
void allowHistoryEvents()Allows to log history events. -
denyHistoryEvents
void denyHistoryEvents()Allows to stop logging history events. -
isHistoryEnabled
boolean isHistoryEnabled()History activation status- Returns:
- The status of history.
-
isIndexationEnable
boolean isIndexationEnable()Check if the datastore must be indexed- Returns:
- true if the datastore must be indexed, false if not
-
setIndexationEnable
void setIndexationEnable(boolean indexationEnable) Sets the indexation state of the datastore- Parameters:
indexationEnable- true if the datastore must be indexed, false if not
-
getAuthorizedExtensions
String getAuthorizedExtensions()Gets the list of authorized extensions.- Returns:
- The list of authorized extensions.
-
setAuthorizedExtensions
Sets the list of authorized extensions.- Parameters:
authorizedExtensions- The authorized extensions.
-