Class WikiPageAttachmentPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.attachment.AttachmentPlugin
org.exoplatform.wiki.service.plugin.WikiPageAttachmentPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class WikiPageAttachmentPlugin
extends org.exoplatform.social.attachment.AttachmentPlugin
-
Field Summary
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionWikiPageAttachmentPlugin(NoteService noteService, org.exoplatform.social.core.space.spi.SpaceService spaceService) -
Method Summary
Modifier and TypeMethodDescriptionlonglonggetSpaceId(String noteId) booleanhasAccessPermission(org.exoplatform.services.security.Identity identity, String noteId) booleanhasEditPermission(org.exoplatform.services.security.Identity identity, String noteId) 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:
-
-
Constructor Details
-
WikiPageAttachmentPlugin
public WikiPageAttachmentPlugin(NoteService noteService, org.exoplatform.social.core.space.spi.SpaceService spaceService)
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein classorg.exoplatform.social.attachment.AttachmentPlugin
-
hasAccessPermission
public boolean hasAccessPermission(org.exoplatform.services.security.Identity identity, String noteId) - Specified by:
hasAccessPermissionin classorg.exoplatform.social.attachment.AttachmentPlugin
-
hasEditPermission
public boolean hasEditPermission(org.exoplatform.services.security.Identity identity, String noteId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
hasEditPermissionin classorg.exoplatform.social.attachment.AttachmentPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getAudienceId
public long getAudienceId(String s) 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 noteId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getSpaceIdin classorg.exoplatform.social.attachment.AttachmentPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-