Class Organization
java.lang.Object
com.thingworx.types.NamedObject
com.thingworx.persistence.common.PersistableNamedObject
com.thingworx.entities.RootEntity
com.thingworx.entities.ServiceProviderEntity
com.thingworx.security.organizations.Organization
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,Serializable
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class Organization
extends ServiceProviderEntity
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Service Category: Members Service Description: Add a user/group to this organization.void
AddOrganizationalUnit
(String parentName, String name) Service Category: OrgUnits Service Description: Add an organizational unit.void
AssignMembers
(String name, InfoTable members) Service Category: Members Service Description: Assign a list of users/groups to this organization unit.void
DeleteMember
(String name, String member, String type) Service Category: Members Service Description: Remove a user/organization from this organization.void
DeleteOrganizationalUnit
(String name, Boolean deleteChildren) Service Category: OrgUnits Service Description: Delete a specific organizational unit from the organization.GetChildConnections
(String name) Service Category: OrgUnits Service Description: Return a list of all the child connections in this organization for a specific node.Service Category: Members Service Description: Get members by name in this organization.GetMembers
(String name) Service Category: Members Service Description: Get a list of members in this organization.Service Category: Mashups Service Description: Get mobile mashup.getOrganizationalUnit
(String name) Service Category: OrgUnits Service Description: Get the description of organizational unit.GetOrganizationConnections
(Double maxDepth) Service Category: OrgUnits Service Description: Return a list of all the connections in this organization.GetParentConnections
(String name) Service Category: OrgUnits Service Description: Return a list of all the parent connections in this organization for a specific node.GetParentName
(String name) Service Category: OrgUnits Service Description: Get parent of a given organizational unit.GetSubOrganizationConnections
(String start, Double maxDepth) Service Category: OrgUnits Service Description: Return a list of all the connections in this suborganization.Service Category: OrgUnits Service Description: Checks to see if a thing exists as a child of the starting thing.IsInOrganization
(String name) Service Category: OrgUnits Service Description: Checks to see if a organizational unit exists in this organization.IsInSubOrganization
(String start, String name) Service Category: OrgUnits Service Description: Checks to see if a organizational unit exists in this suborganization.Service Category: OrgUnits Service Description: Check if the parent of a given organizational unit in the organization matches a specific name.void
MoveOrganizationalUnit
(String parentName, String name) Service Category: OrgUnits Service Description: Move an organizational unit.QueryMembers
(String name, org.json.JSONObject types, String filter, Double maxItems) Service Category: Members Service Description: Query a list of members in this organizational unit.void
SetMobileMashup
(String name) Service Category: Mashups Service Description: Set mobile mashup.void
SetOrganizationalUnitDescription
(String name, String description) Service Category: OrgUnits Service Description: Set/update the description of organizational unit.Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, 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, 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, ListDeprecatedUsage, 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, UpdateProjectDependencies, validateConfiguration
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thingworx.types.INamedObject
getDescription, getName
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
Organization
public Organization()
-
-
Method Details
-
getOrganizationalUnit
@ThingworxExtensionApiMethod(since={6,6}) public OrganizationalUnit getOrganizationalUnit(String name) -
GetOrganizationConnections
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizationConnections(Double maxDepth) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Return a list of all the connections in this organization.
- Parameters:
maxDepth
- Maximum depth to search - NUMBER- Returns:
- result Organization connections - INFOTABLE - Aspects {dataShape:OrganizationConnection}
- Throws:
Exception
- If an error occurs
-
GetChildConnections
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetChildConnections(String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Return a list of all the child connections in this organization for a specific node.
- Parameters:
name
- Name of node for whom to return children - STRING- Returns:
- result Organization connections - INFOTABLE - Aspects {dataShape:OrganizationConnection}
- Throws:
Exception
- If an error occurs
-
GetParentConnections
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetParentConnections(String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Return a list of all the parent connections in this organization for a specific node.
- Parameters:
name
- Name of node for whom to return children - STRING- Returns:
- result Organization connections - INFOTABLE - Aspects {dataShape:OrganizationConnection}
- Throws:
Exception
- If an error occurs
-
GetMobileMashup
- Service Category:
- Mashups
- Service Description:
- Get mobile mashup.
- Returns:
- MobileMashup Mobile mashup - MASHUPNAME
-
SetMobileMashup
- Service Category:
- Mashups
- Service Description:
- Set mobile mashup.
- Parameters:
name
- Mobile mashup name - MASHUPNAME- Throws:
Exception
- If an error occurs
-
AddOrganizationalUnit
@ThingworxExtensionApiMethod(since={6,6}) public void AddOrganizationalUnit(String parentName, String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Add an organizational unit.
- Parameters:
parentName
- Name of parent organizational unit - STRINGname
- Name of organizational unit to add - STRING- Throws:
Exception
- If an error occurs
-
MoveOrganizationalUnit
@ThingworxExtensionApiMethod(since={6,6}) public void MoveOrganizationalUnit(String parentName, String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Move an organizational unit.
- Parameters:
parentName
- Name of parent organizational unit - STRINGname
- Name of organizational unit to add - STRING- Throws:
Exception
- If an error occurs
-
SetOrganizationalUnitDescription
@ThingworxExtensionApiMethod(since={6,6}) public void SetOrganizationalUnitDescription(String name, String description) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Set/update the description of organizational unit.
- Parameters:
name
- Organizational Unit name - STRINGdescription
- description of organizational unit - STRING- Throws:
Exception
- If an error occurs
-
GetOrganizationalUnitDescription
@ThingworxExtensionApiMethod(since={6,6}) public String GetOrganizationalUnitDescription(String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Get the description of organizational unit.
- Parameters:
name
- Organizational Unit name - STRING- Returns:
- result description of organizational unit - STRING
- Throws:
Exception
- If an error occurs
-
DeleteOrganizationalUnit
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteOrganizationalUnit(String name, Boolean deleteChildren) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Delete a specific organizational unit from the organization.
- Parameters:
name
- Name of the organizational unit to remove - STRINGdeleteChildren
- Delete children also - BOOLEAN- Throws:
Exception
- If an error occurs
-
GetSubOrganizationConnections
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetSubOrganizationConnections(String start, Double maxDepth) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Return a list of all the connections in this suborganization.
- Parameters:
start
- Starting organizational unit name - STRINGmaxDepth
- Maximum depth to search - NUMBER- Returns:
- result SubOrganization connections - INFOTABLE - Aspects {dataShape:OrganizationConnection}
- Throws:
Exception
- If an error occurs
-
IsParent
@ThingworxExtensionApiMethod(since={6,6}) public Boolean IsParent(String name, String parentName) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Check if the parent of a given organizational unit in the organization matches a specific name.
- Parameters:
name
- Name to search for - STRINGparentName
- Parent name to compare to - STRING- Returns:
- result Parent name - STRING
- Throws:
Exception
- If an error occurs
-
GetParentName
- Service Category:
- OrgUnits
- Service Description:
- Get parent of a given organizational unit.
- Parameters:
name
- Name to search for - STRING- Returns:
- result Parent name - STRING
- Throws:
Exception
- If an error occurs
-
IsChild
@ThingworxExtensionApiMethod(since={6,6}) public Boolean IsChild(String start, String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Checks to see if a thing exists as a child of the starting thing.
- Parameters:
start
- Starting name - STRINGname
- Name to search for - STRING- Returns:
- result True if found, false if not - BOOLEAN
- Throws:
Exception
- If an error occurs
-
IsInSubOrganization
@ThingworxExtensionApiMethod(since={6,6}) public Boolean IsInSubOrganization(String start, String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Checks to see if a organizational unit exists in this suborganization.
- Parameters:
start
- Starting name - STRINGname
- Name to search for - STRING- Returns:
- result True if found, false if not - BOOLEAN
- Throws:
Exception
- If an error occurs
-
IsInOrganization
@ThingworxExtensionApiMethod(since={6,6}) public Boolean IsInOrganization(String name) throws Exception - Service Category:
- OrgUnits
- Service Description:
- Checks to see if a organizational unit exists in this organization.
- Parameters:
name
- Name to search for - STRING- Returns:
- result True if found, false if not - BOOLEAN
- Throws:
Exception
- If an error occurs
-
AssignMembers
@ThingworxExtensionApiMethod(since={6,6}) public void AssignMembers(String name, InfoTable members) throws Exception - Service Category:
- Members
- Service Description:
- Assign a list of users/groups to this organization unit.
- Parameters:
name
- Organizational Unit name - STRINGmembers
- Members - INFOTABLE- Throws:
Exception
- If an error occurs
-
AddMember
@ThingworxExtensionApiMethod(since={6,6}) public void AddMember(String name, String member, String type) throws Exception - Service Category:
- Members
- Service Description:
- Add a user/group to this organization.
- Parameters:
name
- Organizational Unit name - STRINGmember
- Member - STRINGtype
- Member type must be set to either User or Group - STRING- Throws:
Exception
- If an error occurs
Additional Information: Adds and persists a user/group to this organization. The best practice for adding members to an organizational unit is to add a member through this method. Do not add directly to the Organizational Unit usingOrganizationalUnit#AddMember(member, type)
.
-
DeleteMember
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteMember(String name, String member, String type) throws Exception - Service Category:
- Members
- Service Description:
- Remove a user/organization from this organization.
- Parameters:
name
- Organizational Unit name - STRINGmember
- Member - STRINGtype
- Member type - STRING- Throws:
Exception
- If an error occurs
-
GetMembers
- Service Category:
- Members
- Service Description:
- Get a list of members in this organization.
- Parameters:
name
- Organizational Unit name - STRING- Returns:
- result Organizational Unit Members - INFOTABLE - Aspects {dataShape:EntityReferenceWithDescription}
- Throws:
Exception
- If an error occurs
-
GetMember
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetMember(String name, String member) throws Exception - Service Category:
- Members
- Service Description:
- Get members by name in this organization.
- Parameters:
name
- Organizational Unit name - STRINGmember
- Member name - STRING- Returns:
- result Organizational Unit Member - INFOTABLE - Aspects {dataShape:EntityReferenceWithDescription}
- Throws:
Exception
- If an error occurs
-
QueryMembers
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryMembers(String name, org.json.JSONObject types, String filter, Double maxItems) throws Exception - Service Category:
- Members
- Service Description:
- Query a list of members in this organizational unit.
- Parameters:
name
- Organizational Unit name - STRINGtypes
- Entity types - JSONfilter
- Term filter - STRINGmaxItems
- Maximum number of items to return - NUMBER- Returns:
- result Organization Members - INFOTABLE - Aspects {dataShape:EntityReferenceWithDescription}
- Throws:
Exception
- If an error occurs
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntity
Returns the type of this entity.
- Specified by:
getEntityType
in classRootEntity
- Returns:
- the entity type
-