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 -
Method Summary
Modifier and TypeMethodDescriptionlonggetAudienceId(String objectId) longgetSpaceId(String objectId) booleanhasAccessPermission(org.exoplatform.services.security.Identity userIdentity, String entityId) booleanhasEditPermission(org.exoplatform.services.security.Identity userIdentity, String entityId) voidinit()Methods inherited from class org.exoplatform.social.attachment.AttachmentPlugin
canUpdateAttachmentList, getObjectTypeMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
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:
hasEditPermissionin classorg.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:
hasAccessPermissionin classorg.exoplatform.social.attachment.AttachmentPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getAudienceId
public long getAudienceId(String objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getAudienceIdin classorg.exoplatform.social.attachment.AttachmentPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getSpaceId
public long getSpaceId(String objectId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getSpaceIdin classorg.exoplatform.social.attachment.AttachmentPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-