Class AbstractLayoutAttachmentPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.attachment.AttachmentPlugin
io.meeds.layout.plugin.attachment.AbstractLayoutAttachmentPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Direct Known Subclasses:
LayoutBackgroundAttachmentPlugin, LayoutTextBodyBackgroundAttachmentPlugin, LayoutTextHeaderBackgroundAttachmentPlugin, LayoutTextSubtitleBackgroundAttachmentPlugin, LayoutTextTitleBackgroundAttachmentPlugin

public abstract class AbstractLayoutAttachmentPlugin extends org.exoplatform.social.attachment.AttachmentPlugin
Common logic shared by every container/section background attachment plugin (the whole app/section background, and each per-text-type background). Subclasses only declare their own OBJECT_TYPE.
  • Field Summary

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    long
    getSpaceId(String objectId)
     
    boolean
    hasAccessPermission(org.exoplatform.services.security.Identity userIdentity, String entityId)
     
    boolean
    hasEditPermission(org.exoplatform.services.security.Identity userIdentity, String entityId)
     
    void
     

    Methods inherited from class org.exoplatform.social.attachment.AttachmentPlugin

    canUpdateAttachmentList, getObjectType

    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
  • Constructor Details

    • AbstractLayoutAttachmentPlugin

      public AbstractLayoutAttachmentPlugin()
  • Method Details

    • init

      @PostConstruct public void init()
    • hasEditPermission

      public boolean hasEditPermission(org.exoplatform.services.security.Identity userIdentity, String entityId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      hasEditPermission in class org.exoplatform.social.attachment.AttachmentPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • hasAccessPermission

      public boolean hasAccessPermission(org.exoplatform.services.security.Identity userIdentity, String entityId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      hasAccessPermission in class org.exoplatform.social.attachment.AttachmentPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getAudienceId

      public long getAudienceId(String objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getAudienceId in class org.exoplatform.social.attachment.AttachmentPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getSpaceId

      public long getSpaceId(String objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Specified by:
      getSpaceId in class org.exoplatform.social.attachment.AttachmentPlugin
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException