Package mc.core.domain.i18n.text
Class TextService
java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.i18n.text.TextService
- All Implemented Interfaces:
mc.core.service.base.IService
@ApplicationScoped
public class TextService
extends mc.core.system.base.BaseBean
implements mc.core.service.base.IService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyTextSet(IBaseEntity entity, IEntityField field, TextSet textSet) createTextSet(String textType, String concept) create a new shared textSetgetMasterLocale(IBaseEntity entity) longgetRefCount(TextSet textSet) count references to textSet.get references to textSet.booleanvoidsetTestmode(Boolean testmode) always use shared textSetsvoidvoidsetText(TextSet textSet, TextValueTO textValueTO) setTextSet(IBaseEntity entity, IEntityField field, String text, Locale locale) setTextSet(IBaseEntity entity, IEntityField field, TextValueTO textValueTO) voidsetTextSet(IBaseEntity entity, IEntityField field, TextSet textSet)
-
Constructor Details
-
TextService
public TextService()
-
-
Method Details
-
setTestmode
always use shared textSets -
isLicenced
public boolean isLicenced() -
setTextSet
-
setTextSet
-
getMasterLocale
-
copyTextSet
-
createTextSet
create a new shared textSet- Parameters:
textType- optional. use "content" if nullconcept- optional- Returns:
- new persistent set
-
setTextSet
-
setText
public void setText(TextSet textSet, String text, Locale locale) throws mc.core.system.validation.ValidationException - Throws:
mc.core.system.validation.ValidationException
-
setText
public void setText(TextSet textSet, TextValueTO textValueTO) throws mc.core.system.validation.ValidationException - Throws:
mc.core.system.validation.ValidationException
-
getRefCount
count references to textSet. WARNING: this must query all entityBase tables in DB and is slow -
getUsage
get references to textSet. WARNING: this must query all entityBase tables in DB and is slow
-