Interface ApplicationResourcePasting


  • public interface ApplicationResourcePasting

    Capability of an application to paste the resources it manages in a given location (another application instance or another space, ...).

    By default, all application instances in Silverpeas can be copied or moved to another location (another space). Nevertheless, by default the resources that are managed in this application instance aren't by default processed by the pasting. In order to paste also the resources managed by the copied or moved application instances, the Silverpeas application has to provide a class that implements this interface and that is qualified by the @Named annotation with as value the name of the application (the first letter in lower case) plus the term ResourcePasting; for example, for the Kmelia application the name should be kmeliaResourcePasting.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME_SUFFIX
      The suffix of the name any bean implementing this interface should have.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void paste​(PasteDetail pasteDetail)
      Pastes all the resources of component instance referred by the pasteDetail information to a targeted location also referred by the specified pasteDetail data.
    • Field Detail

      • NAME_SUFFIX

        static final String NAME_SUFFIX
        The suffix of the name any bean implementing this interface should have.
        See Also:
        Constant Field Values
    • Method Detail

      • paste

        void paste​(PasteDetail pasteDetail)
        Pastes all the resources of component instance referred by the pasteDetail information to a targeted location also referred by the specified pasteDetail data.
        Parameters:
        pasteDetail - the pasting information.
        Throws:
        RuntimeException - if an error occurs during the pasting process.