Interface GalleryService

  • All Superinterfaces:
    org.silverpeas.core.ApplicationService
    All Known Implementing Classes:
    DefaultGalleryService

    public interface GalleryService
    extends org.silverpeas.core.ApplicationService
    • Method Detail

      • getContributionById

        Optional<Media> getContributionById​(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
        Specified by:
        getContributionById in interface org.silverpeas.core.ApplicationService
      • getAlbum

        AlbumDetail getAlbum​(org.silverpeas.core.node.model.NodePK nodePK)
      • createAlbum

        org.silverpeas.core.node.model.NodePK createAlbum​(AlbumDetail album,
                                                          org.silverpeas.core.node.model.NodePK nodePK)
      • deleteAlbum

        void deleteAlbum​(org.silverpeas.core.admin.user.model.UserDetail user,
                         String componentInstanceId,
                         org.silverpeas.core.node.model.NodePK nodePK)
      • removeMediaFromAllAlbums

        void removeMediaFromAllAlbums​(Media media)
      • addMediaToAlbums

        void addMediaToAlbums​(Media media,
                              String... albums)
      • getAllPhotos

        Collection<Photo> getAllPhotos​(org.silverpeas.core.node.model.NodePK nodePK)
      • countAllMedia

        long countAllMedia​(org.silverpeas.core.node.model.NodePK nodePK)
      • countAllMedia

        long countAllMedia​(org.silverpeas.core.node.model.NodePK nodePK,
                           MediaCriteria.VISIBILITY visibility)
      • paste

        void paste​(org.silverpeas.core.admin.user.model.UserDetail user,
                   String componentInstanceId,
                   GalleryPasteDelegate delegate)
      • importFromRepository

        void importFromRepository​(org.silverpeas.core.admin.user.model.UserDetail user,
                                  String componentInstanceId,
                                  File repository,
                                  MediaDataCreateDelegate delegate)
      • deleteMedia

        void deleteMedia​(org.silverpeas.core.admin.user.model.UserDetail user,
                         String componentInstanceId,
                         Collection<String> mediaIds)
      • getLastRegisteredMedia

        List<Media> getLastRegisteredMedia​(String instanceId)
      • getAllMediaThatWillBeNotVisible

        Collection<Media> getAllMediaThatWillBeNotVisible​(int nbDays)
      • getPath

        Collection<org.silverpeas.core.node.model.NodeDetail> getPath​(org.silverpeas.core.node.model.NodePK nodePK)
      • indexGallery

        void indexGallery​(org.silverpeas.core.admin.user.model.UserDetail user,
                          String instanceId)
      • getSilverObjectId

        int getSilverObjectId​(MediaPK mediaPK)
      • search

        Collection<Media> search​(org.silverpeas.core.index.search.model.QueryDescription query)
      • updateOrderRow

        void updateOrderRow​(OrderRow row)
      • updateOrder

        void updateOrder​(Order order)
      • getAllOrderToDelete

        List<Order> getAllOrderToDelete​(int nbDays)
      • deleteOrders

        void deleteOrders​(List<Order> orders)
      • getAllMediaByUserId

        List<org.silverpeas.core.socialnetwork.model.SocialInformation> getAllMediaByUserId​(String userId,
                                                                                            org.silverpeas.core.date.period.Period period)
        Gets the list of social information about the media for the specified user and in the given period of time.
        Parameters:
        userId - the unique identifier of a user
        period - interval of time in which the media were created or updated.
        Returns:
        a list of SocialInformation objects.
      • getSocialInformationListOfMyContacts

        List<org.silverpeas.core.socialnetwork.model.SocialInformation> getSocialInformationListOfMyContacts​(List<String> listOfUserId,
                                                                                                             List<String> availableComponent,
                                                                                                             org.silverpeas.core.date.period.Period period)
        Gets the list of social information of the specified users about all the media in the given component instances and in the specified period of time.
        Parameters:
        listOfUserId - a list of unique identifier of users.
        availableComponent - a list of unique identifier of component instances.
        period - interval of time in which the media were created or updated.
        Returns:
        a list of SocialInformation objects.
      • sortAlbums

        void sortAlbums​(List<org.silverpeas.core.node.model.NodePK> albumIds)