Class PropertyXMLBuilder

    • Constructor Detail

      • PropertyXMLBuilder

        public PropertyXMLBuilder​(String serviceName,
                                  Set schemaTypes,
                                  AMModel model)
                           throws SMSException,
                                  SSOException
        Returns a XML for displaying attribute in property sheet.
        Parameters:
        serviceName - Name of the service.
        schemaTypes - Set of schema types to display.
        model - Model for getting localized string and user locale.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
      • PropertyXMLBuilder

        public PropertyXMLBuilder​(ServiceSchema serviceSchema,
                                  AMModel model)
                           throws SMSException,
                                  SSOException
        Returns a XML for displaying attribute in property sheet.
        Parameters:
        serviceSchema - Service schemas.
        model - Model for getting localized string and user locale.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
      • PropertyXMLBuilder

        public PropertyXMLBuilder​(ServiceSchema serviceSchema,
                                  AMModel model,
                                  ResourceBundle serviceBundle,
                                  Map<SchemaType,​List<String>> sectionForType,
                                  String sectionOrderFileName)
                           throws SMSException,
                                  SSOException
        Returns a XML for displaying attribute in property sheet.
        Parameters:
        serviceSchema - Service schemas.
        model - Model for getting localized string and user locale.
        serviceBundle - The service resource bundle.
        sectionForType - A list of section headings for each schema type.
        sectionOrderFileName - The name of the section attribute order file.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
      • PropertyXMLBuilder

        public PropertyXMLBuilder​(String serviceName,
                                  AMModel model,
                                  Set attributeSchemas,
                                  SchemaType schemaType)
                           throws SMSException,
                                  SSOException
        Constructs a XML builder.
        Parameters:
        serviceName - Name of the service.
        model - Model for getting localized string and user locale.
        attributeSchemas - List of attributeSchema.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
      • PropertyXMLBuilder

        public PropertyXMLBuilder​(ServiceSchema serviceSchema,
                                  AMModel model,
                                  Set attributeSchemas)
                           throws SMSException,
                                  SSOException
        Returns a XML for displaying attribute in property sheet.
        Parameters:
        serviceSchema - Service schemas.
        model - Model for getting localized string and user locale.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
    • Method Detail

      • getXML

        public String getXML​(String realmName)
                      throws SMSException,
                             SSOException,
                             AMConsoleException
        Returns an XML string for displaying attributes in a property sheet for a specific realm. This will build a page whose values may be specific to the specified realm.
        Parameters:
        realmName - name of the realm to obtain values.
        Returns:
        XML for displaying attribute in property sheet.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
        AMConsoleException - if there are no attribute to display.
      • getXML

        public String getXML​(boolean bPropertySheetElementNode)
                      throws SMSException,
                             SSOException,
                             AMConsoleException
        Returns a XML for displaying attribute in property sheet.
        Parameters:
        bPropertySheetElementNode - true to include <propertysheet> tag.
        Returns:
        XML for displaying attribute in property sheet.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
        AMConsoleException - if there are no attribute to display.
      • getXML

        public String getXML​(Set readonly,
                             boolean bPropertySheetElementNode)
                      throws SMSException,
                             SSOException,
                             AMConsoleException
        Returns a XML for displaying attribute in property sheet.
        Parameters:
        readonly - Set of readonly attributes.
        bPropertySheetElementNode - true to include <propertysheet> tag.
        Returns:
        XML for displaying attribute in property sheet.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
        AMConsoleException - if there are no attribute to display.
      • onBeforeBuildingXML

        protected void onBeforeBuildingXML​(Map<SchemaType,​Set<AttributeSchema>> map)
        Extends this method to selective drop attribute schema that you do not want to display.
        Parameters:
        map - Map of schema type (com.sun.identity.sm.SchemaType) to a set of attribute schema (com.sun.identity.sm.AttributeSchema)
      • discardAttribute

        public void discardAttribute​(Set discard)
        Discards attributes from the builder.
        Parameters:
        discard - Set of attribute names to be discarded.