Class User.UpdateUserBuilder

  • Enclosing class:
    User

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

      • UpdateUserBuilder

        public UpdateUserBuilder()
    • Method Detail

      • getUserId

        public java.lang.Long getUserId()
        Get the id of the user
        Returns:
        the id
      • setUserId

        public User.UpdateUserBuilder setUserId​(java.lang.Long userId)
        Set the user id
        Parameters:
        userId - the user id
        Returns:
        the updateSheetBuilder object
      • setAdmin

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

        public User.UpdateUserBuilder setLicensedSheetCreator​(java.lang.Boolean licensedSheetCreator)
        Licensed sheet creator.
        Parameters:
        licensedSheetCreator - the licensed sheet creator
        Returns:
        the update 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.UpdateUserBuilder 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.UpdateUserBuilder 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.UpdateUserBuilder 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.UpdateUserBuilder setResourceViewer​(java.lang.Boolean resourceViewer)
        Parameters:
        resourceViewer - the resourceViewer to set
        Returns:
        the builder
      • build

        public User build()
        Builds the User.
        Returns:
        the user