Class MediaStockManager

java.lang.Object
com.jalios.jcms.mediastock.MediaStockManager
All Implemented Interfaces:
JPropertiesListener

public class MediaStockManager extends Object implements JPropertiesListener
  • Method Details

    • getInstance

      public static MediaStockManager getInstance()
    • propertiesChange

      public void propertiesChange(JProperties properties)
      Description copied from interface: JPropertiesListener
      Invoked after properties have been modified in JCMS and save on disk.

      You cannot alter the value received in parameters.

      Note that properties parameter may be null, a limited set of site properties, or all site properties.

      To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      Parameters:
      properties - the properties which have been submitted to change
    • getProviderSet

      public Set<MediaStockProvider> getProviderSet(boolean isEnabled)
      Parameters:
      isEnabled - to filter only on enabled providers
      Returns:
      the set of MediaStockProvider
      Since:
      jcms-11.0.0
    • getProvider

      public MediaStockProvider getProvider(String providerId)
    • query

      public MediaStockQueryResult query(String providerId, MediaStockCriteria criteria)
    • createFileDocument

      public Object createFileDocument(MediaStock mediaStock, Member author, Workspace ws, Category[] categories)
      Create a FileDocument for a given mediaStack
      Parameters:
      mediaStock - the mediaStock
      author - the author for this document
      ws - the workspace to save the document
      categories - the categories to attach to the document
      Returns:
      the FileDocument if it as been created or a ControllerStatus if the creation has failed.