Package io.meeds.gamification.plugin
Class ProgramTranslationPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.social.translation.plugin.TranslationPlugin
io.meeds.gamification.plugin.ProgramTranslationPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class ProgramTranslationPlugin
extends io.meeds.social.translation.plugin.TranslationPlugin
-
Field Summary
FieldsFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionProgramTranslationPlugin(ProgramService programService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager) -
Method Summary
Modifier and TypeMethodDescriptionlonggetAudienceId(long programId) longgetSpaceId(long programId) booleanhasAccessPermission(long programId, String username) booleanhasEditPermission(long programId, String username) Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
PROGRAM_OBJECT_TYPE
- See Also:
-
PROGRAM_DESCRIPTION_FIELD_NAME
- See Also:
-
PROGRAM_TITLE_FIELD_NAME
- See Also:
-
-
Constructor Details
-
ProgramTranslationPlugin
public ProgramTranslationPlugin(ProgramService programService, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager)
-
-
Method Details
-
getObjectType
- Specified by:
getObjectTypein classio.meeds.social.translation.plugin.TranslationPlugin
-
hasAccessPermission
public boolean hasAccessPermission(long programId, 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 programId, 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
-