com.supermap.services.rest

Class UserIdContainer

  • java.lang.Object
    • com.supermap.services.rest.UserIdContainer


  • public final class UserIdContainer
    extends java.lang.Object
    

    The 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 void addId(java.lang.String jsessionID)
      Adds a jsessionID to the user list.
      static boolean contains(java.lang.String jsessionID)
      Determines whether the currently entered jsessionID is included in the user ID list.
      static void removeId(java.lang.String jsessionID)
      Removes a jsessionID from the user list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserIdContainer

        public UserIdContainer()
        
    • 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.