com.supermap.services.rest
Class UserIdContainer
- java.lang.Object
-
- com.supermap.services.rest.UserIdContainer
-
public final class UserIdContainer extends java.lang.ObjectThe container that stores the user ID. Used to get a list of user IDs.
-
-
Constructor Summary
Constructors Constructor and Description UserIdContainer()
-
Method Summary
Methods Modifier and Type Method and Description static voidaddId(java.lang.String jsessionID)Adds a jsessionID to the user list.static booleancontains(java.lang.String jsessionID)Determines whether the currently entered jsessionID is included in the user ID list.static voidremoveId(java.lang.String jsessionID)Removes a jsessionID from the user list.
-
-
-
Method Detail
-
contains
public static boolean contains(java.lang.String jsessionID)
Determines whether the currently entered jsessionID is included in the user ID list.
- Parameters:
jsessionID- The ID of the logged in user.- Returns:
- If included in the user ID list, it will return the response to the jsessionID information.
-
addId
public static void addId(java.lang.String jsessionID)
Adds a jsessionID to the user list.
If this jsessionID already exists in the user ID list, an existing exception is thrown.
- Parameters:
jsessionID- The jsessionID to be added.
-
removeId
public static void removeId(java.lang.String jsessionID)
Removes a jsessionID from the user list.
- Parameters:
jsessionID- The jsessionID to be deleted.
-
-