@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class Organization extends ServiceProviderEntity
BASIC_PROPERTIES
NAME_COMPARATOR
Constructor and Description |
---|
Organization() |
Modifier and Type | Method and Description |
---|---|
void |
AddMember(java.lang.String name,
java.lang.String member,
java.lang.String type)
Service Category: Members
Service Description: Add a user/group to this organization.
|
void |
AddOrganizationalUnit(java.lang.String parentName,
java.lang.String name)
Service Category: OrgUnits
Service Description: Add an organizational unit.
|
void |
AssignMembers(java.lang.String name,
InfoTable members)
Service Category: Members
Service Description: Assign a list of users/groups to this organization unit.
|
void |
DeleteMember(java.lang.String name,
java.lang.String member,
java.lang.String type)
Service Category: Members
Service Description: Remove a user/organization from this organization.
|
void |
DeleteOrganizationalUnit(java.lang.String name,
java.lang.Boolean deleteChildren)
Service Category: OrgUnits
Service Description: Delete a specific organizational unit from the organization.
|
InfoTable |
GetChildConnections(java.lang.String name)
Service Category: OrgUnits
Service Description: Return a list of all the child connections in this organization for a specific node.
|
RelationshipTypes.ThingworxRelationshipTypes |
getEntityType()
|
InfoTable |
GetMember(java.lang.String name,
java.lang.String member)
Service Category: Members
Service Description: Get members by name in this organization.
|
InfoTable |
GetMembers(java.lang.String name)
Service Category: Members
Service Description: Get a list of members in this organization.
|
java.lang.String |
GetMobileMashup()
Service Category: Mashups
Service Description: Get mobile mashup.
|
OrganizationalUnit |
getOrganizationalUnit(java.lang.String name) |
java.lang.String |
GetOrganizationalUnitDescription(java.lang.String name)
Service Category: OrgUnits
Service Description: Get the description of organizational unit.
|
InfoTable |
GetOrganizationConnections(java.lang.Double maxDepth)
Service Category: OrgUnits
Service Description: Return a list of all the connections in this organization.
|
InfoTable |
GetParentConnections(java.lang.String name)
Service Category: OrgUnits
Service Description: Return a list of all the parent connections in this organization for a specific node.
|
java.lang.String |
GetParentName(java.lang.String name)
Service Category: OrgUnits
Service Description: Get parent of a given organizational unit.
|
InfoTable |
GetSubOrganizationConnections(java.lang.String start,
java.lang.Double maxDepth)
Service Category: OrgUnits
Service Description: Return a list of all the connections in this suborganization.
|
java.lang.Boolean |
IsChild(java.lang.String start,
java.lang.String name)
Service Category: OrgUnits
Service Description: Checks to see if a thing exists as a child of the starting thing.
|
java.lang.Boolean |
IsInOrganization(java.lang.String name)
Service Category: OrgUnits
Service Description: Checks to see if a organizational unit exists in this organization.
|
java.lang.Boolean |
IsInSubOrganization(java.lang.String start,
java.lang.String name)
Service Category: OrgUnits
Service Description: Checks to see if a organizational unit exists in this suborganization.
|
java.lang.Boolean |
IsParent(java.lang.String name,
java.lang.String parentName)
Service Category: OrgUnits
Service Description: Check if the parent of a given organizational unit in the organization matches a specific name.
|
void |
MoveOrganizationalUnit(java.lang.String parentName,
java.lang.String name)
Service Category: OrgUnits
Service Description: Move an organizational unit.
|
InfoTable |
QueryMembers(java.lang.String name,
org.json.JSONObject types,
java.lang.String filter,
java.lang.Double maxItems)
Service Category: Members
Service Description: Query a list of members in this organizational unit.
|
void |
SetMobileMashup(java.lang.String name)
Service Category: Mashups
Service Description: Set mobile mashup.
|
void |
SetOrganizationalUnitDescription(java.lang.String name,
java.lang.String description)
Service Category: OrgUnits
Service Description: Set/update the description of organizational unit.
|
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, validateConfiguration
getID, hasID, isTransient
getDescription, getName, setDescription, setName, toValueCollection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, hasID
getDescription, getName
getID, getName
@ThingworxExtensionApiMethod(since={6,6}) public OrganizationalUnit getOrganizationalUnit(java.lang.String name)
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizationConnections(java.lang.Double maxDepth) throws java.lang.Exception
maxDepth
- Maximum depth to search - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetChildConnections(java.lang.String name) throws java.lang.Exception
name
- Name of node for whom to return children - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetParentConnections(java.lang.String name) throws java.lang.Exception
name
- Name of node for whom to return children - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetMobileMashup()
@ThingworxExtensionApiMethod(since={6,6}) public void SetMobileMashup(java.lang.String name) throws java.lang.Exception
name
- Mobile mashup name - MASHUPNAMEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AddOrganizationalUnit(java.lang.String parentName, java.lang.String name) throws java.lang.Exception
parentName
- Name of parent organizational unit - STRINGname
- Name of organizational unit to add - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void MoveOrganizationalUnit(java.lang.String parentName, java.lang.String name) throws java.lang.Exception
parentName
- Name of parent organizational unit - STRINGname
- Name of organizational unit to add - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void SetOrganizationalUnitDescription(java.lang.String name, java.lang.String description) throws java.lang.Exception
name
- Organizational Unit name - STRINGdescription
- description of organizational unit - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetOrganizationalUnitDescription(java.lang.String name) throws java.lang.Exception
name
- Organizational Unit name - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void DeleteOrganizationalUnit(java.lang.String name, java.lang.Boolean deleteChildren) throws java.lang.Exception
name
- Name of the organizational unit to remove - STRINGdeleteChildren
- Delete children also - BOOLEANjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetSubOrganizationConnections(java.lang.String start, java.lang.Double maxDepth) throws java.lang.Exception
start
- Starting organizational unit name - STRINGmaxDepth
- Maximum depth to search - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean IsParent(java.lang.String name, java.lang.String parentName) throws java.lang.Exception
name
- Name to search for - STRINGparentName
- Parent name to compare to - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.String GetParentName(java.lang.String name) throws java.lang.Exception
name
- Name to search for - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean IsChild(java.lang.String start, java.lang.String name) throws java.lang.Exception
start
- Starting name - STRINGname
- Name to search for - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean IsInSubOrganization(java.lang.String start, java.lang.String name) throws java.lang.Exception
start
- Starting name - STRINGname
- Name to search for - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public java.lang.Boolean IsInOrganization(java.lang.String name) throws java.lang.Exception
name
- Name to search for - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AssignMembers(java.lang.String name, InfoTable members) throws java.lang.Exception
name
- Organizational Unit name - STRINGmembers
- Members - INFOTABLEjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public void AddMember(java.lang.String name, java.lang.String member, java.lang.String type) throws java.lang.Exception
name
- Organizational Unit name - STRINGmember
- Member - STRINGtype
- Member type must be set to either User or Group - STRINGjava.lang.Exception
- If an error occurs
OrganizationalUnit#AddMember(member, type)
.@ThingworxExtensionApiMethod(since={6,6}) public void DeleteMember(java.lang.String name, java.lang.String member, java.lang.String type) throws java.lang.Exception
name
- Organizational Unit name - STRINGmember
- Member - STRINGtype
- Member type - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetMembers(java.lang.String name) throws java.lang.Exception
name
- Organizational Unit name - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetMember(java.lang.String name, java.lang.String member) throws java.lang.Exception
name
- Organizational Unit name - STRINGmember
- Member name - STRINGjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryMembers(java.lang.String name, org.json.JSONObject types, java.lang.String filter, java.lang.Double maxItems) throws java.lang.Exception
name
- Organizational Unit name - STRINGtypes
- Entity types - JSONfilter
- Term filter - STRINGmaxItems
- Maximum number of items to return - NUMBERjava.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()
RootEntity
Returns the type of this entity.
getEntityType
in class RootEntity