Summary of the invention
Based on the problems referred to above, the embodiment of the invention discloses a kind of data processing method and device, to improve the intelligence degree of entry management, thus improve the experience of user.Technical scheme is as follows:
First aspect, embodiments provides a kind of data processing method, comprising:
Obtain the operational order being directed to entry object;
Judge whether described operational order is default destruction set of time instruction;
When judging that described operational order is default destruction set of time instruction,
What foundation was preset allows to there is duration, arranges the auto-destruct time that described entry object is corresponding;
When reaching auto-destruct time corresponding to described entry object, described entry object is performed to the destruction operation preset.
Optionally, described default destruction set of time instruction comprises:
The newly-built instruction of entry, entry edit instruction and entry hold instruction at least one.
Optionally, described default destruction operation comprises:
Automatically operation is hidden, or, deletion action.
Optionally, described data processing method also comprises:
When judging that described operational order is default destruction set of time instruction, judge whether described entry object is marked as permanent storage, if not, what continuation execution foundation was preset allows to there is duration, arranges the step of auto-destruct time corresponding to described entry object.
Optionally, described data processing method also comprises:
When judging described operational order not for default destruction set of time instruction, judge whether described operational order is the operational order of instruction to entry object permanent storage, if so,
Judge that whether the entry object quantity be labeled is not higher than threshold value, if so, is labeled as permanent storage by described entry object; Otherwise, export for pointing out because marker number too much cannot mark the information of permanent storage.
Second aspect, the embodiment of the present invention additionally provides a kind of data processing equipment, comprising:
Instruction acquisition module, for obtaining the operational order being directed to entry object;
Judge module, for judging whether described operational order is default destruction set of time instruction, if so, triggering and arranging module;
Module is set, for according to preset allow there is duration, the auto-destruct time that described entry object is corresponding is set;
Entry destroys module, for when reaching auto-destruct time corresponding to described entry object, performing the destruction preset operate described entry object.
Optionally, described default destruction set of time instruction comprises:
The newly-built instruction of entry, entry edit instruction and entry hold instruction at least one.
Optionally, described default destruction operation comprises:
Automatically operation is hidden, or, deletion action.
Optionally, described judge module, when judging that described operational order is default destruction set of time instruction, also for judging whether described entry object is marked as permanent storage, if not, triggering and arranging module.
Optionally, described data processing equipment also comprises: mark module, prompting output module;
Described judge module is when judging described operational order not for default destruction set of time instruction, also for judging whether described operational order is the operational order of instruction to entry object permanent storage, if, judge that whether the entry object quantity be labeled is not higher than threshold value, if so, described mark module is triggered; Otherwise, trigger described prompting output module;
Described mark module, for being labeled as permanent storage by described entry object;
Described prompting output module, for exporting for pointing out because marker number too much cannot mark the information of permanent storage.
In the invention process, when getting the operational order being directed to entry object, judge whether this operational order is default destruction set of time instruction; And when judging that this operational order is default destruction set of time instruction, what foundation was preset allows to there is duration, arranges the auto-destruct time that this entry object is corresponding; And then when reaching auto-destruct time corresponding to this entry object, this entry object is performed to the destruction operation preset.In this programme, just can be automatically left out when entry object meets predetermined condition, and manually delete without the need to user, the intelligence degree that entry is managed is improved, and finally improves the experience of user.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of data processing method and device, to improve the intelligence degree of entry management, thus improve the experience of user.
First a kind of data processing method that the embodiment of the present invention provides is introduced below.
It should be noted that, a kind of data processing method that the embodiment of the present invention provides is applicable in terminal.Wherein, in actual applications, this terminal can mobile phone, notebook, panel computer etc., and this is all rational.
Further, it is emphasized that the functional software realizing the data processing method that the embodiment of the present invention provides can for independently keeping record software, or, also can for being arranged at the plug-in unit in existing account software, this is all rational.Wherein, so-called account software can be: p.m.entry software, note software, with written notes software or task list software etc.
As shown in Figure 1, a kind of data processing method, can comprise:
S101, obtains the operational order being directed to entry object;
When user operation entry object, terminal can get the operational order being directed to entry object, and, after terminal gets operational order, while the relevant action corresponding to this operational order of response, can also follow-up judgement be carried out.Wherein, this operational order can be: the newly-built instruction of entry, entry edit instruction, entry is held instruction, entry checks instruction or entry contents duplicate instructions etc.; Certainly, this operational order can be also the special instruction for arranging the destruction time, and for this situation, user can click special button to send this operational order.
It will be appreciated by persons skilled in the art that, for the newly-built instruction of entry, first terminal can respond the newly-built instruction of this entry, a newly-built entry object; For entry edit instruction, first terminal can respond this entry edit instruction, enters entry editing interface; For entry is held instruction, first terminal can respond this entry and hold instruction, and preserves this entry object; And check for instruction for entry, first terminal can respond this entry and check instruction, enters the content interface of entry; For entry contents duplicate instructions, first terminal can respond this entry contents duplicate instructions, duplicate entries content.
S102, judges whether this operational order is default destruction set of time instruction, if so, performs S103; Otherwise, do not deal with;
After getting the operational order being directed to entry object, can judge whether this operational order is default destruction set of time instruction further, and perform different operations according to different judged results.Wherein, when judging this operational order not for default destruction set of time instruction, showing now without the need to arranging the auto-destruct time, therefore, can not deal with; And when judging that this operational order is default destruction set of time instruction, show the auto-destruct time that this entry object now can be set, therefore, can S103 be performed.
Wherein, in actual applications, described default destruction set of time instruction can comprise: the newly-built instruction of entry, entry edit instruction and entry hold instruction at least one; Certainly, this destruction set of time instruction also can for the above-mentioned special instruction for arranging the destruction time.It should be noted that, for some operational order, such as: entry checks instruction and entry contents duplicate instructions, entry contents is not changed owing to responding these operational orders, therefore, usually can not be set to default destruction set of time instruction.
Be understandable that, about the enumerated property of destruction set of time instruction preset as just example, should do not form the restriction to the embodiment of the present invention; Further, user can decide in its sole discretion which operational order can as preset the instruction of destruction set of time.
S103, what foundation was preset allows to there is duration, arranges the auto-destruct time that this entry object is corresponding;
S104, when reaching auto-destruct time corresponding to this entry object, performs the destruction operation preset to this entry object.
When judging that this operational order is default destruction set of time instruction, show the auto-destruct time that this entry object now can be set, therefore, can according to preset allow there is duration, the auto-destruct time that this entry object is corresponding is set.Wherein, there is duration and can be in allowing of presetting: 30 days, 20 days or 15 days etc.; And what this was preset allows to there is duration can be system default duration, and the duration that also manually can arrange for user, this is all rational.
Further, when reaching the auto-destruct time corresponding to this entry object, this entry object is performed to the destruction operation preset.Wherein, the destruction operation preset can comprise: automatically hide operation, or deletion action, is not limited thereto certainly.
It should be noted that, for an entry object, user can perform multi-pass operations to it, terminal is caused can repeatedly to get the operational order being directed to entry object, and when judging that this operational order meets default destruction set of time instruction each time, just can according to preset allow there is duration, the auto-destruct time that this entry object is corresponding is set, namely, the auto-destruct time can repeatedly be reseted (namely can restart countdown).Concrete, when this operational order be the first fit being directed to this entry object preset the instruction of destruction set of time time, the auto-destruct time was set up for first time; And when this operational order be the non-first fit being directed to this entry object preset the instruction of destruction set of time time, the auto-destruct time, for first time is set up, but to be reset.
In order to be described clearly, enumerate an application example below and illustrating down:
User creates an entry in software in 2014-01-01, and entry contents is a pictures and passage, and after user has edited and exited editor, entry opens countdown in 30 days, estimates 2014-02-02 auto-destruct.
After one week, i.e. 2014-01-08, user edits this entry again, revises word content; Edit as user and after exiting editor, it is 30 days that countdown is restarted, estimated 2014-02-09 auto-destruct.
After 30 days, 2014-02-09, this entry disappears from user list.
In the invention process, when getting the operational order being directed to entry object, judge whether this operational order is default destruction set of time instruction; And when judging that this operational order is default destruction set of time instruction, what foundation was preset allows to there is duration, arranges the auto-destruct time that this entry object is corresponding; And then when reaching auto-destruct time corresponding to this entry object, this entry object is performed to the destruction operation preset.In this programme, just can be automatically left out when entry object meets predetermined condition, and manually delete without the need to user, the intelligence degree that entry is managed is improved, and finally improves the experience of user.
The embodiment of the present invention additionally provides another data processing method.
It should be noted that, a kind of data processing method that the embodiment of the present invention provides is applicable in terminal.Wherein, in actual applications, this terminal can mobile phone, notebook, panel computer etc., and this is all rational.
Further, it is emphasized that the functional software realizing the data processing method that the embodiment of the present invention provides can for independently keeping record software, or, also can for being arranged at the plug-in unit in existing account software, this is all rational.Wherein, so-called account software can be: p.m.entry software, note software, with written notes software or task list software etc.
Wherein, in the present embodiment, some entry object can be labeled as permanent storage by user, for the entry object being set to permanent storage, it is not carried out to the setting of auto-destruct time.
As shown in Figure 2, a kind of data processing method, can comprise:
S201, obtains the operational order being directed to entry object;
When user operation entry object, terminal can get the operational order being directed to entry object, and, after terminal gets operational order, while the relevant action corresponding to this operational order of response, can also follow-up judgement be carried out.Wherein, this operational order can be: the newly-built instruction of entry, entry edit instruction, entry is held instruction, entry checks instruction or entry contents duplicate instructions etc.; Certainly, this operational order can be also the special instruction for arranging the destruction time, and for this situation, user can click special button to send this operational order.
It will be appreciated by persons skilled in the art that, for the newly-built instruction of entry, first terminal can respond the newly-built instruction of this entry, a newly-built entry object; For entry edit instruction, first terminal can respond this entry edit instruction, enters entry editing interface; For entry is held instruction, first terminal can respond this entry and hold instruction, and preserves this entry object; And check for instruction for entry, first terminal can respond this entry and check instruction, enters the content interface of entry; For entry contents duplicate instructions, first terminal can respond this entry contents duplicate instructions, duplicate entries content.
S202, judges whether this operational order is default destruction set of time instruction, if so, performs S203; Otherwise, do not deal with;
After getting the operational order being directed to entry object, can judge whether this operational order is default destruction set of time instruction further, and perform different operations according to different judged results.Wherein, when judging this operational order not for default destruction set of time instruction, showing now without the need to arranging the auto-destruct time, therefore, can not deal with; And when judging that this operational order is default destruction set of time instruction, show the auto-destruct time that this entry object now can be set, therefore, can S203 be performed.
Wherein, in actual applications, described default destruction set of time instruction can comprise: the newly-built instruction of entry, entry edit instruction and entry hold instruction at least one; Certainly, this destruction set of time instruction also can for the above-mentioned special instruction for arranging the destruction time.It should be noted that, for some operational order, such as: entry checks instruction and entry contents duplicate instructions, entry contents is not changed owing to responding these operational orders, therefore, usually can not be set to default destruction set of time instruction.
Be understandable that, about the enumerated property of destruction set of time instruction preset as just example, should do not form the restriction to the embodiment of the present invention; Further, user can decide in its sole discretion which operational order can as preset the instruction of destruction set of time.
S203, judges whether this entry object is marked as permanent storage, if so, does not deal with; Otherwise, perform S204;
After judging that this operational order is default destruction set of time instruction, can continue to judge whether this entry object is marked as permanent storage, if so, not deal with; Otherwise, continue to perform S204.
S204, what foundation was preset allows to there is duration, arranges the auto-destruct time that this entry object is corresponding;
S205, when reaching auto-destruct time corresponding to this entry object, performs the destruction operation preset to this entry object.
When judging that this operational order is default destruction set of time instruction and this entry object is not marked as permanent storage, show the auto-destruct time that this entry object now can be set, therefore, can according to preset allow there is duration, the auto-destruct time that this entry object is corresponding is set.Wherein, there is duration and can be in allowing of presetting: 30 days, 20 days or 15 days etc.; And what this was preset allows to there is duration can be system default duration, and the duration that also manually can arrange for user, this is all rational.
Further, when reaching the auto-destruct time corresponding to this entry object, this entry object is performed to the destruction operation preset.Wherein, the destruction operation preset can comprise: automatically hide operation, or deletion action, is not limited thereto certainly.
It should be noted that, for an entry object, user can perform multi-pass operations to it, terminal is caused can repeatedly to get the operational order being directed to entry object, and when judging that this operational order meets default destruction set of time instruction each time, just can according to preset allow there is duration, the auto-destruct time that this entry object is corresponding is set, namely, the auto-destruct time can repeatedly be reseted (namely can restart countdown).Concrete, when this operational order be the first fit being directed to this entry object preset the instruction of destruction set of time time, the auto-destruct time was set up for first time; And when this operational order be the non-first fit being directed to this entry object preset the instruction of destruction set of time time, the auto-destruct time, for first time is set up, but to be reset.
In the present embodiment, the execution sequence of S202 and S203 is not limited thereto, and first can perform S203, when judged result is for being, again performs S202, and then when judged result is, performs S204; Or, can judge whether this entry object is marked as permanent storage and whether this operational order is default destruction set of time instruction simultaneously, and when judging that this entry object is not marked as permanent storage and this operational order is default destruction set of time instruction, just continue to perform S204.
Visible, in this programme, just can be automatically left out when entry object meets predetermined condition, and manually delete without the need to user, the intelligence degree that entry is managed is improved, and finally improves the experience of user; Ensure that the permanent storage of some entry object simultaneously.
Further, the threshold value of the quantity of the entry object that can be marked as permanent storage can be set, when user needs a certain entry object to be labeled as permanent storage, if the quantity be labeled is not higher than threshold value, now, allow mark; Otherwise, do not allow mark.Based on the demand, the data processing method that the embodiment of the present invention provides can also comprise:
When judging this operational order not for default destruction set of time instruction, judge whether this operational order is the operational order of instruction to entry object permanent storage, if so,
Judge that whether the entry object quantity be labeled is not higher than threshold value, if so, is labeled as permanent storage by this entry object; Otherwise, export for pointing out because marker number too much cannot mark the information of permanent storage.
Corresponding to said method embodiment, the embodiment of the present invention additionally provides a kind of data processing equipment, as shown in Figure 3, can comprise:
Instruction acquisition module 310, for obtaining the operational order being directed to entry object;
Judge module 320, for judging whether described operational order is default destruction set of time instruction, if so, triggering and arranging module;
Module 330 is set, for according to preset allow there is duration, the auto-destruct time that described entry object is corresponding is set;
Entry destroys module 340, for when reaching auto-destruct time corresponding to described entry object, performing the destruction preset operate described entry object.
In the invention process, when getting the operational order being directed to entry object, judge whether this operational order is default destruction set of time instruction; And when judging that this operational order is default destruction set of time instruction, what foundation was preset allows to there is duration, arranges the auto-destruct time that this entry object is corresponding; And then when reaching auto-destruct time corresponding to this entry object, this entry object is performed to the destruction operation preset.In this programme, just can be automatically left out when entry object meets predetermined condition, and manually delete without the need to user, the intelligence degree that entry is managed is improved, and finally improves the experience of user.
Wherein, described default destruction set of time instruction can comprise:
The newly-built instruction of entry, entry edit instruction and entry hold instruction at least one.
Wherein, described default destruction operation can comprise:
Automatically operation is hidden, or, deletion action.
Wherein, described judge module 320, when judging that described operational order is default destruction set of time instruction, also for judging whether described entry object is marked as permanent storage, if not, triggering and arranging module.
Wherein, the data processing equipment that the embodiment of the present invention provides can also comprise: mark module, prompting output module;
Described judge module 320 is when judging described operational order not for default destruction set of time instruction, also for judging whether described operational order is the operational order of instruction to entry object permanent storage, if, judge that whether the entry object quantity be labeled is not higher than threshold value, if so, described mark module is triggered; Otherwise, trigger described prompting output module;
Described mark module, for being labeled as permanent storage by described entry object;
Described prompting output module, for exporting for pointing out because marker number too much cannot mark the information of permanent storage.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.