Class MkOrganization

    • Constructor Detail

      • MkOrganization

        public MkOrganization​(MkStorage stg,
                              String login)
        Public ctor.
        Parameters:
        stg - Storage
        login - Username of organization
    • Method Detail

      • login

        public String login()
        Description copied from interface: Organization
        Get this organization's login.
        Specified by:
        login in interface Organization
        Returns:
        Login name
      • json

        public javax.json.JsonObject json()
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
      • patch

        public void patch​(javax.json.JsonObject json)
                   throws IOException
        Description copied from interface: JsonPatchable
        Patch using this JSON object.
        Specified by:
        patch in interface JsonPatchable
        Parameters:
        json - JSON object
        Throws:
        IOException - If there is any I/O problem
      • addMember

        public void addMember​(User user)
        Add the given user to this organization.
        Parameters:
        user - User to add to the organization