Package io.meeds.social.link.plugin
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
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionLinkTranslationPlugin(io.meeds.social.link.service.LinkService linkService, org.exoplatform.services.security.IdentityRegistry identityRegistry, org.exoplatform.services.organization.OrganizationService organizationService) -
Method Summary
Modifier and TypeMethodDescriptionlonggetAudienceId(long objectId) longgetSpaceId(long objectId) booleanhasAccessPermission(long linkId, String username) booleanhasEditPermission(long linkId, String username) Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
LINKS_OBJECT_TYPE
- See Also:
-
-
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
- Specified by:
getObjectTypein classio.meeds.social.translation.plugin.TranslationPlugin
-
hasAccessPermission
public boolean hasAccessPermission(long linkId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
hasAccessPermissionin classio.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:
hasEditPermissionin classio.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:
getAudienceIdin classio.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:
getSpaceIdin classio.meeds.social.translation.plugin.TranslationPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-