Class CredentialReference


  • public class CredentialReference
    extends Object
    Provides building blocks for dealing with the credential-reference complex attribute used in several resources across subsystems.
    • Field Detail

      • ATTRIBUTES

        public static final String[] ATTRIBUTES
      • ATTRIBUTES_PREFIXED

        public static final String[] ATTRIBUTES_PREFIXED
    • Method Detail

      • form

        public Form<ModelNode> form​(String baseId,
                                    Metadata metadata,
                                    String alternativeName,
                                    Supplier<String> alternativeValue,
                                    Supplier<ResourceAddress> address,
                                    Callback callback)
        Creates a form for the credential-reference complex attribute of a resource. The form is setup as a singleton form to add, save, reset and remove the complex attribute.
        Parameters:
        baseId - base ID used for the generated form and add resource dialog
        metadata - the metadata of the resource which contains the credential-reference attribute
        alternativeName - the name of the alternative attribute
        alternativeValue - the value of the alternative attribute
        address - the fully qualified address of the resource used for the CRUD actions
        callback - the callback executed after the credential-reference attributes has been added, saved, reset or removed
      • form

        public Form<ModelNode> form​(String baseId,
                                    Metadata metadata,
                                    String crName,
                                    String alternativeName,
                                    Supplier<String> alternativeValue,
                                    Supplier<Operation> ping,
                                    Supplier<ResourceAddress> address,
                                    Callback emptyAction,
                                    Callback callback)
        Creates a form for the credential-reference complex attribute of a resource. The form is setup as a singleton form to add, save, reset and remove the complex attribute.
        Parameters:
        baseId - base ID used for the generated form and add resource dialog
        metadata - the metadata of the resource which contains the credential-reference attribute
        crName - the name of the credential-reference complex attribute
        alternativeName - the name of the alternative attribute
        alternativeValue - the value of the alternative attribute
        ping - the operation to check the presence of the credential reference
        address - the fully qualified address of the resource used for the CRUD actions
        emptyAction - the action to perform to add a credential reference from an empty state
        callback - the callback executed after the credential-reference attributes has been added, saved, reset or removed