Class XMLViews


  • public class XMLViews
    extends Object
    • Method Detail

      • unmarshal

        public static ObjectViews unmarshal​(InputStream stream)
                                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • unmarshal

        public static ObjectViews unmarshal​(String xml)
                                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • unmarshal

        public static ObjectViews unmarshal​(Node node)
                                     throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • marshal

        public static void marshal​(ObjectViews views,
                                   Writer writer)
                            throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • isViewType

        public static boolean isViewType​(String type)
      • toXml

        public static String toXml​(Object obj,
                                   boolean strip)
      • fromXML

        public static ObjectViews fromXML​(String xml)
                                   throws javax.xml.bind.JAXBException
        Throws:
        javax.xml.bind.JAXBException
      • isCustomizationEnabled

        public static boolean isCustomizationEnabled()
      • findView

        public static AbstractView findView​(String name,
                                            String type,
                                            String model,
                                            String module)
        Find view by the given parameters.

        This method will find view in following order:

        1. find custom view by name and current user
        2. find view matching given params with user's group
        3. find view matching given params but have no groups
        Parameters:
        name - find by name
        type - 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

        public static Action findAction​(String name)