Class StoreAnonymizerXmlHandler

    • Field Detail

      • AUTHORIZED_MEMBER_KV_ATTRIBUTES

        protected static java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>> AUTHORIZED_MEMBER_KV_ATTRIBUTES
      • AUTHORIZED_TAG_KV_ATTRIBUTES

        protected static java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​java.util.Collection<java.lang.String>>> AUTHORIZED_TAG_KV_ATTRIBUTES
    • Constructor Detail

      • StoreAnonymizerXmlHandler

        public StoreAnonymizerXmlHandler()
    • Method Detail

      • startElement

        public void startElement​(java.lang.String uri,
                                 java.lang.String localName,
                                 java.lang.String qName,
                                 org.xml.sax.Attributes attributes)
                          throws org.xml.sax.SAXException
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • endElement

        public void endElement​(java.lang.String uri,
                               java.lang.String localName,
                               java.lang.String qName)
                        throws org.xml.sax.SAXException
        Specified by:
        endElement in interface org.xml.sax.ContentHandler
        Overrides:
        endElement in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • endDocument

        public void endDocument()
                         throws org.xml.sax.SAXException
        Specified by:
        endDocument in interface org.xml.sax.ContentHandler
        Overrides:
        endDocument in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • anonymizeString

        public java.lang.String anonymizeString​(java.lang.String attributeValue)
      • getAnonymizedAttributeValue

        public java.lang.String getAnonymizedAttributeValue​(java.lang.String tagName,
                                                            java.lang.String attributeName,
                                                            java.lang.String attributeValue)
      • getAnonymizedAttributeValueMap

        public java.lang.String getAnonymizedAttributeValueMap​(java.lang.String attributeValue)
      • isAuthorizedAttribute

        public boolean isAuthorizedAttribute​(java.lang.String attributeName)
      • isAuthorizedTagAttribute

        public boolean isAuthorizedTagAttribute​(java.lang.String tagName,
                                                java.lang.String attributeName)
      • isAuthorizedTagAttributeNameValuePair

        public boolean isAuthorizedTagAttributeNameValuePair​(java.lang.String tagName,
                                                             java.lang.String attributeName,
                                                             java.lang.String attributeValue)
      • isAuthorizedAttributeValue

        public boolean isAuthorizedAttributeValue​(java.lang.String value)
        Allows values being:
        • empty
        • number
        • boolean
        • jcmsId
        • empty array or collection
        • IDs array or collection
      • getAuthorizedAttributes

        public java.util.Collection<java.lang.String> getAuthorizedAttributes()
      • getAuthorizedTagAttributes

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getAuthorizedTagAttributes()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object