Class SiteTranslationPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.social.translation.plugin.TranslationPlugin
org.exoplatform.social.core.plugin.SiteTranslationPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class SiteTranslationPlugin
extends io.meeds.social.translation.plugin.TranslationPlugin
-
Field Summary
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionSiteTranslationPlugin(org.exoplatform.portal.mop.service.LayoutService layoutService, org.exoplatform.portal.config.UserACL userACL) -
Method Summary
Modifier and TypeMethodDescriptionlonggetAudienceId(long programId) longgetSpaceId(long programId) booleanhasAccessPermission(long siteId, String username) booleanhasEditPermission(long siteId, String username) Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
SITE_OBJECT_TYPE
- See Also:
-
SITE_DESCRIPTION_FIELD_NAME
- See Also:
-
SITE_LABEL_FIELD_NAME
- See Also:
-
-
Constructor Details
-
SiteTranslationPlugin
public SiteTranslationPlugin(org.exoplatform.portal.mop.service.LayoutService layoutService, org.exoplatform.portal.config.UserACL userACL)
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein classio.meeds.social.translation.plugin.TranslationPlugin
-
hasAccessPermission
public boolean hasAccessPermission(long siteId, 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 siteId, 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 programId) 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 programId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getSpaceIdin classio.meeds.social.translation.plugin.TranslationPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-