Repairing links in locked files
AssigneeAdobe Systems Incorporated
InventorsMartin Rehfeld, Lance Lewis, Michele K. Tomac, Kevin A. Hogan
Life of this patent
Estimating the term…
Abstract
Methods and apparatus, including computer program products, implementing a technique for repairing links in a file. The file can contain one or more links, each link referring to a target file. For one or more of the links, a file identifier such as a file name, file number, or file address is stored. Alternatively, for one or more of the links, target information is stored that identifies an old target and a new target for the link. The links can be repaired based on the stored information. The stored information can be used to identify changes to the links that occurred while the file containing the link was inaccessible to the system, for example, due to the file being locked by a user.
Claims24
A method comprising:
- providing a collection of linked files managed by a link management system;
- and
- in the link management system, performing the actions of:
- receiving a first indication from an access control component of the link management system that a first file within the collection of linked files will be locked, the first file including one or more links, each link having a corresponding target file in a file system;
- receiving a second indication from the access control component that the first file is locked;
- detecting one or more changes made to a target file of one or more links in the locked first file after the second indication is received;
- storing the detected one or more changes in a data structure separate from the locked first file;
- receiving a third indication from the access control component that the first file is unlocked;
- and
- using the stored detected one or more changes to repair the one or more links in the unlocked first file after the third indication is received.
A method comprising:
- providing a collection of linked files managed by a link management system;
- receiving a first indication from an access control component of the link management system that a first file within the collection of linked files will be locked;
- in response to receiving the first indication, storing a file identifier for each link in the first file, the file identifier corresponding to an original target file of the link;
- after storing the file identifier for each link in the first file, indicating to the access control component that the first file can be locked;
- receiving a second indication from the access control component that the first file is unlocked;
- and
- in response to receiving the second indication, examining each link in the unlocked first file and for each examined link:
- if the link points to a location that does not contain a target file, locating the target file using the stored file identifier, determining a new location of the target file, and modifying the link to point to the new location of the target file;
- and
- if the link points to a location that contains a current target file, comparing a current file identifier of the current target file with the stored file identifier of the original target file, and if the current file identifier is different than the stored file identifier, selecting a desired target file for the link.
A computer program product, tangibly stored on a machine-readable medium, the product comprising instructions operable to cause a programmable processor to:
- provide a collection of linked files managed by a link management system;
- and
- in the link management system, perform the actions of:
- receiving a first indication from an access control component of the link management system that a first file within the collection of linked files will be locked, the first file including one or more links, each link having a corresponding target file in a file system;
- receiving a second indication from the access control component that the first file is locked;
- detecting one or more changes made to a target file of one or more links in the locked first file after the second indication is received;
- storing the detected one or more changes in a data structure separate from the locked first file;
- receiving a third indication from the access control component that the first file is unlocked;
- and
- using the stored detected one or more changes to repair the one or more links in the unlocked first file after the third indication is received.
A computer program product, tangibly stored on a machine-readable medium, the product comprising instructions operable to cause a programmable processor to:
- provide a collection of linked files managed by a link management system;
- receive a first indication from an access control component of the link management system that a first file within the collection of linked files will be locked;
- in response to receiving the first indication, store a file identifier for each link in the first file, the file identifier corresponding to an original target file of the link;
- after storing the file identifier for each link in the first file, indicate to the access control component that the first file can be locked;
- receive a second indication from the access control component that the first file is unlocked;
- and
- in response to receiving the second indication, examine each link in the unlocked first file and for each examined link:
- if the link points to a location that does not contain a target file, locate the target file using the stored file identifier, determine a new location of the target file, and modify the link to point to the new location of the target file;
- and
- if the link points to a location that contains a current target file, compare a current file identifier of the current target file with the stored file identifier of the original target file, and if the current file identifier is different than the stored file identifier, select a desired target file for the link.
Dependencies are inferred from the claim text.