Package com.thingworx.security.groups
Class Group
- java.lang.Object
-
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<java.lang.String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,java.io.Serializable
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class Group extends ServiceProviderEntity
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description Group()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGroupMember(EntityReference member)
void
AddMember(java.lang.String member, java.lang.String type)
Service Category: Members Service Description: Add a user/group to this group.void
AssignMembers(InfoTable members)
Service Category: Members Service Description: Assign a list of users/groups to this group.void
deleteAllGroupMembers()
void
deleteGroupMember(EntityReference member)
void
deleteGroupMember(EntityReference member, ContextType contextType)
void
DeleteMember(java.lang.String member, java.lang.String type)
Service Category: Members Service Description: Remove a user/group from this group.RelationshipTypes.ThingworxRelationshipTypes
getEntityType()
InfoTable
GetGroupMember(java.lang.String name)
Service Category: Service Description: Get members by name in this group.InfoTable
GetGroupMembers()
Service Category: Members Service Description: Get a list of members in this group.EntityReferenceCollection
getGroups()
InfoTable
GetGroups()
Service Category: Members Service Description: Get list of groups that this group is a member of.EntityReferenceTypeMap
getMembers()
InfoTable
GetOrganizationalUnits()
Service Category: Members Service Description: Get list of organizational units that this group is a member of.InfoTable
GetOrganizations()
Service Category: Members Service Description: Get list of organizations that this group is a member of.InfoTable
QueryGroupMembers(org.json.JSONObject types, java.lang.String filter, java.lang.Double maxItems)
Service Category: Members Service Description: Query a list of members in this group.void
SetHomeMashup(java.lang.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, 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, 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
-
-
-
-
Method Detail
-
getMembers
@ThingworxExtensionApiMethod(since={6,6}) public EntityReferenceTypeMap getMembers()
-
AssignMembers
@ThingworxExtensionApiMethod(since={6,6}) public void AssignMembers(InfoTable members) throws java.lang.Exception
- Service Category:
- Members
- Service Description:
- Assign a list of users/groups to this group.
- Parameters:
members
- Members - INFOTABLE- Throws:
java.lang.Exception
- If an error occurs
-
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 group.
- Parameters:
member
- Member - STRINGtype
- Member type - STRING- Throws:
java.lang.Exception
- If an error occurs
-
DeleteMember
@ThingworxExtensionApiMethod(since={6,6}) public void DeleteMember(java.lang.String member, java.lang.String type) throws java.lang.Exception
- Service Category:
- Members
- Service Description:
- Remove a user/group from this group.
- Parameters:
member
- Member - STRINGtype
- Member type - STRING- Throws:
java.lang.Exception
- If an error occurs
-
addGroupMember
@ThingworxExtensionApiMethod(since={6,6}) public void addGroupMember(EntityReference member) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
deleteGroupMember
@ThingworxExtensionApiMethod(since={6,6}) public void deleteGroupMember(EntityReference member) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
deleteGroupMember
@ThingworxExtensionApiMethod(since={9,0}) public void deleteGroupMember(EntityReference member, ContextType contextType) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
deleteAllGroupMembers
@ThingworxExtensionApiMethod(since={7,4}) public void deleteAllGroupMembers() throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
getGroups
@ThingworxExtensionApiMethod(since={6,6}) public EntityReferenceCollection getGroups()
-
GetGroupMembers
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetGroupMembers() throws java.lang.Exception
- Service Category:
- Members
- Service Description:
- Get a list of members in this group.
- Returns:
- result Group Members - INFOTABLE - Aspects {dataShape:GroupMember}
- Throws:
java.lang.Exception
- If an error occurs
-
GetGroupMember
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetGroupMember(java.lang.String name) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
QueryGroupMembers
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable QueryGroupMembers(org.json.JSONObject types, java.lang.String filter, java.lang.Double maxItems) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
GetGroups
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetGroups() throws java.lang.Exception
- Service Category:
- Members
- Service Description:
- Get list of groups that this group is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
java.lang.Exception
- If an error occurs
-
GetOrganizationalUnits
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizationalUnits() throws java.lang.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:
java.lang.Exception
- If an error occurs
-
GetOrganizations
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GetOrganizations() throws java.lang.Exception
- Service Category:
- Members
- Service Description:
- Get list of organizations that this group is a member of.
- Returns:
- result Result - INFOTABLE - Aspects {dataShape:EntityList}
- Throws:
java.lang.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
-
SetHomeMashup
@ThingworxExtensionApiMethod(since={6,6}) public void SetHomeMashup(java.lang.String name) throws java.lang.Exception
- Service Category:
- Mashups
- Service Description:
- Calling SetHomeMashup on Groups is not supported.
- Overrides:
SetHomeMashup
in classRootEntity
- Parameters:
name
- Home mashup name - MASHUPNAME- Throws:
java.lang.Exception
- If an error occurs
-
-