CN110741617A - Resource updating method and device, computer equipment and storage medium - Google Patents

Resource updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110741617A
CN110741617A CN201880037171.8A CN201880037171A CN110741617A CN 110741617 A CN110741617 A CN 110741617A CN 201880037171 A CN201880037171 A CN 201880037171A CN 110741617 A CN110741617 A CN 110741617A
Authority
CN
China
Prior art keywords
operation request
target resource
interface
resource
updating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201880037171.8A
Other languages
Chinese (zh)
Other versions
CN110741617B (en
Inventor
唐海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN110741617A publication Critical patent/CN110741617A/en
Application granted granted Critical
Publication of CN110741617B publication Critical patent/CN110741617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The application relates to resource updating methods, devices, computer equipment and storage media, a server receives a th updating operation request for updating a target resource sent by a user side, if the target resource has a link resource, and if the link resource does not support a recursive interface and a default interface of the link resource does not support the updating operation, the server re-determines the target interface of the target resource and generates a second updating operation request according to the target interface, so that the server can update the link resource according to the second updating operation request, the flexibility of the server updating resource is greatly improved, and the updating of the link resource is realized when the link resource does not support the recursive interface and the default interface does not support the updating operation.

Description

Resource updating method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of resources of the internet of things, in particular to resource updating methods and devices, computer equipment and storage media.
Background
Internet of things device methods based on a representation state transfer (restfull) architecture are becoming popular, under which things (devices) in the physical world can all be described in terms of resources (resources), and operate resources in terms of creating, updating, acquiring, deleting, notifying (Creat, Update, Retrieve, Delete, Notification, CURDN).
In the resource description process, kinds of collection resources (collections) are defined, and interfaces (interfaces) are defined to determine the operation mode of the resources, wherein collections can also include a plurality of links (link collections) pointing to the resources, and links are links of resources.
However, when the link collection does not support the batch interface and the default interface does not support the update (update) operation, the modification of the resource pointed by the link cannot be completed.
Disclosure of Invention
Therefore, it is necessary to provide resource updating methods, apparatuses, computer devices, and storage media for solving the technical problem that when the link collection does not support the recursive interface (batchinterface) and the default interface (default interface) does not support the update (update) operation, the modification of the resource pointed by the link cannot be completed.
, an embodiment of the present invention provides resource update methods, including:
receiving th updating operation request sent by a user side, wherein the th updating operation request is used for indicating that a recursive interface is adopted to update th target resources;
if the th target resource is a set resource with a link resource, judging whether a second target resource pointed by the link supports a recursive interface;
and if the second target resource does not support a recursive interface and the default interface of the second target resource does not support the updating operation, determining a target interface supporting the updating operation from a preset interface list, and generating a second updating operation request according to the th updating operation request, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
In embodiments, the update operation request includes an identification of the th target resource, a recursive interface identification, an update operation identification, and update content.
In embodiments, the generating a second update operation request from the th update operation request includes:
replacing the identifier of the recursive interface of the th update operation request with the identifier of the target interface, and replacing the identifier of the th target resource in the th update operation request with the identifier of the second target resource to obtain the second update operation request, wherein the second update operation request comprises the identifier of the second target resource, the identifier of the target interface, the identifier of the update operation and the update content.
In embodiments, the method further comprises:
generating a response message after the target resource is updated, wherein the response message comprises the updated results of all the link resources in the target resource;
and sending the response message to the user terminal.
In embodiments, if the update operation request includes a user-side identifier, then before determining whether the second target resource pointed to by the link supports a recursive interface when the th target resource is an aggregate resource in which a link exists, the method further includes:
judging whether the user side has the authority of accessing the th target resource or not according to the user side identification;
if the user side has the right to access the th target resource, judging whether the second target resource supports a recursive interface or not when the th target resource is a set resource with links.
In embodiments, the method further comprises:
and if the second target resource does not support a recursive interface and the default interface of the second target resource supports the updating operation, generating a third updating operation request according to the updating operation request, wherein the third updating operation request comprises the identifier of the default interface and is used for updating the second target resource.
In embodiments, the generating a third update operation request from the th update operation request includes:
replacing the identifier of the recursive interface in the th update operation request with the identifier of the default interface, and replacing the identifier of the th target resource in the th update operation request with the identifier of the second target resource, so as to obtain the third update operation request;
wherein the third update operation request comprises an identification of the second target resource, an identification of the default interface, an update operation identification, and update content.
In embodiments, the method further comprises:
and if the second target resource supports a recursive interface, generating a fourth updating operation request according to the updating operation request, wherein the fourth updating operation request is used for updating the second target resource.
In embodiments, the generating a fourth update operation request from the th update operation request includes:
replacing the identification of the target resource in the th update operation request with the identification of the second target resource, resulting in the fourth update operation request;
wherein the fourth update operation request comprises an identification of the second target resource, the recursive interface identification, an update operation identification, and update content.
In a second aspect, an embodiment of the present invention provides resource updating apparatuses, where the apparatuses include:
the module comprises a receiving module, a receiving module and a sending module, wherein the receiving module is used for receiving th updating operation requests sent by a user side, and the th updating operation requests are used for indicating that a recursive interface is adopted to update th target resources;
a judging module, configured to, if the th target resource is a set resource with a link resource, judge whether a second target resource pointed by the link supports a recursive interface;
and the processing module is used for determining a target interface supporting the updating operation from a preset interface list and generating a second updating operation request according to the th updating operation request if the second target resource does not support the recursive interface and the default interface of the second target resource does not support the updating operation, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
In a third aspect, an embodiment of the present invention provides computer apparatuses, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
receiving th updating operation request sent by a user side, wherein the th updating operation request is used for indicating that a recursive interface is adopted to update th target resources;
if the th target resource is a set resource with a link, judging whether a second target resource pointed by the link supports a recursive interface;
and if the second target resource does not support a recursive interface and the default interface of the second target resource does not support the updating operation, determining a target interface supporting the updating operation from a preset interface list, and generating a second updating operation request according to the th updating operation request, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
In a third aspect, an embodiment of the present invention provides computer readable storage media, on which is stored a computer program, which when executed by a processor, implements the steps of:
receiving th updating operation request sent by a user side, wherein the th updating operation request is used for indicating that a recursive interface is adopted to update th target resources;
if the th target resource is a set resource with a link, judging whether a second target resource pointed by the link supports a recursive interface;
and if the second target resource does not support a recursive interface and the default interface of the second target resource does not support the updating operation, determining a target interface supporting the updating operation from a preset interface list, and generating a second updating operation request according to the th updating operation request, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
According to the resource updating method, device, computer equipment and storage medium provided by the application, the server firstly receives a updating operation request sent by the user side for updating a th target resource, when a link resource exists in the th target resource, the second target resource to which the link points does not support a recursive interface, and a default interface of the second target resource does not support an updating operation, the server re-determines the target interface of the second target resource which supports the updating operation, and generates a second updating operation request according to the th updating operation request, so that the server can update the second target resource to which the link points according to the second updating operation request, the flexibility of the server updating resources is greatly improved, and the purpose that when the resource to which the link points does not support the recursive interface and the default interface does not support the updating operation, the resource to which the link points is updated is achieved.
Drawings
FIG. 1 is an application environment diagram of resource update methods provided by embodiments;
FIG. 2 is a schematic flowchart of a resource updating method provided by embodiments;
FIG. 3 is a schematic flowchart of a resource updating methods provided by embodiments;
FIG. 4 is a flowchart illustrating a resource updating method provided by exemplary embodiments;
FIG. 5 is a block diagram illustrating the structure of a resource update apparatus according to exemplary embodiments;
FIG. 6 is a block diagram illustrating the structure of a resource update apparatus according to exemplary embodiments;
FIG. 7 is a block diagram illustrating the structure of a resource update apparatus according to exemplary embodiments;
FIG. 8 is a block diagram illustrating the structure of a resource update apparatus according to exemplary embodiments;
FIG. 9 is a block diagram illustrating the structure of a resource update apparatus according to exemplary embodiments;
fig. 10 is a block diagram of the internal structure of the computer device provided by embodiments.
Detailed Description
For purposes of making the present application, its objects, aspects and advantages more apparent, the present application is described in further detail with reference to the drawings and the examples.
resource updating methods provided by the present application can be applied to an application environment as shown in fig. 1, and include a client and a server, where the client and the server can communicate wirelessly, for example, WIFi, infrared communication, or 3G, 4G, 5G, etc., where the client can be a lamp, an air conditioner, etc., and can also be an intelligent mobile terminal such as a mobile phone, a PAD, a computer, etc., and this embodiment is not limited thereto, where the server can be a server, and the server includes a processor, a memory, a network interface, and a database connected through a system bus, where the processor of the server is used to provide computing and control capabilities.
Embodiments of the present application provide resource updating methods, apparatuses, computer devices, and storage media, which are intended to solve the technical problem that when a link collection does not support a batch interface and a default interface does not support an update operation, modification of a resource pointed by a link cannot be completed.
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer and more complete, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are partial embodiments of of the present invention, rather than all embodiments.
In embodiments, fig. 2 provides resource updating methods, and this embodiment relates to a specific process of how a server performs an updating operation on a second target resource pointed to by a link when a linked resource exists in a th target resource, the second target resource pointed to by the link does not support a recursive interface, and a default interface of the second target resource pointed to by the link does not support the updating operation, as shown in fig. 2, the method includes:
and S101, receiving th updating operation request sent by a user side, wherein the th updating operation request is used for indicating that a recursive interface is adopted to update th target resources.
The resources are logic function entities which represent information such as each devices, each function services of the devices, the states of the devices and the like, the logic function entities are disclosed to a client by a server for access and operation, the client interacts with the server through resource operation CRUDN, parameters of the resources mainly comprise URI, resource attributes, resource references, interfaces and the like, target resources refer to resources which need to be operated by the client, and a recursive interface (batch interface) represents that the resources pointed by links in the resources are operated when the resources are operated by the collectionresources.
In this embodiment, the server receives a th update operation request sent by the user end, where the server may receive the request in a wireless communication manner, for example, WIFi, infrared communication, or 3G, 4G, 5G, and the like, where the th update operation request indicates that the user end needs the server to modify the th target resource, the th update operation request may include an interface type of the server operation, for example, the interface type is a recursive interface, a URI of the th target resource and attribute information of the interface, and may further include other information, which is not limited in this embodiment, and the th update operation request is used to instruct the server to perform an update operation on the th target resource by using the recursive interface, where the th target resource is set resources, and the set resource may include multiple linked resources.
S102, if the th target resource is a set resource with a link, judging whether a second target resource pointed by the link supports a recursive interface.
Where a link (link) represents a link of resources, i.e., a collection can include links to other resources, e.g., collection A includes a link to collection B.
Based on the th update operation request in the step S101, when the server updates the th target resource according to the th update operation request, first, it is determined whether the th target resource is an aggregate resource including a link resource, and if the th target resource is an aggregate resource having a link resource, the server determines whether the second target resource to which the link points supports a recursive interface.
S103, if the second target resource does not support a recursive interface and the default interface of the second target resource does not support the update operation, determining a target interface supporting the update operation from a preset interface list, and generating a second update operation request according to the -th update operation request, wherein the second update operation request comprises the identifier of the target interface and is used for performing the update operation on the second target resource.
In this step, the default interface (default interface) is usually the interface ranked at in the supported interface list (supported interface list) of each resource (including collection, link). for example, the interfaces included in the preset interface list may be "oic.if.baseline", "oic.if.ll", "oic.if.b", "oic.if.r", "oic.if.rw", "oic.if.a", "oic.if.s", etc., or others, and the default interface may be "oic.if.ba", where the preset interface list also includes attribute information of every interfaces, and the attribute information of each interface indicates whether the supported operation is supported by the interface, and other information, such as whether the supported operation attribute information includes the number of operations that can be added to the interface list, and the like, and the preset interface list may be deleted according to the preset operation type.
In practical application, based on the step S102, the server determines that the second target resource does not support a recursive interface (batch interface), the server obtains a default interface of the second target resource, checks whether the default interface supports the update operation, if the default interface does not support the update operation, the server redetermines interfaces capable of supporting the update operation from a preset interface list as target interfaces of the link resource, for example, all interfaces supported by the second target resource can be traversed in service, finds interfaces supporting the update operation as target interfaces, generates a second update operation request according to the update operation request, and then performs the update operation on the second target resource according to the second update operation request.
In the resource updating method provided by this embodiment, the server first receives a th update operation request sent by the user end for updating the th target resource, and when the th target resource has a link resource, if the second target resource to which the link points does not support the recursive interface and the default interface of the second target resource does not support the update operation, the server re-determines the target interface supporting the update operation and generates a second update operation request according to the th update operation request, so that the server can perform the update operation on the second target resource according to the second update operation request, thereby greatly improving the activity of the server to update the resource, and when the resource to which the link points does not support the recursive interface and the default interface does not support the update operation, the server can still adopt a new mechanism to update the resource to which the link points.
Optionally, on the basis of the above embodiment, the th update operation request includes an identifier of the th target Resource, an identifier of a recursive interface, an identifier of an update operation, and an update content, where the th target Resource represents a unique identifier of the th target Resource, where the identifier may be a number, a letter, or a combination of a number and a letter, for example, the th target Resource identifier may be a Uniform Resource Locator (URL) of a system 62 Resource of a target Resource (target Resource), the th target Resource identifier is not limited in this embodiment, where the identifier of a recursive interface represents that the interface operates in a recursive manner, for example, an oic. if. batch interface represents that the interface is a recursive interface, of course, the identifier may be other content, which is only for example, and this embodiment does not limit the identifier of the recursive interface, where the th update operation identifier may be a combination of a number, a letter, and a letter, or a combination of a number, and a letter, indicates that the update server performs a quick update operation on the update operation request according to the identifier of the second embodiment, the update server may determine that the update server performs a quick update operation on the update request according to the update operation identifier of the second embodiment, the update server may respond to the update server update the update server update the update server update.
In embodiments, the implementation manners of the "generating the second update operation request according to the update operation request" in S103 above include replacing a recursive interface identifier in the update operation request with an identifier of the target interface, and replacing a th target resource identifier in the th update operation request with an identifier of the second target resource to obtain the second update operation request, where the second update operation request includes the identifier of the second target resource, the identifier of the target interface, the identifier of the update operation, and the update content.
In the embodiment provided by the foregoing steps S101-S103, the -th update operation request starts to carry the identifier of the -th target resource and the identifier of the recursive interface corresponding to the -th target resource, when the server determines that the -th target resource has a linked resource, and the linked second target resource does not support the recursive interface and the default interface of the second target resource does not support the update operation, the server generates the second update operation request according to the -th update operation request in such a manner that the identifier of the recursive interface in the -th update operation request is replaced by the identifier of the target interface, i.e., the interface identifier of the target interface is carried in the -th update operation request, and then the identifier of the second target resource is replaced by the identifier of the -th target resource, so that the new update operation request with the interface identifier and the resource identifier replaced is the second update operation request generated by the server according to the update operation request of the -th update operation, so that the update operation request including the identifier of the second target resource, the update operation identifier of the update operation, the update operation request, and the update operation request before the update operation of the link update resource is implemented by the server, so that the update operation is not supported by the update operation, and the update operation of the update operation request before the update operation is greatly, so that the update operation of the update resource is implemented in this embodiment, so that the update operation, the update operation is implemented, the update operation of the update operation request is implemented.
Since the resource updating methods provided by the present application are mainly used for updating resources by a server according to a request of a user side, after the update is completed, the server needs to feed back pieces of information that the update is successful to the user side, and in embodiments, as shown in fig. 3, this embodiment relates to a specific process in which the server sends a result that all of the resources in a th target resource are updated to the user side, where the method includes:
s201, after all the resources in the th target resource are updated, generating a response message, wherein the response message comprises the updating results of all the resources in the th target resource.
In this embodiment, the server generates a second update operation request for each resource that does not support updating, and then, after the server completes updating each resource in the th target resource requested to be updated by the client according to each second update operation request, aggregates the update results of all updated resources to generate a response message, where the response message is used to indicate a response to the client to send an update resource request.
And S202, sending the response message to the user side.
Based on the response message generated in the step S201, the server sends the response message to the user end, where the sending mode and the mode for receiving the request sent by the user end are transmitted in a wireless communication mode, and of course, the transmission path may be a return path along the original path, or another more convenient path, which is not limited in this embodiment.
In the resource updating methods provided in this embodiment, after the server completes updating all the resources in the th target resource requested to be updated by the client according to the second update operation request, the server generates a response message from the update results of all the resources in the th target resource after all the resources are updated, and sends the response message to the client, so that the client knows that the resource requested to be updated has been updated, thereby greatly increasing the message interactivity between the client and the server.
In addition, before the server performs the update operation according to the th update operation request of the user side, the server needs to identify whether the user side has an authority to access the th target resource, and then when a link resource exists in the th target resource, before determining whether the second target resource to which the link points supports the recursive interface, the present application further provides embodiments, which relate to a specific process in which the server determines whether the user side has an authority to access the th target resource according to the identifier of the user side, and determines whether the second target resource supports the recursive interface when the user has the access authority, as shown in fig. 4, the method further includes:
s301, judging whether the user side has the authority of accessing the th target resource according to the user side identification.
In practical application, a corresponding relationship between the user side identifier and the access right may be pre-established according to the right of each user side, the server queries the corresponding relationship, and determines whether the user side has the right to access the th target resource, if so, it indicates that the user side has the right to access the th target resource, otherwise, it indicates that the user side has no right to access the th target resource.
S302, if the user side has the right to access the th target resource, when the th target resource is a set resource with links, whether the second target resource supports a recursive interface is judged.
In this step, if it is determined in the step S301 that the user side has the right to access the th target resource, the steps S101 to S103 in fig. 2 are continuously executed, that is, when the th target resource has a link resource, it is determined whether the second target resource pointed by the link supports the recursive interface, where the server determines whether the second target resource supports the recursive interface in the same manner as in the step S102, for example, the server searches a preset interface list of the second target resource for whether the recursive interface exists, and if the second target resource exists, the server determines that the second target resource supports the recursive interface.
In the resource updating method provided by this embodiment, the server determines whether the user side has the right to access the th target resource according to the identifier of the user side, and determines whether the second target resource supports the recursive interface when the right is determined, and then the th target resource is a set resource with a link, so that the subsequent steps are performed only when the user side has the right to access the th target resource, thereby preventing the user side without the right to access the th target resource, improving the security and reliability of resource information, and avoiding the waste of server resources and time.
Considering the situation that a second target resource does not support a recursive interface but a default interface of the second target resource supports an update operation, in embodiments, the method further includes, if the second target resource does not support the recursive interface and the default interface of the second target resource supports the update operation, generating a third update operation request according to the th update operation request, where the third update operation request includes an identifier of the default interface and is used for performing the update operation on the second target resource, optionally, ways of generating the third update operation request according to the th update operation request are that a recursive interface identifier in the th update operation request is replaced by an identifier of the default interface, and an identifier of the th target resource in the th update operation request is replaced by an identifier of the second target resource to obtain the third update operation request, where the third update operation request includes an identifier of the second target resource, an identifier of the default interface, an update operation identifier, and update content of the update operation.
Wherein, the default interface of the second target resource is the same as that in the step S103, in practical application, if the second target resource determined by the server does not support the recursive interface, but the default interface of the second target resource acquired by the server supports the update operation, the server generates a third update operation request according to the update operation request, and then the server performs the update operation on the second target resource according to the third update operation request, where the manner in which the server generates the third update operation request according to the update operation request may be that the server replaces the interface identifier of the default interface with the interface identifier of the recursive interface in the target resource, then replaces the identifier of the second target resource with the target resource identifier, and finally determines the new update operation request replacing the interface identifier and the resource identifier as the third update operation request, and the generated third update operation request includes the identifier of the second target resource, the identifier of the default interface, the update operation identifier and the update content.
In this embodiment, if the second target resource does not support the recursive interface, but the default interface of the second target resource supports the update operation, the server generates a third update operation request according to the th update operation request, so that when the server determines that the current recursive interface cannot realize resource update, the server generates the third update operation request according to the th update operation request, thereby greatly improving the flexibility of updating resources by the server.
Considering the case that the second target resource supports the recursive interface in the step S102, an embodiment of the present application provides resource updating methods, where the method further includes, if the second target resource supports the recursive interface, generating a fourth update operation request according to the update operation request, where the fourth update operation request is used to perform an update operation on the second target resource, and optionally, ways of generating the fourth update operation request according to the update operation request may be implemented by replacing the identifier of the target resource in the update operation request with the identifier of the second target resource to obtain the fourth update operation request, where the fourth update operation request includes the identifier of the second target resource, the identifier of the recursive interface, the identifier of the update operation, and update content.
Wherein, when it is determined that the second target resource supports the recursive interface, the server generates a fourth update operation request according to the th update operation request, and performs an update operation on the second target resource according to the fourth update operation request, wherein, the server generates the fourth update operation request according to the th update operation request may be that the server replaces the identifier of the th target resource in the th update operation request with the identifier of the second target resource, and then the new update operation request is determined to be the fourth update operation request, and the generated fourth update operation request includes the identifier of the second target resource, the identifier of the recursive interface, the identifier of the update operation, and the update content.
In this embodiment, if the second target resource supports the recursive interface, the server generates a fourth update operation request according to the th update operation request, so that when the server determines that the current recursive interface can implement resource update, the server directly updates the resource according to the generated fourth update operation request, thereby greatly improving the speed of updating the resource by the server.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in the order indicated by the arrows, unless explicitly stated herein, the steps are not performed in a strict order of limitation, and the steps may be performed in other orders, and further, at least the portion of the step of in fig. 2-4 may include multiple sub-steps or stages, which are not necessarily performed at the same time , but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily performed in sequence, but may be rotated or alternated with at least portions of other steps or sub-steps or stages of other steps.
In embodiments, as shown in fig. 5, the present application provides resource updating apparatuses, which include a receiving module 10, a determining module 11 and a processing module 12, wherein,
the receiving module 10 is configured to receive an th update operation request sent by a user side, where the th update operation request is used to indicate that a recursive interface is used to perform an update operation on a th target resource;
a determining module 11, configured to determine whether a second target resource pointed by the link supports a recursive interface if the th target resource is a set resource with a link resource;
the processing module 12 is configured to determine, if the second target resource does not support a recursive interface and the default interface of the second target resource does not support an update operation, a target interface that supports the update operation from a preset interface list, and generate a second update operation request according to the -th update operation request, where the second update operation request includes an identifier of the target interface and is used to perform an update operation on the second target resource.
The implementation principle and technical effect of the resource updating apparatuses provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In embodiments, the update operation request includes an identification of the th target resource, an identification of the recursive interface, an identification of the update operation, and the update content.
The implementation principle and technical effect of the resource updating apparatuses provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In embodiments, the processing module 12 is specifically configured to replace the identifier of the recursive interface in the th update operation request with the identifier of the target interface, and replace the identifier of the th target resource in the th update operation request with the identifier of the second target resource, so as to obtain the second update operation request;
wherein the second update operation request includes an identification of the second target resource, an identification of the target interface, the update operation identification, and the update content.
The implementation principle and technical effect of the resource updating apparatuses provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In embodiments, as shown in fig. 6, the present application provides resource updating apparatuses, which further include a generating module 13 and a sending module 14, wherein,
a generating module 13, configured to generate a response message after all the resources in the th target resource are updated, where the response message includes the update results of all the linked resources in the th target resource;
and a sending module 14, configured to send the response message to the user side.
The implementation principle and technical effect of the resource updating apparatuses provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In embodiments, as shown in fig. 7, the present application provides resource updating apparatuses, which further include a determination authority module 15, wherein,
the permission judging module 15 is configured to judge whether the user side has permission to access the th target resource according to the user side identifier;
a determining module 11, configured to determine whether the second target resource supports a recursive interface when the th target resource is a set resource with a link if the user side has the right to access the th target resource.
The implementation principle and technical effect of the resource updating apparatuses provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In embodiments, as shown in fig. 8, the present application provides resource updating apparatuses, which further includes a second generating module 17, configured to generate a third update operation request according to the update operation request if the second target resource does not support a recursive interface and a default interface of the second target resource supports an update operation, where the third update operation request includes an identifier of the default interface and is used to perform an update operation on the second target resource.
In embodiments, the second generating module 17 is further configured to replace the identifier of the recursive interface in the th update operation request with the identifier of the default interface, and replace the identifier of the th target resource in the th update operation request with the identifier of the second target resource, so as to obtain the third update operation request, where the third update operation request includes the identifier of the second target resource, the identifier of the default interface, the identifier of the update operation, and the update content.
The implementation principle and technical effect of the resource updating apparatuses provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In embodiments, as shown in fig. 9, the present application provides resource updating apparatuses, which further include a third generating module 18, configured to generate a fourth update operation request according to the update operation request if the second target resource supports a recursive interface, where the fourth update operation request is used to perform an update operation on the second target resource.
In embodiments, the third generating module 18 is further configured to replace the identifier of the th target resource in the th update operation request with the identifier of the second target resource to obtain the fourth update operation request, where the fourth update operation request includes the identifier of the second target resource, the recursive interface identifier, the update operation identifier, and the update content.
The implementation principle and technical effect of the resource updating apparatuses provided in the above embodiments are similar to those of the above method embodiments, and are not described herein again.
For the specific limitation of the resource updating apparatus, reference may be made to the above limitation of the resource updating method, which is not described herein again. The modules in the resource update processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In embodiments, there are provided kinds of computer devices, which may be servers, the internal structure of which may be as shown in FIG. 10, the computer devices include a processor, a memory, a network interface and a database connected by a system bus, wherein the processor of the computer device is used to provide computing and control capabilities.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In embodiments, computer devices are provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program implementing the steps of:
receiving th updating operation request sent by a user side, wherein the th updating operation request is used for indicating that a recursive interface is adopted to update th target resources;
if the th target resource is a set resource with a link, judging whether a second target resource pointed by the link supports a recursive interface;
and if the second target resource does not support a recursive interface and the default interface of the second target resource does not support the updating operation, determining a target interface supporting the updating operation from a preset interface list, and generating a second updating operation request according to the th updating operation request, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
The implementation principle and technical effect of the computer devices provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
In embodiments, computer readable storage media are provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
receiving th updating operation request sent by a user side, wherein the th updating operation request is used for indicating that a recursive interface is adopted to update th target resources;
if the th target resource is a set resource with a link, judging whether a second target resource pointed by the link supports a recursive interface;
and if the second target resource does not support a recursive interface and the default interface of the second target resource does not support the updating operation, determining a target interface supporting the updating operation from a preset interface list, and generating a second updating operation request according to the th updating operation request, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
The implementation principle and technical effect of the computer-readable storage media provided by the above embodiments are similar to those of the above method embodiments, and are not described herein again.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored in a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features. The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1, A resource updating method, characterized in that the method comprises:
receiving th updating operation request sent by a user side, wherein the th updating operation request is used for indicating that a recursive interface is adopted to update th target resources;
if the th target resource is a set resource with a link, judging whether a second target resource pointed by the link supports a recursive interface;
and if the second target resource does not support a recursive interface and the default interface of the second target resource does not support the updating operation, determining a target interface supporting the updating operation from a preset interface list, and generating a second updating operation request according to the th updating operation request, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
2. The method of claim 1 wherein said update operation request includes an identification of said th target resource, an identification of a recursive interface, an identification of an update operation, and an update content.
3. The method of claim 2, wherein generating a second update operation request according to the th update operation request comprises:
replacing the identifier of the recursive interface in the th update operation request with the identifier of the target interface, and replacing the identifier of the th target resource in the th update operation request with the identifier of the second target resource, so as to obtain the second update operation request;
wherein the second update operation request includes an identification of the second target resource, an identification of the target interface, the update operation identification, and the update content.
4. The method of any of , wherein the method further comprises:
generating a response message after the target resource is updated, wherein the response message comprises the updated result of all the target resource;
and sending the response message to the user terminal.
5. The method of any of claims 1-3, wherein the update operation request includes a user side identifier, and wherein before determining whether the second target resource pointed to by the link supports a recursive interface if the th target resource is an aggregate resource with a link, the method further comprises:
judging whether the user side has the authority of accessing the th target resource or not according to the user side identification;
if the user side has the right to access the th target resource, judging whether the second target resource supports a recursive interface or not when the th target resource is a set resource with links.
6. The method of any of , wherein the method further comprises:
and if the second target resource does not support a recursive interface and the default interface of the second target resource supports the updating operation, generating a third updating operation request according to the updating operation request, wherein the third updating operation request comprises the identifier of the default interface and is used for updating the second target resource.
7. The method of claim 6, wherein generating a third update operation request according to the th update operation request comprises:
replacing the identifier of the recursive interface in the th update operation request with the identifier of the default interface, and replacing the identifier of the th target resource in the th update operation request with the identifier of the second target resource, so as to obtain the third update operation request;
wherein the third update operation request comprises an identification of the second target resource, an identification of the default interface, an update operation identification, and update content.
8. The method of any of , wherein the method further comprises:
and if the second target resource supports a recursive interface, generating a fourth updating operation request according to the updating operation request, wherein the fourth updating operation request is used for updating the second target resource.
9. The method of any of claims 1-3, wherein the generating a fourth update operation request from the th update operation request comprises:
replacing the identification of the target resource in the th update operation request with the identification of the second target resource, resulting in the fourth update operation request;
wherein the fourth update operation request comprises an identification of the second target resource, the recursive interface identification, an update operation identification, and update content.
10, kinds of resource updating device, characterized in that, the device includes:
the module comprises a receiving module, a receiving module and a sending module, wherein the receiving module is used for receiving th updating operation requests sent by a user side, and the th updating operation requests are used for indicating that a recursive interface is adopted to update th target resources;
a judging module, configured to, if the th target resource is a set resource with a link, judge whether a second target resource pointed by the link supports a recursive interface;
and the processing module is used for determining a target interface supporting the updating operation from a preset interface list and generating a second updating operation request according to the th updating operation request if the second target resource does not support the recursive interface and the default interface of the second target resource does not support the updating operation, wherein the second updating operation request comprises the identifier of the target interface and is used for updating the second target resource.
Computer device of , comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program is configured to carry out the steps of the method of any of claims 1 to 7 as claimed in .
12, computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any of claims 1 to 7, wherein represents a set of instructions for carrying out the method.
CN201880037171.8A 2018-12-14 2018-12-14 Resource updating method and device, computer equipment and storage medium Active CN110741617B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/121283 WO2020118705A1 (en) 2018-12-14 2018-12-14 Resource update method and apparatus, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN110741617A true CN110741617A (en) 2020-01-31
CN110741617B CN110741617B (en) 2022-06-10

Family

ID=69236603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880037171.8A Active CN110741617B (en) 2018-12-14 2018-12-14 Resource updating method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110741617B (en)
WO (1) WO2020118705A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064609A (en) * 2021-03-05 2021-07-02 深圳市欢太科技有限公司 Resource loading method, client, server and storage medium
CN113259443A (en) * 2021-05-20 2021-08-13 远景智能国际私人投资有限公司 Resource data updating system, method, device, equipment and readable storage medium
CN116841622A (en) * 2023-09-01 2023-10-03 上海燧原智能科技有限公司 Address self-increasing memory instruction generation method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009205486A (en) * 2008-02-28 2009-09-10 Mitsubishi Electric Corp Data processor and communication system and data processing method and program
US20150237165A1 (en) * 2014-02-20 2015-08-20 International Business Machines Corporation Bulk uploading of multiple self-referencing objects
CN106161393A (en) * 2015-04-17 2016-11-23 伊姆西公司 The method and apparatus realizing the operation of multiple content management service
CN107241293A (en) * 2016-03-28 2017-10-10 杭州萤石网络有限公司 A kind of resource access method, apparatus and system
CN107870814A (en) * 2016-09-23 2018-04-03 伊姆西Ip控股有限责任公司 Method and apparatus for Content Management batch processing
US20180145965A1 (en) * 2016-04-25 2018-05-24 International Business Machines Corporation Protection of application passwords using a secure proxy
CN108141468A (en) * 2015-09-23 2018-06-08 康维达无线有限责任公司 The RESTFUL operations of enhancing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009205486A (en) * 2008-02-28 2009-09-10 Mitsubishi Electric Corp Data processor and communication system and data processing method and program
US20150237165A1 (en) * 2014-02-20 2015-08-20 International Business Machines Corporation Bulk uploading of multiple self-referencing objects
CN106161393A (en) * 2015-04-17 2016-11-23 伊姆西公司 The method and apparatus realizing the operation of multiple content management service
CN108141468A (en) * 2015-09-23 2018-06-08 康维达无线有限责任公司 The RESTFUL operations of enhancing
CN107241293A (en) * 2016-03-28 2017-10-10 杭州萤石网络有限公司 A kind of resource access method, apparatus and system
US20180145965A1 (en) * 2016-04-25 2018-05-24 International Business Machines Corporation Protection of application passwords using a secure proxy
CN107870814A (en) * 2016-09-23 2018-04-03 伊姆西Ip控股有限责任公司 Method and apparatus for Content Management batch processing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064609A (en) * 2021-03-05 2021-07-02 深圳市欢太科技有限公司 Resource loading method, client, server and storage medium
CN113259443A (en) * 2021-05-20 2021-08-13 远景智能国际私人投资有限公司 Resource data updating system, method, device, equipment and readable storage medium
CN113259443B (en) * 2021-05-20 2023-09-29 远景智能国际私人投资有限公司 Resource data updating system, method, device, equipment and readable storage medium
CN116841622A (en) * 2023-09-01 2023-10-03 上海燧原智能科技有限公司 Address self-increasing memory instruction generation method, device, equipment and medium
CN116841622B (en) * 2023-09-01 2023-11-24 上海燧原智能科技有限公司 Address self-increasing memory instruction generation method, device, equipment and medium

Also Published As

Publication number Publication date
WO2020118705A1 (en) 2020-06-18
CN110741617B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
AU2021277736B2 (en) Pdu type setting method, ue policy setting method, and related entity
CN108768948B (en) Access right management method, server and computer readable storage medium
CN109391673B (en) Method, system and terminal equipment for managing update file
US11237888B2 (en) Message processing method and system, storage medium and electronic device
EP3518109A1 (en) Method and apparatus for realizing communication between web page and native application, and electronic device
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
JP2016515745A (en) Methods and devices for updating clients
CN107026879B (en) Data caching method and background application system
CN111164945A (en) Method and apparatus for brokering between different architectures
CN113892279A (en) Resource subscription method, device, server and computer storage medium
CN111083219A (en) Request processing method, device, equipment and computer readable storage medium
CN111680328A (en) Data processing method and device, server and computer readable storage medium
CN114765623A (en) Information subscribing method, information distributing method and device
CN112839372A (en) Network access method and device for user and computer readable storage medium
CN108960378B (en) Data downloading method, system, device and storage medium
KR101129092B1 (en) Web service providing system and web service providing method
CN113115434A (en) Network registration method, network equipment and terminal equipment
KR20210043654A (en) Method, apparatus and storage medium for resource organization
US20090037493A1 (en) Method and device for updating an object with copyright attribute
US20190342305A1 (en) Malicious data scan service
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN114866970A (en) Policy control method, system and related equipment
CN112579956A (en) Website account management method and device and electronic equipment
CN109548020B (en) Compensation method and device after authentication failure, server and storage medium
CN109951301B (en) Policy and charging control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant