Package com.thingworx.security.groups
Class Group
- 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 Group
extends ServiceProviderEntity
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECTFields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroupMember(EntityReference member) voidService Category: Members Service Description: Add a user/group to this group.voidAssignMembers(InfoTable members) Service Category: Members Service Description: Assign a list of users/groups to this group.voidvoiddeleteGroupMember(EntityReference member) voiddeleteGroupMember(EntityReference member, ContextType contextType) voidDeleteMember(String member, String type) Service Category: Members Service Description: Remove a user/group from this group.FindGroupMember(org.json.JSONObject types, String name) Service Category: Service Description: Find member by exact name in this group.Returns the type of this entity.GetGroupMember(String name) Service Category: Service Description: Get members by name in this group.Service Category: Members Service Description: Get a list of members in this group.Service Category: Members Service Description: Get list of groups that this group is a member of.Service Category: Members Service Description: Get list of organizational units that this group is a member of.Service Category: Members Service Description: Get list of organizations that this group is a member of.QueryGroupMembers(org.json.JSONObject types, String filter, Double maxItems) Service Category: Members Service Description: Query a list of members in this group.voidSetHomeMashup(String name) Service Category: Mashups Service Description: Calling SetHomeMashup on Groups is not supported.Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequestMethods 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, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfigurationMethods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransientMethods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thingworx.types.INamedObject
getDescription, getNameMethods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasIDMethods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getNameMethods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
Group
public Group()Initializes this instace with default values.
-
-
Method Details
-
getMembers
-
AssignMembers
@ThingworxExtensionApiMethod(since={6,6}) public void AssignMembers(InfoTable members) throws Exception - Service Category:
- Members
- Service Description:
- Assign a list of users/groups to this group.
- Parameters:
members- Members - INFOTABLE- Throws:
Exception- if an error occurs
-
AddMember
@ThingworxExtensionApiMethod(since={6,6}) public void AddMember(String member, String type) throws Exception - Service Category:
- Members
- Service Description:
- Add a user/group to this group.
- Parameters:
member- Member - STRINGtype- Member type - STRING- Throws:
Exception- if an error occurs
-
DeleteMember
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteMember(String member, String type) throws Exception - Service Category:
- Members
- Service Description:
- Remove a user/group from this group.
- Parameters:
member- Member - STRINGtype- Member type - STRING- Throws:
Exception- if an error occurs
-
addGroupMember
@ThingworxExtensionApiMethod(since={6,6}) public void addGroupMember(EntityReference member) throws Exception - Throws:
Exception
-
deleteGroupMember
@ThingworxExtensionApiMethod(since={6,6}) public void deleteGroupMember(EntityReference member) throws Exception - Throws:
Exception
-
deleteGroupMember
@ThingworxExtensionApiMethod(since={9,0}) public void deleteGroupMember(EntityReference member, ContextType contextType) throws Exception - Throws:
Exception
-
deleteAllGroupMembers
- Throws:
Exception
-
getGroups
-
GetGroupMembers
- Service Category:
- Members
- Service Description:
- Get a list of members in this group.
- Returns:
- result Group Members - INFOTABLE - Aspects {dataShape:GroupMember}
- Throws:
Exception- if an error occurs
-
GetGroupMember
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetGroupMember(String name) throws Exception - Service Category:
- Service Description:
- Get members by name in this group.
- Parameters:
name- Field name - STRING- Returns:
- result Group Member - INFOTABLE - Aspects {dataShape:GroupMember}
- Throws:
Exception- if an error occurs
-
FindGroupMember
@ThingworxExtensionApiMethod(since={10,1}) public InfoTable FindGroupMember(org.json.JSONObject types, String name) throws Exception - Service Category:
- Service Description:
- Find member by exact name in this group.
- Parameters:
types- Entity types - JSONname- Field name - STRING- Returns:
- result Group Member - INFOTABLE - Aspects {dataShape:GroupMember}
- Throws:
Exception- if an error occurs
-
QueryGroupMembers
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryGroupMembers(org.json.JSONObject types, String filter, Double maxItems) throws Exception - Service Category:
- Members
- Service Description:
- Query a list of members in this group.
- Parameters:
types- Entity types - JSONfilter- Term filter - STRINGmaxItems- Maximum number of items to return - NUMBER- Returns:
- result Group Members - INFOTABLE - Aspects {dataShape:GroupMember}
- Throws:
Exception- if an error occurs
-
GetGroups
- Service Category:
- Members
- Service Description:
- Get list of groups that this group is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception- if an error occurs
-
GetOrganizationalUnits
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizationalUnits() throws Exception- Service Category:
- Members
- Service Description:
- Get list of organizational units that this group is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception- if an error occurs
-
GetOrganizations
- Service Category:
- Members
- Service Description:
- Get list of organizations that this group is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
Exception- if an error occurs
-
getEntityType
@ThingworxExtensionApiMethod(since={6,6}) public RelationshipTypes.ThingworxRelationshipTypes getEntityType()Description copied from class:RootEntityReturns the type of this entity.
- Specified by:
getEntityTypein classRootEntity- Returns:
- the entity type
-
SetHomeMashup
- Service Category:
- Mashups
- Service Description:
- Calling SetHomeMashup on Groups is not supported.
- Overrides:
SetHomeMashupin classRootEntity- Parameters:
name- Home mashup name - MASHUPNAME- Throws:
Exception- if an error occurs
-