public class MLPropertyInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
This interceptor ensures that all multilingual (ML) text is transformed to the locale chosen for the request for getters and transformed to the default locale type for setters.
Where ML text has been passed in, this
will be allowed to pass.
NodeService.getProperty(NodeRef, QName),
NodeService.getProperties(NodeRef),
NodeService.setProperty(NodeRef, QName, Serializable),
NodeService.setProperties(NodeRef, Map)| Constructor and Description |
|---|
MLPropertyInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
getClosestLocale(Collection<?> collection) |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
static boolean |
isMLAware() |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
static boolean |
setMLAware(boolean mlAwareVal)
Change the filtering behaviour of this interceptor on the curren thread.
|
void |
setMultilingualContentService(MultilingualContentService multilingualContentService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService bean) |
public static boolean setMLAware(boolean mlAwareVal)
mlAwareVal - true if the current thread is able to handle
d:mltext property types, otherwise false.public static boolean isMLAware()
d:mltext types properly.public void setNodeService(org.alfresco.service.cmr.repository.NodeService bean)
public void setMultilingualContentService(MultilingualContentService multilingualContentService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorThrowablepublic Locale getClosestLocale(Collection<?> collection)
Copyright © 2005–2018 Alfresco Software. All rights reserved.