Class CmsPortletTranslationPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.social.translation.plugin.TranslationPlugin
io.meeds.layout.plugin.translation.CmsPortletTranslationPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
@Component
@Order(-2147483648)
public class CmsPortletTranslationPlugin
extends io.meeds.social.translation.plugin.TranslationPlugin
-
Field Summary
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetAudienceId(String templateId) longgetSpaceId(String templateId) booleanhasAccessPermission(String id, String username) booleanhasEditPermission(String id, String username) voidinit()Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
OBJECT_TYPE
- See Also:
-
-
Constructor Details
-
CmsPortletTranslationPlugin
public CmsPortletTranslationPlugin()
-
-
Method Details
-
init
@PostConstruct public void init() -
getObjectType
- Specified by:
getObjectTypein classio.meeds.social.translation.plugin.TranslationPlugin
-
hasEditPermission
public boolean hasEditPermission(String id, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
hasEditPermissionin classio.meeds.social.translation.plugin.TranslationPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
hasAccessPermission
public boolean hasAccessPermission(String id, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
hasAccessPermissionin classio.meeds.social.translation.plugin.TranslationPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
getAudienceId
public long getAudienceId(String templateId) 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(String templateId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
getSpaceIdin classio.meeds.social.translation.plugin.TranslationPlugin- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-