Package com.axelor.meta.loader
Class XMLViews
java.lang.Object
com.axelor.meta.loader.XMLViews
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActionfindAction(String name) static AbstractViewfindCustomView(Long id) static AbstractViewstatic AbstractViewstatic AbstractViewstatic AbstractViewFind view by the given parameters.static ObjectViewsstatic booleanstatic booleanisViewType(String type) static voidmarshal(ObjectViews views, Writer writer) static Documentstatic Stringstatic ObjectViewsunmarshal(InputStream stream) static ObjectViewsstatic ObjectViews
-
Method Details
-
unmarshal
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
- Throws:
jakarta.xml.bind.JAXBException
-
unmarshal
- Throws:
jakarta.xml.bind.JAXBException
-
marshal
- Throws:
jakarta.xml.bind.JAXBException
-
parseXml
public static Document parseXml(String xml) throws ParserConfigurationException, SAXException, IOException -
isViewType
-
toXml
-
fromXML
- Throws:
jakarta.xml.bind.JAXBException
-
findViews
-
findView
-
findCustomView
-
findView
-
findView
-
isCustomizationEnabled
public static boolean isCustomizationEnabled() -
findView
Find view by the given parameters.This method will find view in following order:
- find custom view by name and current user
- find view matching given params with user's group
- find view matching given params but have no groups
- Parameters:
name- find by nametype- find by type (name or model should be provided)model- find by model (name or type should be provided)module- (any of the other param should be provided)- Returns:
-
findAction
-