Class OrganizationalUnit

    • Constructor Detail

      • OrganizationalUnit

        public OrganizationalUnit()
    • Method Detail

      • AddMember

        @ThingworxExtensionApiMethod(since={6,6})
        public void AddMember​(java.lang.String member,
                              java.lang.String type)
                       throws java.lang.Exception
        Service Category:
        Members
        Service Description:
        Add a user/group to this Organizational Unit.
        Parameters:
        member - Member - STRING
        type - Member type must be set to either User or Group - STRING
        Throws:
        java.lang.Exception - If an error occurs

        Additional Information: Adds a user/group, but does not persist this information to this organizational unit. A server restart will revert the changes unless Organization.AddMember(name, member, type) is also invoked to commit the transaction to the database. Suggested Use: For performance reasons, use this method to load large number of users or groups to Organizational Units in memory first, then persist the information at the end using Organization.AddMember(name, member, type). For regular addition of a few individual users or groups, add the members through Organization.AddMember(name, member, type) instead.
      • DeleteMember

        @ThingworxExtensionApiMethod(since={6,6})
        public void DeleteMember​(java.lang.String member,
                                 java.lang.String type)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs
      • QueryMembers

        @ThingworxExtensionApiMethod(since={6,6})
        public InfoTable QueryMembers​(org.json.JSONObject types,
                                      java.lang.String filter,
                                      java.lang.Double maxItems)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception - If an error occurs