Class SpaceTemplateBannerAttachmentPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.attachment.AttachmentPlugin
io.meeds.social.space.template.plugin.attachment.SpaceTemplateBannerAttachmentPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
@Component
@Order(-2147483648)
public class SpaceTemplateBannerAttachmentPlugin
extends org.exoplatform.social.attachment.AttachmentPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.exoplatform.social.attachment.AttachmentServicestatic final Stringprotected SpaceTemplateServiceFields 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
canUpdateAttachmentListMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
OBJECT_TYPE
- See Also:
-
spaceTemplateService
-
attachmentService
@Autowired protected org.exoplatform.social.attachment.AttachmentService attachmentService
-
-
Constructor Details
-
SpaceTemplateBannerAttachmentPlugin
public SpaceTemplateBannerAttachmentPlugin()
-
-
Method Details
-
init
@PostConstruct public void init() -
getObjectType
- Specified by:
getObjectTypein classorg.exoplatform.social.attachment.AttachmentPlugin
-
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
-