com.supermap.services.rest

Class ResourceStatusManager

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


  • public class ResourceStatusManager
    extends java.lang.Object
    

    ${services_rest_ResourceStatusManager_Title}

    ${services_rest_ResourceStatusManager_Description}

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean containKey(java.lang.String resourceUri)
      According to the resource identification, in the resource state manager, whether or not the resource status corresponding to the specified resource identifier is saved.
      boolean containResourceStatus(ResourceStatus resourceStatus)
      Determines whether the resource state is saved in the resource manager.
      boolean deleteResourceStatus(java.lang.String resourceUrl)
      Deletes the resource status corresponding to the resource ID specified in the status manager.
      java.lang.String[] getChildResourceByUrl(java.lang.String parentResourceUrl)
      Gets the resource ID for all child resources for the specified resource.
      java.util.Date getResourceLastModifier(java.lang.String resourceUrl)
      Gets the last modified time for the specified resource state.
      ResourceStatus getResourceStatus(java.lang.String resourceUrl)
      According to the resource identifier, obtains the status of the map resources, map, layers, layers and other mapping module resources.
      boolean putResourceStatus(java.lang.String resourceUrl, java.lang.Object statusObject)
      ${services_rest_ResourceStatusManager_method_putResourceStatus_Title}
      boolean setResourceStatusModifier(java.lang.String resourceUrl, java.util.Date lastModifier)
      Sets the last modified time for the specified resource state.
      • Methods inherited from class java.lang.Object

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

      • ResourceStatusManager

        public ResourceStatusManager()
        
    • Method Detail

      • getResourceStatus

        public ResourceStatus getResourceStatus(java.lang.String resourceUrl)
        

        According to the resource identifier, obtains the status of the map resources, map, layers, layers and other mapping module resources.

        For example, you can get the status of a map resource named World by getResourceStatus ("/ maps / World") .

        Parameters:
        resourceUrl - resource identifier, corresponding to the & lt; urlTemplate / & gt; tag content in the resource configuration.
        Returns:
        the state of the resource.
      • putResourceStatus

        public boolean putResourceStatus(java.lang.String resourceUrl,
                                java.lang.Object statusObject)
        

        ${services_rest_ResourceStatusManager_method_putResourceStatus_Title}

        ${services_rest_ResourceStatusManager_method_putResourceStatus_Description}

        Parameters:
        resourceUrl - The URI identifier of the resource to save / update state.
        statusObject - ${services_rest_ResourceStatusManager_method_putResourceStatus_param_statusObject}
        Returns:
        ${services_rest_ResourceStatusManager_method_putResourceStatus_return}
      • deleteResourceStatus

        public boolean deleteResourceStatus(java.lang.String resourceUrl)
        

        Deletes the resource status corresponding to the resource ID specified in the status manager.

        Parameters:
        resourceUrl - The identifier of the resource to be deleted, corresponding to the contents of the & lt; urlTemplate / & gt; tag in the resource configuration.
        Returns:
        returns true if it is removed successfully, otherwise false.
      • getResourceLastModifier

        public java.util.Date getResourceLastModifier(java.lang.String resourceUrl)
        

        Gets the last modified time for the specified resource state.

        ${services_rest_ResourceStatusManager_method_getResourceLastModifier_Description}

        Parameters:
        resourceUrl - To get the last modified resource ID.
        Returns:
        ${services_rest_ResourceStatusManager_method_getResourceLastModifier_return}
      • setResourceStatusModifier

        public boolean setResourceStatusModifier(java.lang.String resourceUrl,
                                        java.util.Date lastModifier)
        

        Sets the last modified time for the specified resource state.

        ${services_rest_ResourceStatusManager_method_setResourceStatusModifier_Description}

        Parameters:
        resourceUrl - To set the last modified resource ID.
        lastModifier - ${services_rest_ResourceStatusManager_method_setResourceStatusModifier_param_lastModifier}
        Returns:
        ${services_rest_ResourceStatusManager_method_setResourceStatusModifier_return}
      • containResourceStatus

        public boolean containResourceStatus(ResourceStatus resourceStatus)
        

        Determines whether the resource state is saved in the resource manager.

        Parameters:
        resourceStatus - Specifies the resource state.
        Returns:
        This resource state manager contains the specified resource status, which returns true, otherwise false.
      • containKey

        public boolean containKey(java.lang.String resourceUri)
        

        According to the resource identification, in the resource state manager, whether or not the resource status corresponding to the specified resource identifier is saved.

        For example, "/ maps" is the resource ID of the maps resource, false if the resource state manager does not save the resource state corresponding to "/ maps".

        Parameters:
        resourceUri - resource identifier.
        Returns:
        Returns true if the resource manager stores the storage item for the specified resource ID, false otherwise.
      • getChildResourceByUrl

        public java.lang.String[] getChildResourceByUrl(java.lang.String parentResourceUrl)
        

        Gets the resource ID for all child resources for the specified resource.

        The resource identifier corresponds to the content of the & lt; urlTemplate / & gt; tag in the resource configuration, for example "/ maps" for the resource ID of the maps resource.

        Parameters:
        parentResourceUrl - Specifies the resource ID of the parent resource.
        Returns:
        Specifies the array of resource identifiers for the child resource of the parent resource.