public class MLPropertyInterceptor
extends java.lang.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.
org.alfresco.service.cmr.repository.MLText#getContextLocale(),
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 |
|---|---|
java.util.Locale |
getClosestLocale(java.util.Collection collection) |
java.lang.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 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorjava.lang.Throwablepublic java.util.Locale getClosestLocale(java.util.Collection collection)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.