Package com.axelor.meta.loader
Class XMLViews
java.lang.Object
com.axelor.meta.loader.XMLViews
-
Method Summary
Modifier and TypeMethodDescriptionstatic Action
findAction
(String name) static AbstractView
findCustomView
(Long id) static AbstractView
static AbstractView
static AbstractView
static AbstractView
Find view by the given parameters.static ObjectViews
static boolean
static boolean
isViewType
(String type) static void
marshal
(ObjectViews views, Writer writer) static Document
static String
static ObjectViews
unmarshal
(InputStream stream) static ObjectViews
static 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
-