Class InternalTranslationMessageServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.contentmanagement.InternalTranslationMessageServiceSecurity
-
- All Implemented Interfaces:
InternalTranslationMessageService,Service,MessageProducer
@Security public class InternalTranslationMessageServiceSecurity extends BaseServiceSecurity implements InternalTranslationMessageService
Security forInternalTranslationMessageService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description InternalTranslationMessageServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationsDatagetAppI18n()Returns the translation messages for the new frontendTranslationsDatagetBySubmodules(Set<Submodule> submodules)Returns all the translation messages for the given submodulesStringmessage(MessageFormat messageFormat, MessageKey key, Object... arguments)Returns a translation message in a given format, for the current user's language, applying the given arguments, if anyStringmessage(MessageKey key, Object... arguments)Returns a translation message for the current user's language, applying the given arguments, if anyprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if none-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getAppI18n
public TranslationsData getAppI18n() throws FrameworkException
Description copied from interface:InternalTranslationMessageServiceReturns the translation messages for the new frontend- Specified by:
getAppI18nin interfaceInternalTranslationMessageService- Throws:
FrameworkException
-
getBySubmodules
public TranslationsData getBySubmodules(Set<Submodule> submodules)
Description copied from interface:InternalTranslationMessageServiceReturns all the translation messages for the given submodules- Specified by:
getBySubmodulesin interfaceInternalTranslationMessageService
-
message
public String message(MessageFormat messageFormat, MessageKey key, Object... arguments)
Description copied from interface:InternalTranslationMessageServiceReturns a translation message in a given format, for the current user's language, applying the given arguments, if any- Specified by:
messagein interfaceInternalTranslationMessageService- Specified by:
messagein interfaceMessageProducer- Overrides:
messagein classAbstractNetworkedServerComponent
-
message
public String message(MessageKey key, Object... arguments)
Description copied from interface:InternalTranslationMessageServiceReturns a translation message for the current user's language, applying the given arguments, if any- Specified by:
messagein interfaceInternalTranslationMessageService- Specified by:
messagein interfaceMessageProducer- Overrides:
messagein classAbstractNetworkedServerComponent
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-