Package com.thingworx.entities.utils
Class UserUtilities
java.lang.Object
com.thingworx.entities.utils.UserUtilities
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public final class UserUtilities
extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic User
static String
Get the current user name from the security context if possible.static EntityReferenceCollection
getGroups
(EntityReference userReference) static User
static void
-
Field Details
-
USER_EDIT_LOCK
- See Also:
-
-
Constructor Details
-
UserUtilities
public UserUtilities()
-
-
Method Details
-
getGroups
@ThingworxExtensionApiMethod(since={6,6}) public static EntityReferenceCollection getGroups(EntityReference userReference) -
getSystemUser
-
findUser
-
validateAdminMembership
@ThingworxExtensionApiMethod(since={6,6}) public static void validateAdminMembership() throws InvalidRequestException- Throws:
InvalidRequestException
- If an error occurs
-
getCurrentUser
Get the current user name from the security context if possible.- Returns:
- The name of the current user.
- Throws:
Exception
-