Interface ILibrary

All Superinterfaces:
IDeletionSupport, IElement, IExternalSupport, IProtocolSupport, ISearchSupport, ISecuritySupport, Serializable
All Known Implementing Classes:
PortalLibrary

The library object within the library system.
Since:
1.0, 10/05/2008
Author:
vlygeros
See Also:
  • Method Details

    • getName

      String getName()
      Gets the name of the library.
      Returns:
      The name of the library.
    • setName

      void setName(String name)
      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

      void setPhysicalPath(String path)
      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

      void setMaxSizeEventListeners(String emails)
      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

      void setAlertEventListeners(String emails)
      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

      void setForbiddenExtensions(String forbiddenExtensions)
      Sets the list of forbidden extensions.
      Parameters:
      forbiddenExtensions - The forbidden extensions.
    • getAllFolders

      Collection<IFolder> getAllFolders(IContext iContext)
      Gets off the folders.
      Parameters:
      iContext - The user context.
      Returns:
      A java.util.Collection of IFolder objects.
    • getFolders

      Collection<IFolder> getFolders(IContext iContext)
      Gets all the folders at the root level.
      Parameters:
      iContext - The user context.
      Returns:
      A java.util.Collection of IFolder objects.
    • getAllCategories

      Collection<ICategory> getAllCategories()
      Gets all the categories.
      Returns:
      A java.util.Collection of ICategory objects.
    • getCategories

      Collection<ICategory> getCategories()
      Gets all the root categories.
      Returns:
      A java.util.Collection of ICategory objects.
    • getFileDefinitions

      Collection<IResourceDefinition> getFileDefinitions()
      Gets the file definitions.
      Returns:
      A java.util.Collection of IResourceDefinition objects.
    • getOrganization

      IOrganization getOrganization()
      Gets the organization.
      Returns:
      A IOrganization object.
    • setOrganization

      void setOrganization(IOrganization organization)
      Sets the organization.
      Parameters:
      organization - The IOrganization object.
    • 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

      long getNumberOfElements(Class natureClass)
      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

      void setAuthorizedExtensions(String authorizedExtensions)
      Sets the list of authorized extensions.
      Parameters:
      authorizedExtensions - The authorized extensions.