Interface IFollowService

All Known Implementing Classes:
FollowService

public interface IFollowService
IFollowService.
  • Method Details

    • remove

      @Transactional("extendfollow.transactionManager") void remove(int nIdFollow)
      Delete.
      Parameters:
      nIdFollow - the nId follow
    • removeByResource

      @Transactional("extendfollow.transactionManager") void removeByResource(String strIdExtendableResource, String strExtendableResourceType)
      Delete by resource
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
    • create

      @Transactional("extendfollow.transactionManager") void create(Follow follow)
      Insert.
      Parameters:
      follow - the follow
    • update

      @Transactional("extendfollow.transactionManager") void update(Follow follow)
      Store.
      Parameters:
      follow - the follow
    • doFollow

      @Transactional("extendfollow.transactionManager") void doFollow(String strIdExtendableResource, String strExtendableResourceType, int nVoteValue, javax.servlet.http.HttpServletRequest request)
      Increment vote.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      nVoteValue - the n vote value
      request - the request
    • doCancelFollow

      void doCancelFollow(fr.paris.lutece.portal.service.security.LuteceUser user, String strIdExtendableResource, String strExtendableResourceType, javax.servlet.http.HttpServletRequest request)
      Do cancel the vote of a user
      Parameters:
      user - The user
      strIdExtendableResource - The id of the extendable resource
      strExtendableResourceType - The extendable resource type
      request - the request
    • findByPrimaryKey

      Follow findByPrimaryKey(int nIdFollow)
      Load.
      Parameters:
      nIdFollow - the n id follow
      Returns:
      the follow
    • findByResource

      Follow findByResource(String strIdExtendableResource, String strExtendableResourceType)
      Select by resource.
      Parameters:
      strIdExtendableResource - the str id extendable resource
      strExtendableResourceType - the str extendable resource type
      Returns:
      the follow
    • findByFilter

      List<Follow> findByFilter(FollowFilter filter)
      Find by filter
      Parameters:
      filter - the filter
      Returns:
      list Follow by filter
    • isAuthorized

      boolean isAuthorized(javax.servlet.http.HttpServletRequest request, FollowExtenderConfig config)
      Returns true if user is authorized to follow
      Parameters:
      request -
      config -
      Returns: