Class RoleSummary.Builder

  • Enclosing class:
    RoleSummary

    public static class RoleSummary.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • name

        public RoleSummary.Builder name​(String name)
        The name of the role granted to the user.
        Parameters:
        name - the value to set
        Returns:
        this builder
      • adminOption

        public RoleSummary.Builder adminOption​(RoleSummary.AdminOption adminOption)
        Indicates whether the role is granted with the ADMIN OPTION (YES) or not (NO).
        Parameters:
        adminOption - the value to set
        Returns:
        this builder
      • delegateOption

        public RoleSummary.Builder delegateOption​(RoleSummary.DelegateOption delegateOption)
        Indicates whether the role is granted with the DELEGATE OPTION (YES) or not (NO).
        Parameters:
        delegateOption - the value to set
        Returns:
        this builder
      • defaultRole

        public RoleSummary.Builder defaultRole​(RoleSummary.DefaultRole defaultRole)
        Indicates whether the role is designated as a DEFAULT ROLE for the user (YES) or not (NO).
        Parameters:
        defaultRole - the value to set
        Returns:
        this builder
      • common

        public RoleSummary.Builder common​(RoleSummary.Common common)
        Indicates how the role was granted.

        Possible values: YES if the role is granted commonly (CONTAINER=ALL is used) NO if the role is granted locally (CONTAINER=ALL is not used)

        Parameters:
        common - the value to set
        Returns:
        this builder
      • inherited

        public RoleSummary.Builder inherited​(RoleSummary.Inherited inherited)
        Indicates whether the granted role is inherited from another container (YES) or not (NO).
        Parameters:
        inherited - the value to set
        Returns:
        this builder