Class User.AddUserBuilder

  • Enclosing class:
    User

    public static class User.AddUserBuilder
    extends java.lang.Object
    A convenience class for making a User object with the appropriate fields for adding the user.
    • Constructor Detail

      • AddUserBuilder

        public AddUserBuilder()
    • Method Detail

      • setAdmin

        public User.AddUserBuilder setAdmin​(java.lang.Boolean admin)
        Sets the admin flag which allows managing users and accounts.
        Parameters:
        admin - the admin
        Returns:
        the adds the user builder
      • setLicensedSheetCreator

        public User.AddUserBuilder setLicensedSheetCreator​(java.lang.Boolean licensedSheetCreator)
        Sets the licensed sheet creator flag that allows creating and owning sheets.
        Parameters:
        licensedSheetCreator - the licensed sheet creator
        Returns:
        the adds the user builder
      • setEmail

        public User.AddUserBuilder setEmail​(java.lang.String email)
        Sets the email for the user.
        Parameters:
        email - the email
        Returns:
        the adds the user builder
      • getAdmin

        public java.lang.Boolean getAdmin()
        Gets the admin.
        Returns:
        the admin
      • getLicensedSheetCreator

        public java.lang.Boolean getLicensedSheetCreator()
        Gets the licensed sheet creator.
        Returns:
        the licensed sheet creator
      • getFirstName

        public java.lang.String getFirstName()
        Returns:
        the firstName
      • setFirstName

        public User.AddUserBuilder setFirstName​(java.lang.String firstName)
        Parameters:
        firstName - the firstName to set
        Returns:
        the builder
      • getLastName

        public java.lang.String getLastName()
        Returns:
        the lastName
      • setLastName

        public User.AddUserBuilder setLastName​(java.lang.String lastName)
        Parameters:
        lastName - the lastName to set
        Returns:
        the builder
      • getGroupAdmin

        public java.lang.Boolean getGroupAdmin()
        Returns:
        the groupAdmin
      • setGroupAdmin

        public User.AddUserBuilder setGroupAdmin​(java.lang.Boolean groupAdmin)
        Parameters:
        groupAdmin - the groupAdmin to set
        Returns:
        the builder
      • getResourceViewer

        public java.lang.Boolean getResourceViewer()
        Returns:
        the resourceViewer
      • setResourceViewer

        public User.AddUserBuilder setResourceViewer​(java.lang.Boolean resourceViewer)
        Parameters:
        resourceViewer - the resourceViewer to set
        Returns:
        the builder
      • build

        public User build()
        Builds the User object using the required fields.
        Returns:
        the user