Class LinkTranslationPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.social.translation.plugin.TranslationPlugin
io.meeds.social.link.plugin.LinkTranslationPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class LinkTranslationPlugin extends io.meeds.social.translation.plugin.TranslationPlugin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    LinkTranslationPlugin(io.meeds.social.link.service.LinkService linkService, org.exoplatform.services.security.IdentityRegistry identityRegistry, org.exoplatform.services.organization.OrganizationService organizationService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    getAudienceId(long objectId)
     
     
    long
    getSpaceId(long objectId)
     
    boolean
    hasAccessPermission(long linkId, String username)
     
    boolean
    hasEditPermission(long linkId, String username)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LinkTranslationPlugin

      public LinkTranslationPlugin(io.meeds.social.link.service.LinkService linkService, org.exoplatform.services.security.IdentityRegistry identityRegistry, org.exoplatform.services.organization.OrganizationService organizationService)
  • Method Details

    • getObjectType

      public String getObjectType()
      Specified by:
      getObjectType in class io.meeds.social.translation.plugin.TranslationPlugin
    • hasAccessPermission

      public boolean hasAccessPermission(long linkId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      hasAccessPermission in class io.meeds.social.translation.plugin.TranslationPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • hasEditPermission

      public boolean hasEditPermission(long linkId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      hasEditPermission in class io.meeds.social.translation.plugin.TranslationPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getAudienceId

      public long getAudienceId(long objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getAudienceId in class io.meeds.social.translation.plugin.TranslationPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getSpaceId

      public long getSpaceId(long objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getSpaceId in class io.meeds.social.translation.plugin.TranslationPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException