This specification relates generally to systems and methods for providing collaborative online software development services, and more particularly to systems and methods for using a third-party add-on with a software application in a collaborative online software development environment.
Existing online software development services allow users to create and manipulate software applications via the Internet, and store the source code at a remote location. Typically, a user accesses an online development service using a web browser operating on a computer or other device. By storing the source code at the remote location, a user can access the source code from any location, using a computer or other device that has access to the Internet. While existing online software development services enable a single user to access and edit a source code file remotely, these services offer limited collaboration capabilities. Therefore, a need exists for an online software development service that enables multiple users to access a source code file and collaboratively edit the source code.
In accordance with an embodiment, a method for providing online services is provided. A document generated by a software application is stored. A third party add-on associated with the software application is executed. A first change to the document is received from an end user of the software application, via interframe communication, and a second change to the document is received from the third party add-on, via interframe communication. One or more transformed operations are generated based on the first and second changes. The one or more transformed operations are applied to the document to reflect the first and second changes. The third party add-on may be attached to the software application.
In one embodiment, the third party add-on associated with the software application is determined to be compatible with the software application. A second third party add-on associated with the software application may be executed, wherein the second third party add-on and the third party add-on are compatible with the software application.
In another embodiment, a second document generated by a second software application is stored. It is determined that the third party application is compatible with the second software application, and the third party add-on is attached to the second software application. The second application having the attached third party add-on is executed.
These and other advantages of the present disclosure will be apparent to those of ordinary skill in the art by reference to the following Detailed Description and the accompanying drawings.
In the exemplary embodiment of
Collaborative development service 130 provides a platform and software development services to software developers, enabling developers to create, display, edit, and operate a variety of software applications, pertaining to a variety of different content types. For example, one or more developers may access collaborative development service 130 via network 105 and develop a software application that provides word processing services with respect to text documents. In other embodiments, collaborative development service 130 also enables developers to develop software applications that provide services relating to other content types, including, without limitation, spreadsheet applications, drawing tools, photo or image editing applications, video editing applications, design tools, software development tools, audio or music editing applications, games, etc. After a developer uses collaborative development service 130 to create a software application, the developer may maintain the software application at collaborative development service 130 or at third party website 112.
In the illustrative embodiment of
Collaborative development service 130 also enables end users to access various software applications maintained by collaborative development service 130 or at third party websites, and provides a platform to use a respective software application to create and edit documents. End users may access a variety of applications and create documents relating to a variety of different content types, including, without limitation, text documents, spreadsheets, drawings, photographs, images, video files, music or audio files, designs, etc. As used herein, the term “document” may also include a shared user space, created and/or used by a software application, that receives and maintains inputs from multiple end users. For example, an online game application may use a shared user space in which user inputs are received, and in which all or a portion of game-related actions are performed. Similarly, an online calculator may create a temporary shared user space in which user inputs are received and results are presented.
The term “end user” and “user” are used herein interchangeably.
Collaborative development service 130 may be accessible via a World Wide Web page that may be viewed using a conventional Web browser, for example. A developer may be required to log into a respective account to access a software application or document. Similarly, an end user may be required to log into a respective account to access his or her documents. Collaborative development service 130 may grant to a developer or end user access rights with respect to a software application or document, such as viewing and/or editing rights.
User device 160 may be any device that enables a developer or user to communicate via network 105. User device 160 may be connected to network 105 through a direct (wired) link, or wirelessly. User device 160 may have a display screen (not shown) for displaying information. For example, user device 160 may be a personal computer, a laptop computer, a workstation, a mainframe computer, etc. Alternatively, user device 160 may be a mobile communication device such as a wireless phone, a personal digital assistant, etc. Other devices may be used.
In accordance with the embodiment of
In accordance with an embodiment, a data model is a rooted tree, where nodes are either maps or ordered lists, and leaves are primitive values or empty data structures (e.g. an empty map). Any node in the tree can be specified using an ordered list, referred to as a “target path,” of key names and array indices. Alternatively, any node in the tree may be assigned a unique identification. Mutations may specify their targets using the unique identification. A software application developed using collaborative development service 130 has a single root data model object, referred to as the root map. All application-specific data is nested inside the root map.
In accordance with an embodiment, collaborative development service 130 supports two operations for the instantiation and deletion of non-primitive objects, two operations on array data, and one operation on map data. The supported operations, or mutations, are described below. Although the mutations lists described below may be the minimal set of operations, there may be others than the ones listed.
ReplaceRange(String id, int index, List<Object|ObjectReference>values): Replaces a range of values in a list starting at the specified index with the specified replacement values.
CreateObject(String id, String typeName): Creates an empty object of the given type with the given id. The typeName may be a user-defined type name or one of the built-in types like “Map” or “Array”.
DeleteObject(String id): Deletes an object with the given id. All references to an object must be removed before an object can be deleted. Mutations that refer to a deleted object are transformed to nothing. If an object deletion is undone, the reverse mutation includes all mutations necessary to fully reconstruct the deleted object.
Update(TargetPath path, Object value|ObjectReference objectId): Replaces a key in a map or an index of an array with the given primitive value or object reference. If the value is null, the key is deleted entirely. Array indices are updated using the Update( ) mutation.
Update(String id, String key, Object value|ObjectReference objectId): Replaces a key in a map or an index of an array with the given primitive value or object reference. If the value is null, the key is deleted entirely. Array indices are updated using the Update( ) mutation.
InsertBefore(TargetPath path, Object value|ObjectReference objectId): Inserts a primitive value or an object reference into an ordered list before a given index. All higher-indexed values in the list are shifted to the right.
InsertBefore(String id, int index, List<Object|ObjectReference>values): Inserts one or more primitive values or object references into an ordered list before a given index. All higher-indexed values in the list are shifted to the right.
Delete(TargetPath path): Deletes a value from an array. All higher-indexed values in the list are shifted to the left.
Delete(String id, int index, int count): Deletes one or more values from an array. All higher-indexed values in the list are shifted to the left.
In accordance with an embodiment, a developer may begin building an application by writing a data model definition file. Collaborative development service 130 provides a compiler service that compiles the data model definition file to generate a collection of Javascript files that represent the user's data model. The developer may code against this API.
In accordance with an embodiment, the developer may begin building an application by writing application code (including data model code) on a server (e.g. a server remote from collaborative development service 130). Collaborative development service 130 may supply software libraries allowing the developer to build custom data models with code hosted on the server. The custom data models are built on top of the basic data models provided by collaborative development service 130.
Accordingly, a developer employing user device 160 or other processing device may access collaborative development service 130 via network 105 and define one or more objects based on ordered lists, maps, and primitives. A developer may further construct a data model based on the objects built from the lists, maps, and primitives. For example, a data model may include a word object having an ordered list of alphanumeric characters defining a word, an image object having an ordered list of pixel values defining an image, a line graph object having an ordered list of values to be plotted, etc. A data model may include other types of objects built from the lists, maps, and primitives provided, such as a paragraph object, a spreadsheet column object, a line object, a rectangle object, etc.
A developer may then create a software application based on the data model. After a software application is created, the software application may be maintained at third party website 112, for example. A user of the software application may access the software application via collaborative development service 130 and create a document. The user may then create an instance of an object, or object instance, within the document by defining the characteristics of the object. For example, supposing that software application defines a word object that includes an ordered list of alphanumeric characters, a user may create a document and generate an instance of the word object by typing a word, thereby specifying the alphanumeric characters within the list. The user may also specify other characteristics of the word object instance such as the font, size, etc.
Suppose, for example, that a developer associated with third party website 112 accesses collaborative development service 130 and creates a data model that includes a word object. The data model (including the word object) is stored in memory 325 as data model 450 and word object 455, as shown in
In accordance with an embodiment, after software application 400 is placed at third party website 112, a user may access software application 400 via collaborative development platform 130 and use software application 400 to create and/or edit a document. Suppose, for example, that a user accesses his or her account at collaborative development service 130 and accesses software application 400, by clicking on a link on a web page, or by selecting an option from a menu, for example. Suppose further that the user employs software application 400 to create a text document. In the illustrative embodiment of
Suppose now that the user uses software application 400 to edit document 410. In particular, the user types text within document 410, including one or more words. When the user types a word, collaborative development service 130 generates an instance of word object 455 by defining an ordered list containing the alphanumeric characters specified by the user, and by specifying any other associated characteristics of the word. Supposing, for example, that the user types the alphanumeric characters “helloworld,” collaborative development service 130 generates within document 410 a word object instance 424 which includes an ordered list 407 containing the alphanumeric characters “helloworld,” as shown in
Referring to
In other embodiments, layout information relating to an object instance may be stored separately from the object instance itself. For example, such data may be stored in a database, table, or in another type of data structure.
A well-known technique used to display information on a user device includes transmitting data adapted to cause the user device to display all or a portion of the information on a Web page. For example, collaborative development service 130 may transmit to browser 210 (of user device 160) a request, in the form of HyperText Markup Language (HTML), adapted to cause browser 210 to display a representation of word object instance 424. In response, browser 210 displays a representation of object instance 424.
In an embodiment, an object instance may be updated based on one or more instructions received from users. For example, an instruction to add a letter to the end of word object instance 424 may be received from a user employing a user device 160. In response, collaborative development service 130 modifies word object instance 424, and then transmits a request to user device 160 to redraw word object instance 424 on display 270 to effect the change in the visual representation of the word object instance. In response to the request, user device 160 redraws word object instance 424 on display 270 to reflect the change.
In accordance with an embodiment, collaborative development service 130 maintains a record of all user activities and revisions related to a particular document in a user activity table, and enables users to view activity and/or revision history pertaining to the particular document.
In accordance with an embodiment, collaborative development service 130 utilizes fundamental edits to provide editing features. The fundamental edits correspond to the smallest changes that may be made to an object instance, and may be utilized in various combinations to provide all of the possible editing functions provided by collaborative development service 130. The fundamental edits may vary by content type. For example, fundamental edits for a word processing editor may include inserting a character, deleting a character, applying a style, inserting an entity (e.g., a numbered list), and updating an entity. Fundamental edits for a drawing tool may include moving an object one pixel in a given direction, deleting an object, etc.
As fundamental edits are applied to an object instance, activity table 428 is updated such that a revision history, including a running collection of applied changes, is maintained.
Combinations of two or more fundamental edits may be referred to as a command. As such, commands correspond to modifications that make use of two or more fundamental edits. For example, an “Insert Column in Table” command may utilize multiple “insert character” fundamental edits, and may also utilize multiple “apply style” fundamental edits to insert a column into a table within a document.
When instructions requesting multiple fundamental edits with respect to a particular object instance are received from a user device 160, collaborative development service 130 applies each requested fundamental edit to the object instance in response to instructions. However, rather than sending to user device 160 a separate request to redraw the visual representation of the object instance after applying each fundamental edit to the object instance, collaborative development service 130 instead determines an efficient redraw approach that reduces the number of redraws required. For example, collaborative development service 130 may analyze the instance data associated with the object instance, including layout data, and/or revision history data within activity table 428 indicating multiple fundamental edits performed during execution of a command, and based on such information, merge several fundamental edits or otherwise reduce the number of redraws needed to render the changes as compared to the number of fundamental edits that have actually been applied to the object instance. A request is then transmitted to one or more user devices to redraw the object instance to effect the changes in the visual representation of the object instance.
In one example, following either a full or partial completion of an instruction pertaining to an instance of a text object (a word object, a paragraph object, etc), the instance data (including updated layout data) and the revision history data within activity table 428 may be analyzed to determine which alphanumeric characters, lines, or sections of the document have been affected. In a specific example, when a command includes a first fundamental edit that is applied to a particular alphanumeric character, and a second fundamental edit that supersedes the first fundamental edit (e.g., a letter “g” is typed, and then a letter “p” is typed in the same position), a redraw approach may be determined that eliminates the first fundamental edit. In another example, fundamental edits that affect adjacent alphanumeric characters may be merged.
A request is transmitted to one or more user devices 160 to redraw the visual representation of the updated object instance, thereby efficiently redrawing the object instance on user device 160 using a reduced number of redraws (e.g., by combining two or more of the redraws into a single redraw). In such a manner, the number of redraws that are used to redraw the visual representation of the object instance is less than the number of fundamental edits that were performed as part of the command. Examples of systems, methods and apparatus for determining a redraw approach using a reduced number of required redraws to render an updated object instance are described in U.S. patent application Ser. No. 13/006,259, entitled “Merging Electronic Document Redraws,” filed Jan. 13, 2011, which is incorporated herein by reference.
In accordance with an embodiment, a plurality of instructions specifying respective changes to an object instance are received from a user device 160 and applied to the object instance. An efficient redraw approach reflecting the requested changes is then determined. An instruction to implement the redraw approach is then transmitted to the user device 160. The user device 160 redraws the object instance based on the instruction.
While the discussion herein uses examples relating to text documents and word object instances, the methods and systems described herein may be applicable to determine a redraw approach for object instances related to a variety of content types, including, without limitation, spreadsheets, drawings, photographs, images, videos, designs, music, software code, games, a software application having a suitable shared user space, etc.
For example, one approach to reducing the number of redraws applied to an object instance relates to adjacent character insertions in a collaborative typing context. For example, when a user who wishes to edit text document 410 requests a first character insertion, and then requests a second character insertion adjacent to the first (e.g., a first requested operation is to insert the characters “ab” at a given location, and a second requested operation is to insert characters “cd” adjacent to the inserted characters), a non-optimized redraw approach may include performing two separate redraws of the line—first to redraw the line with the characters “ab” inserted at the appropriate location, and then to redraw the line with the characters “cd” inserted at the appropriate location. However, in accordance with an embodiment, the insertions are merged such that the insertions are achieved by a single redraw of the text. A request to redraw the object instance in this manner is transmitted to user device 160, and a single redraw is performed.
Returning to the illustrative embodiment, suppose that a user employing a user device 160 accesses object instance 424 and begins to edit the object instance. For example, the user may generate instructions to edit the object by pressing a key on a keyboard, or by pushing a button on a computer mouse, etc. Instructions reflecting the user's changes are transmitted to collaborative development service 130 by user devices 160.
Box 605 shows word object instance 424 before an instruction is received. Box 625 shows list 407, and also shows text layout information 411, which includes a portion of instance data 428 that pertains to the layout of the text. Numbered spacer “00” corresponds to the first letter in list 407, “h”, and numbered spacer “07” corresponds to the eighth letter in list 407, “r”, etc.
A first instruction specifying a first desired change to the object instance is received from user device 160. Referring to box 610, the user inserts the characters “my” after the “hello” text and before the “world” text. User device 160 transmits a request to make the desired change. Referring to box 630, the insertion is represented in layout information 411 as the insertion of two additional spacers following the fifth spacer (numbered “04”), which corresponds to the last character in “hello,” and renumbering the remaining spacers accordingly to accommodate the two inserted characters.
User activity table 428 (shown in
In the illustrative embodiment, the user transmits an additional instruction to modify the text further by inserting the characters “hi” between the “m” and the “y” characters that were previously inserted, as shown in box 615. Referring to box 635, in layout information 411 the second insertion is merged with the first insertion rather than being handled separately. As such, in layout information 411 the change is represented as an insertion of four characters after the “hello” text and before the “world” text. The two insertions are represented as the insertion of four additional spacers following the fifth spacer (number “04”), and renumbering the remaining spacers accordingly.
An instruction is now received from the user to modify word object instance 424 by applying an “underline” style to the “llomhiywor” text, as shown in box 620. Referring to box 640, layout information 411 is modified to convey that the “underline” style should be applied to spacers numbered “02” through “11”, and therefore, that the range of spacers numbered “02” through “11” should be updated.
Activity table 428 is updated to specifically identify these changes, and the date and time the change were requested. Activity table 428 is further updated to identify the user of user device 160 as the source of the instructions.
A redraw approach is now determined based on the changes made to object instance 424. In the illustrative embodiment, layout information 411 indicates that the range of spacers number “02” through “13” should be updated in a single operation to effect the changes made to object instance 424.
In an embodiment, data model change notifications may be used on other ways, besides redraw optimization. For example, if a third-party application maintained an index for quickly searching a large data model, the data model change notifications could be used to quickly update that index.
The optimized redraw approach is used to update the visual representation of the object instance is updated on user device 160. Collaborative development service 130 transmits a request to user device 160 to update the visual representation of object instance 424 by redrawing the range of spacers numbered “02” through “11” to effect the changes specified in the modified instance data 428. In the illustrative embodiment, the request directs user device 160 to complete the changes by performing a single redraw, instead of three redraws. In response, user device 160 performs a single redraw in accordance with the request to effect the specified changes.
In accordance with an embodiment, collaborative development service 130 may receive, substantially simultaneously, from a plurality of user devices, multiple instructions specifying respective changes to an object instance. In response, collaborative development service 130 uses operational transformation rules 333 to determine, for each respective user device, a transformed instruction, or set of transformed instructions, to cause the user device to display the changed object instance accurately and consistently, and transmits the transformed instruction(s) to the respective user device.
Referring again to
Referring to
T(P,Q)->P′,Q′ such that P*Q′==Q*P′ (Rule 1)
The application of Transformation Rule 1 is described in the illustrative embodiments discussed below.
Suppose, for purposes of illustration, that a first user employing user device 160-A, uses collaborative development service 130 to access software application 400, and accesses document 410. A second user employing user device 160-B, simultaneously accesses document 410 in the same manner. The first user types the word “CAT” within document 410. Referring to
The first and second users now wish to collaboratively edit the word “CAT.” Processor 375 receives from user device 160-A a first instruction, reflecting a change made by the first user, to replace the first character “C” of a word object instance “CAT” with the characters “CH.” A second instruction, reflecting a change made by the second user, is received from user device 160-B to replace the third character of the word, “T”, with the character “R.” The second instruction is received by processor 375 before a request has been transmitted to the user device 160-B to update that device's visual representation of the word based on the first instruction.
If the first result and the second result are the same, there is no need to determine a transformed operation. If however, it is determined that the first result is different from the second result, then, at step 720, a first transformed operation and a second transformed operation are determined such that a first transformed result of applying the first transformed operation to the object instance followed by application of the second transformed operation to the object instance is the same as a second result of applying the second transformed operation to the object instance followed by application of the first transformed operation to the object instance. Processor 375 accordingly transforms the two changes into a pair of transformed operations: a first transformed operation to replace the first character “C” of the word with the characters “CH,” and a second transformed operation to replace the fourth character “T” of the word object instance with the character “R” (instead of replacing the third character). Application of the first transformed operation followed by the second transformed operation produces the same result as application of the second transformed followed by the first transformed operation.
At step 730, a visual representation of the object instance is updated based on the first transformed operation and the second transformed operation. Accordingly, collaborative development service 130 transmits to user device 160-A and to user device 160-B respective requests to apply the first and second transformed operations to object instance 874.
User devices 160-A and 160-B receive the requests and apply operational transformation rules 333 to determine which of the requests to apply and which to disregard. If a user device receives from collaborative development service 130 a request to perform a change that it has already performed, the user device disregards the request. Therefore, for example, user device 160-A disregards the request to replace the first character “C” of the word object instance with the characters “CH.” User device 160-A therefore applies the second requested operation (to replace the fourth character “T” of the word object instance with the character “R”).
User device 160-B also applies operational transformation rules 333 to determine which of the two requests to apply and which to disregard. Because user device 160-B has replaced the third character of the word object instance “T” with the character “R,” user device 160-B adds an additional operation to reverse the edit to the third character, and then applies the first and second requested operations to the word.
In another example, suppose that a first instruction is received from a first device to insert text of length X at the beginning of a word object instance of length Y, and a second instruction is received from a second device to insert text at the end of the object instance (after the Yth alphanumeric character), before any request has been transmitted to update the visual representation of the word object instance based on the first instruction. Processor 375, using operational transformation rules 333, transforms the two changes to a pair of transformed operations: a first transformed operation to insert the first text at the beginning of the word object instance, and a second transformed operation to insert the second text after the (X+Y)th alphanumeric character of the word object instance. Requests to perform the transformed operations are transmitted to both devices. This example is discussed further in the illustrative embodiment described below.
Suppose now that a first user, wishing to edit text document 410, employs user device 160-A to access software application 400 via collaborative development service 130, and accesses text document 410. While editing document 410, the first user types the word “brown.” Referring to
Suppose now that a second user, employing user device 160-B, wishing to edit document 410 in collaboration with the first user, accesses software application 400 via collaborative development service 130, and accesses document 410. Word object instance 874 is also displayed on user device 160-B on a web page 891 similar to web page 871, as shown in
In accordance with an embodiment, when instructions are received from a plurality of user devices specifying a plurality of changes to an object instance, a transformed operation is determined based on the changes, and a request is transmitted to a user device to update a visual representation of the object instance based on the transformed operation. In one embodiment, a plurality of transformed instructions may be determined such that application of the transformed instructions, in any order, results in consistent visual representations of the object instance on the plurality of user devices.
At step 920, a second instruction specifying a second change to the object instance is received from a second device. Referring to
Processor 375 examines the first change and the second change to determine whether the result of applying the first change followed by the second change is the same as the result of applying the second change followed by the first change. In the illustrative example, the results are different. Accordingly, processor 375 determines that a set of transformed operations is required.
At step 930, a transformed operation is determined based on the first change and the second change. Processor 375 generates a first transformed operation to insert the text “quick” at the beginning of word object instance 874, and a second transformed operation to insert the text “fox” after the tenth alphanumeric character of word object instance 874. The result of applying the first transformed operation followed by the second transformed operation is the same as the result of applying the second transformed operation followed by the first transformed operation.
At step 940, a visual representation of the object instance is updated based on the transformed operation. Collaborative development service 130 transmits a first request to user device 160-A to perform the first and second transformed operations, and a second request to user device 160-B to perform the first and second transformed operations. User device 160-A receives the request and, in response, redraws object instance 874 to effect the first and second transformed operations. User devices 160-B also receives the request and, in response, redraws object instance 874 to effect the first and second transformed operations.
In accordance with an embodiment, the methods described above are performed in real-time or substantially in real-time. Thus, collaborative development service 130 receives instructions from user devices 160, identifies conflicting changes to a document, determines any necessary transformed operations, and transmits to the user devices requests to apply the transformed operations to the devices' respective visual representations of the document, in real-time, or substantially in real-time, to provide to users a real-time collaborative editing experience.
In another embodiment, changes made by users may be processed in batch. Thus, collaborative development service 130 thus stores instructions as they are received from user devices 160. Collaborative development service 130 from time to time processes a batch of instructions, identifies conflicting changes to a document, determines any necessary transformed operations, and transmits to the user devices requests to apply the transformed operations to the devices' respective visual representations of the document.
The methods and systems described herein advantageously allow users of an online document processing service, and particularly users who wish to employ a third party software application to create and develop a document of any content type, to collaboratively develop and edit the document in real-time. Unlike existing methods and systems, the methods and systems described herein transform changes made by multiple users and display the changes on multiple devices in a consistent manner while avoiding collisions. Furthermore, the changes are displayed on multiple devices in real-time, allowing each user to view not only his or her own changes to the document, but also changes made by other users, in real-time.
In accordance with an embodiment, the redraw optimization methods described above may be combined with the operational transformation methods described above to transform various instructions received from users to generate one or more transformed operations, and then to determine an efficient redraw approach for redrawing an object instance to reflect the one or more transformed operations.
In accordance with an embodiment, a user who has made a change to a particular object instance may select an undo option to reverse the change. For example, a user may select an undo option from a drop-down menu displayed on display 270 of user device 160.
In one embodiment, each time user device 160 transmits to collaborative development service 130 an instruction to make a change to a particular object instance, user device 160 also stores transiently in memory a reverse instruction in a stack data structure. When the user selects the undo option, the most recent reverse instruction is retrieved from the stack and applied to the visual representation of the object instance on the user's particular user device. In this manner, a user may undo his or her own most recent change without affecting changes made by other users. In another embodiment, a user may selectively undo a change that he or she made within a document (even if the change is not the most recent change made by the user), without affecting any other change.
A redo option is also available to re-apply a change that has been reversed by the selection of the undo option.
In accordance with an embodiment, a user viewing a document may view a list of revisions made to the document. Referring to
In accordance with an embodiment, collaborative development service 130 enables users to maintain a comment thread pertaining to a document, while the users are collaboratively editing the document. Referring to
In various embodiments, the method steps described herein, including the method steps described in
Systems, apparatus, and methods described herein may be implemented using digital circuitry, or using one or more computers using well-known computer processors, memory units, storage devices, computer software, and other components. Typically, a computer includes a processor for executing instructions and one or more memories for storing instructions and data. A computer may also include, or be coupled to, one or more mass storage devices, such as one or more magnetic disks, internal hard disks and removable disks, magneto-optical disks, optical disks, etc.
Systems, apparatus, and methods described herein may be implemented using computers operating in a client-server relationship. Typically, in such a system, the client computers are located remotely from the server computer and interact via a network. The client-server relationship may be defined and controlled by computer programs running on the respective client and server computers.
Systems, apparatus, and methods described herein may be used within a network-based cloud computing system. In such a network-based cloud computing system, a server or another processor that is connected to a network communicates with one or more client computers via a network. A client computer may communicate with the server via a network browser application residing and operating on the client computer, for example. A client computer may store data on the server and access the data via the network. A client computer may transmit requests for data, or requests for online services, to the server via the network. The server may perform requested services and provide data to the client computer(s). The server may also transmit data adapted to cause a client computer to perform a specified function, e.g., to perform a calculation, to display specified data on a screen, etc. For example, the server may transmit a request adapted to cause a client computer to perform one or more of the method steps described herein, including one or more of the steps of
Systems, apparatus, and methods described herein may be implemented using a computer program product tangibly embodied in an information carrier, e.g., in a non-transitory machine-readable storage device, for execution by a programmable processor; and the method steps described herein, including one or more of the steps of
A high-level block diagram of an exemplary computer that may be used to implement systems, apparatus and methods described herein is illustrated in
Processor 1501 may include both general and special purpose microprocessors, and may be the sole processor or one of multiple processors of computer 1500. Processor 1501 may include one or more central processing units (CPUs), for example. Processor 1501, data storage device 1502, and/or memory 1503 may include, be supplemented by, or incorporated in, one or more application-specific integrated circuits (ASICs) and/or one or more field programmable gate lists (FPGAs).
Data storage device 1502 and memory 1503 each include a tangible non-transitory computer readable storage medium. Data storage device 1502, and memory 1503, may each include high-speed random access memory, such as dynamic random access memory (DRAM), static random access memory (SRAM), double data rate synchronous dynamic random access memory (DDR RAM), or other random access solid state memory devices, and may include non-volatile memory, such as one or more magnetic disk storage devices such as internal hard disks and removable disks, magneto-optical disk storage devices, optical disk storage devices, flash memory devices, semiconductor memory devices, such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), digital versatile disc read-only memory (DVD-ROM) disks, or other non-volatile solid state storage devices.
Input/output devices 1505 may include peripherals, such as a printer, scanner, display screen, etc. For example, input/output devices 1505 may include a display device such as a cathode ray tube (CRT) or liquid crystal display (LCD) monitor for displaying information to the user, a keyboard, and a pointing device such as a mouse or a trackball by which the user can provide input to computer 1500.
Any or all of the systems and apparatus discussed herein, including collaborative development service 130, user device 160, and components thereof, including web browser 210, display 270, operational transformation rules 333, processor 375, and memory 325, may be implemented using a computer such as computer 1500.
One skilled in the art will recognize that an implementation of an actual computer or computer system may have other structures and may contain other components as well, and that
In accordance with an embodiment, the systems and methods described above may be used to provide a collaborative development service to software developers and to end users. Collaborative development service 130 provides a platform for developers to create and edit a software application. After the software application has been developed, the software application may be maintained at a third party website, such as third party website 112, for example. In one embodiment, collaborative development service 130 is implemented using software residing on a server, for example.
In one embodiment, third party website 112 is associated with an address, such as a Uniform Resource Locator (URL). A link representing the URL may be placed in advertisements or on selected webpages to facilitate the use of the third party software application by end users. A user wishing to access the third party software application may do so by clicking on the link associated with the URL, for example. When a user, employing a user device 160, clicks on such a link, collaborative development service 130 executes the third party software application and allows the user to access functionality of the software application via an embedded frame displayed on the user's device.
Multiple users may use the software application to collaboratively create and edit a document.
In one embodiment, one or more developers may create a software application based on a data model created in a manner such as that described above. The developers may use a pre-built set of data models, mutations, and supporting libraries that may enable them to quickly build highly functional collaborative data models using the collaborative development system platform. These data models are operational transformation ready, highly customizable and provide built-in support for developer-defined operations. These data models also provide built-in support for other features such as those described above (e.g., undo/redo, etc.).
As indicated by the code line 1706, the code may contain comments enclosed in between “//” or blocks of text enclosed in “/* */” characters, as is known. The data model code may also contain a package specifier indicating the closure package to which each data type in the file should be assigned when the file is compiled and data type stanzas consisting of an optional list of @prefixed annotations, a data type name, followed by a pair of braces enclosing a list of field specifications.
Annotations such as @Root which indicates the root data type, shown by code line 1707, are supported by the collaborative development service 130. In one embodiment, exactly one data type must be marked “@Root” and a compilation warning is displayed specifying a data type that is not reachable from @Root.
In one embodiment, field specifications in the code may consist of a data type, a field name, and a semicolon. Acceptable data types include any primitive type name, map, array (optionally parameterized) and any data type name specified in the data model definition. Field names and namespaces must be unique across all files in a compilation run. Package specifications are merely a convenience for the compiled output. Parameterized array data type may be followed by angle brackets containing another data type. This indicates that this array must contain values of a particular type. This may influence the compiler output and adds another level of runtime checking to the compiled code.
When the developer wishes to compile the code, he or she may select an option such as “Compile” button 1705, shown in
In one embodiment, for any collection of inputs, the compiler produces the standard outputs as shown in
Output 1710 represents my.datamodel.DatamodelManager, which is a standard singleton class that provides access to the Root data model object, a data model factory registry (to allow developers to use their own subclasses of generated data model objects), support for developer-defined user operations, and undo/redo support. The DatamodelManager is a required constructor parameter for all other compiler-generated data model classes. At least one customized method may be included to have the return type specified in the data model definition.
Output 1711 represents my.net.CommunicationsManager, which is a standard singleton class that provides hooks for setting up network communication with the collaborative development service 130 and loading the initial data models.
Output 1712 represents my.datamodel.ChangeEvent, which is the event fired when a datamodel object changes.
Output 1713 represents my.datamodel.DatamodelObject, which is the base class of all generated data types. This class includes basic capabilities such as event registration and low-level integration with the DatamodelManager.
Output 1714 represents my.datamodel.ObjectReference, which is a wrapper object that represents a reference to a non-primitive object. This object=contains the string identification (id) of the referenced object.
Output 1715 represents my.datamodel.ArrayObject, which is a subclass of DatamodelObject used to model unparameterized arrays.
Output 1716 represents my.datamodel.MapObject, which is a subclass of DatamodelObject used to model maps.
The compiler may also generate custom files based on a developer's data model definition files. These custom files are described as follows.
File 1717 represents my.datamodel.ParameterizedArray---parameterType which is a subclass of ArrayObject. For each parameterized array type in the data model definition file, a parameterized array type is created. The methods of ParameterizedArray objects are typed to enforce the proper content type, and they include runtime checking to ensure that only objects of the correct type are inserted into the array.
File 1718 represents a user-specified data type which is a subclass of DatamodelObject that is created for each user-defined type in the file. This file contains getter and setter methods for each field in the data model definition. The setter methods are tied into the DatamodelManager, so that whenever a field is “set”, the appropriate mutation is generated, applied to the data model, added to the undo stack, and communicated to the server. Every DatamodelObject may support two closure event types: my.datamodel.ChangeEvent.Type.CHANGED, which fires whenever the object changes, and my.datamodel.ChangeEvent.TypeDESCENDANT_CHANGED, which fires whenever any descendant object changes.
The ChangeEvent contains the mutations that represent the change that occurred. Because object graphs can be arbitrarily complex, the DESCENDANT_CHANGED event may have complex behavior. In a cyclic object graph, a change to a parent object may cause a DESCENDANT_CHANGED event to fire. This event may only fire once per object per mutation, even if the change affects an object that is a descendant of the target object via multiple paths.
After the developer compiles a software application, the developer may offer the software application for sale, offer the software application for use, or otherwise make the software application available, to end users. In one embodiment, a software application may be uploaded onto a third party website, where other users may access it in a manner described below. The software application, a portion of the application, and/or a document created using the application may be embedded within a website or webpage hosted by collaborative development service 130, in a known manner. For example, a software application may be embedded as an IFrame on the webpage. Other frames and/or applications may be embedded onto the webpage. In one embodiment, the contents of the webpage with the exception of the embedded IFrame are static and/or the same for all applications. The contents may include but are not limited to items such as hyperlinks, menu buttons, graphics, text, etc. Methods of embedding a software application, or a document, as an IFrame on a webpage are known.
When collaborative development service 130 embeds a third party software application on a webpage, a user may view the application running within the IFrame, and any related documents, on his/her browser. In one embodiment, the application may be a word processing application and the user may create and/or otherwise access a document using the word processing application. In another embodiment, the application may be a music editor and the client may create and/or otherwise access an existing or new notes editor document. The notes editor document may contain many different fields which may be edited by the user. Other types of applications and documents may be used.
In one embodiment, one or more users may access and/or use a third party software application via collaborative development service 130. For example, a third party software application may be created by one or more developers and made available via a third party website. The developers may, for example, advertise the application on the third party website or webpage. In another embodiment, the third party software application, or a Uniform Resource Locator (URL) associated with the software application, may be listed, or otherwise made available for purchase or use, in a software application store available online. A user may access the third party software application by clicking on a URL associated with the application, for example. In one embodiment, when a user(s) employing a user device 160 clicks or otherwise accesses the URL, the user(s) is/are directed to a webpage hosted by collaborative development service 130.
In one embodiment, when the user clicks on a URL associated with the third party software application, the user downloads the application or otherwise loads the application onto his/her user device. The application may then be represented as an icon, or appear as a new menu item in a list of items on a webpage hosted by the collaborative development service 130. The webpage may list, for example, all applications purchased and/or downloaded by the user. The application is loaded onto the user's browser as an embedded IFrame in a manner such as that described above, and a document created using the application may be accessed by the user at anytime using any one or combination of a number of devices having access to the Internet.
In an embodiment illustrated in
Browser window 1903 includes a parent frame 1907 and an embedded IFrame 1902. In one embodiment, browser window 1903 may include one or more frames that contain the same universal information as browser window 1903 (or parent frame 1907), regardless of what application is embedded within IFrame 1902.
Browser window 1903 communicates with embedded frames using interframe communication. In order for browser window 1903 to communicate with embedded IFrame 1902, event notifications are sent in the direction shown by 1905. Event notifications may be sent without an explicit request and include mutations, as described above, received from collaborative development service 130 and information about users that have joined and/or left the document. This one-way communication of events allows for a secure system.
Remote procedure calls (RPCs) 1906 are sent to and/or from the browser window 1903 to embedded IFrame 1902. The RPCs may be in the form of requests that are sent from a developer code/application document to parent frame 1907. The RPCs may also be responses that are sent back from the parent code to the developer code including document mutations, request for information about users, etc. Methods of interframe communication are known.
In one embodiment, a third party application and/or a document embedded on IFrame 1902 communicates with parent frame 1907 using cross-frame messaging which passes messages between parent frame and collaborative development service 130. In one embodiment, for purposes of security, mutations generated by a third party application embedded in the IFrame are prohibited from directly communicating with collaborative development service 130. In this way, security measures are implemented to ensure that untrusted, unverified or otherwise unsecure data is not transmitted directly to collaborative development service 130.
The request is then forwarded from the trusted parent frame 1907 to collaborative development service 130, where the request may be handled appropriately, at step 1993. In one embodiment, the request (or message containing the request) is communicated via asynchronous Javascript and Extensible Markup Language (XML) (shown as 1909 in
In one embodiment, a one-way communication is made from parent frame 1907 to the third party application. This communication may relate to any event including a notification sent without an explicit request including mutations received from collaborative development service 130, and information about users (whether a user has joined or left a third party application document), etc. The methods and systems as depicted by
Referring again to
The plurality of users subsequently send respective instructions 2001 and to edit object instance “helloworld” 1803, in
Communication is carried out among frames on user device 160, and between user device 160 and collaborative development service 130, in order to implement changes received by the user of the user device as well as changes received by users of other devices.
Another embodiment in which multiple users use collaborative development service 130 to collaboratively edit a document is illustratively depicted in
In this embodiment, a plurality of users wish to collaborate to write a song. The users may access a blank or partially filled staff-sheet within document 2301. While the users are creating and editing the song, an indicator such as 2302 may indicate to the users that they are in an editing mode. Thus, the users may see text, graphics, etc. stating “Edit Composer” or the like.
In one embodiment, two users, Jan and Joey, wish to compose a new song together. Jan and Joey are located 500 miles apart from each other and wish to use collaborative development service 130 to create their new song. Jan and Joey may place musical notes on the staff by clicking on a location and placing the note on that location. As shown in
In one embodiment illustratively depicted by
Jan and Joey now insert lyrics into the song. The lyrics correspond to the notes. Specifically, Jan and Joey may select an icon 2601 labeled “lyrics” to insert the desired lyrics on of the staff as shown in
At this point, Jan and Joey may collaborate further to complete their song, as depicted by
In one embodiment, Jan wishes to make a change to the musical notes editor document and sends instructions to the document indicating the change she wants to make. The change is communicated by RPCs from the application document to the parent frame to a server(s) of collaborative development service 130. In this way, even though Jan has changed some part of the song she is writing locally, the change does not go into effect on all user devices (such as Joey's user device) until the change has been accepted by collaborative development service 130. Such hierarchy ensures the safety of collaborative development service 130 (and/or a server associated with collaborative development service 130) as each user is prohibited from directly communicating with collaborative development service 130. Additionally, such a hierarchy protects against malicious attacks by an untrusted party.
Additionally, users are provided with the following features. Such features may be available to user, of any third party application that is created and accessed using collaborative development service 130.
In one embodiment, users are collaborating on a creating a project, such as writing a song, may utilize a chat feature. In one embodiment, users may wish to conduct a transient discussion on the side of the application in a chat window, for example. The chat window may be located anywhere on the users' screens.
In one embodiment, users may view all changes made to a document by viewing the revision history. The revision history may show a time stamp of when edits were made. For example, if Joey deleted notes and lyrics from the music editor document, Jan may view the revision history indicative of Joey's edits. Thus, Jan and Joey may access any version of the document at anytime. In one embodiment, Jan and Joey are provided with a list of actions performed including the name of the user that performed the action, the date and time the action was performed and what the user did. If Jan wishes to access lyrics that were created for the song in the past, she may do so at any time without affecting the current state of the song. Also, Jan may restore the song to an earlier state and have the option of restoring it to the current state or any other state at any time.
Users may access other functions, and the revisions are not limited to revisions to text. The revision history function may also show any comments created by the users. In one embodiment, the users may revert to an earlier version of the document by selecting a particular revision history session. Restoring the document to an earlier version of the document does not delete the current version of the application; rather, all versions are viewable and selectable by the users at any time.
Collaborative development service 130 may be used by enterprise-level clients to manage documents and data. In accordance with an embodiment, an enterprise-level client may specify a policy to govern the management of data and documents. In response, collaborative development service 130 manages the client's documents in accordance with the client-specified policy. For example, if an employee of the enterprise generates a document via collaborative development service 130, the document is managed in accordance with the policy specified by the enterprise. In another example, if an employee of the enterprise creates a software application via collaborative development service 130, the software application, including any related code or other data, is managed in accordance with the policy specified by the enterprise.
An enterprise may, for example, grant various access rights to various categories of employees with respect to documents and data. Certain employees may be granted read-only access, other employees may be granted reading and editing rights, other employees may be granted administrator rights, etc. Referring to
For example, in one embodiment, an enterprise may specify a policy governing the storage of data and documents created using collaborative development service 130.
The policies established by Enterprise XYZ are now applied to data, documents, and software generated by any employee of the enterprise. At step 3010, an enterprise associated with a user of an online service is identified. Thus, when an employee of Enterprise XYZ accesses collaborative development service 130, collaborative development service 130 determines that the employee is associated with Enterprise XYZ. For example, collaborative development service 130 may identify the individual as an employee of Enterprise XYZ based on his or her username. At step 3020, a data management policy associated with the enterprise is determined. Collaborative development service 130 accordingly retrieves from memory data defining the data management policy of Enterprise XYZ. In this example, collaborative development service 130 retrieves the policy specifying that certain data must be stored in France.
At step 3030, the user is provided access to a third party software application. In the illustrative embodiment, the employee accesses third party application 400 via collaborative development service 130 in the manner described above, and generates one or more documents. The employee may collaborate with other employees of Enterprise XYZ to edit the documents in a collaborative manner, as described above. For example, the employee, and one or more of the employee's co-workers, may access third party software application 400 via collaborative development service 130 and create a text document. The employee and his or her co-workers may subsequently edit the document in a collaborative manner, in the manner described above. In other embodiments, the employee and his or her co-workers may create and edit other types of documents associated with other content types.
At step 3040, data generated by the third party application is managed in accordance with the data management policy. Accordingly, when the employee accesses third party software application 400 and creates a document meeting the criteria specified in the policy, collaborative development service 130 stores the document in a storage device located in the location specified by the policy, for example, in France. If the employee edits the document, all versions and copies of the document are stored within the territory of France. If the employee accesses third party application 400 and generates other data (or software) that meet the policy's specified criteria, the data is stored within the territory of France, in accordance with the policy of Enterprise XYZ.
In another embodiment, users collaborating to edit a document may each view and track certain information concerning the other users. Such information may include, for example, the date and time another user joined and left the collaboration (i.e., accessed a document or software application), presence information relating to another user in the document or application, activities of another user, revisions made by another user, and another user's audit trail. Collaborative development service 130 may provide such data based on information stored in activity table 428, for example. Additionally, a user may view the location of another user's cursor in the document in real-time.
Collaborative development service 130 also provides an auditing service whereby specified documents and data may be analyzed based on criteria specified by the client to determine whether the management of the documents and data are in compliance with the client's policies, or whether the documents or data are in compliance with any other rules or regulations. Collaborative development service 130 also provides an encryption service that may be used in connection with an audit of the client's documents and data. For example, in response to a client request that specified documents and data (pertaining to an audit) be encrypted, collaborative development service 130 identifies the requested documents and data, and encrypts the documents and data.
In accordance with an embodiment, a client may direct that collaborative development service 130 identify data and documents meeting certain criteria and produce such data and documents in electronic form. This service may be used, for example, by an enterprise involved in a litigation, in response to a discovery request received from an adversary. The enterprise may specify one or more criteria to be used as a basis for identifying relevant documents. For example, an enterprise may request that a search be performed to identify all documents that contain the name “John Doe,” all design documents pertaining to a particular product, etc.
The enterprise may accordingly access collaborative development service 130 and specify one or more criteria. In response, collaborative development service 130 searches the client's documents and other data based on the specified criteria, and provides the documents and data resulting from the search to the client. The results of the search may be provided in any one of a variety of formats, such as a list of documents, a database containing list of links to documents, etc.
In another embodiment, collaborative development service 130 provides a full text indexing capability to clients. For example, any part of a document maintained at collaborative development service 130 may be indexed for use in a full-text indexing search, regardless of the content type. In one embodiment, the indexing may be performed automatically with respect to all user-entered text. In order to perform full-text indexing, optical character recognition (OCR) or the like may be implemented with respect to newly created text or other items input by users. This service may allow a client to perform a keyword search. Such capabilities may be provided automatically to clients by collaborative development service 130. In another embodiment, full-text indexing may be provided with respect to non-text content.
Unlike existing methods and systems, the systems and methods described above advantageously allow an enterprise-level client of an online document processing service, such as collaborative development service 130, to establish policies that are applicable to all or a selected portion of the client's data and documents. Advantageously, auditing and verification services are also provided.
In accordance with an embodiment, employees of a client may use a discussion feature to attach comments relating to a particular node of an object within a document. A discussion thread may also be attached to a particular node of an object. The comment or discussion thread is attached to the particular node. Comments and discussion threads may be added in this manner within a document regardless of the content type. For example, in a text document, an employee may place his or her cursor at a particular character in a text document and attach a comment to that particular character. In an image, an employee may place a cursor at an object within the image and attach a comment or discussion thread to the object. An employee developing a software application may attach a comment or discussion thread to a selected component of a data model.
In accordance with an embodiment, a document and related data may be stored in a user device 160, to enable a user of the user device to edit the document while offline. For example, documents may be stored locally on a user device using HTML5 offline storage.
In accordance with an embodiment, an end user who accesses a particular third-party software application may be provided a choice of software add-ons that are compatible with and may be attached to the software application. Inputs generated by the add-on are handled in a manner similar to inputs from a collaborating end user.
In an illustrative embodiment shown in
While using software application 1801, the end user is provided a choice of which third party add-ons to attach to the software application. Specifically, a gallery 3302 of add-ons may be displayed on a webpage. In one embodiment as shown in
In an embodiment, a third party add-on may be an extension of a third party software application. In one embodiment, a third party add-on may be a plug-in, a hook, or a script that enhances or adds to the features of the software application. In another embodiment, a third party add-on may not run independently of the software application. In one embodiment, a third party add-on associated with a software application is determined to be compatible with the software application. In an embodiment, a third party add-on may be compatible with a plurality of software applications; for example, a third party add-on may be compatible with all of the third party software applications made available to end users via collaborative development service 130. Thus, any third party add-on may be attached universally to any software application offered by collaborative development service 130 and such a third party add-on is not application specific.
In the embodiment of
In the embodiment of
In the illustrative embodiment, the end user selects install button 3308 in order to install add-on 3306. When installed, the add-on is attached to the third-party software application 1801. In another embodiment, the end user may choose more than one add-on to be installed. The end user may be offered a license agreement for the chosen add-on(s) which may require authorization from the user prior to installation.
After an add-on is installed, the end user may access the application with the add-on(s) attached thereon. In one embodiment, when the end user subsequently opens the application, the add-on is executed with the application. In one embodiment, the add-on may be executed with a plurality of applications accessed by the end user.
An example of a generic add-on that may be universally used by any application offered by collaborative development service 130 is a print layout add-on. After the add-on has been installed, the application(s) contains features offered by the print layout add-on. For example, the print layout add-on may offer support for printing documents on various paper sizes, envelopes, labels, etc.
Returning now to the method of
At step 3203, a first change to the document is received from an end user of the software application, via interframe communication. In the illustrative embodiment, collaborative development service 130 receives a first change to the document from an end user of the software application, via interframe communication. For example, a user of user device 160-A may edit an object instance such as a word within document 3301.
Referring now to
At step 3204, a third party add-on associated with the software application is executed. In the illustrative embodiment, add-on 3306 is executed while the end user accesses third party software application 1801 and document 3301. In an embodiment, the add-on is capable of modifying the data model associated with the software application. For example, an add-on may edit an instance of an object within a document.
In one embodiment, an add-on may be executed by JavaScript code, for example. When the add-on is installed and executed as part of the software application, the process is substantially seamless and the end user's interaction with collaborative development service 130 is substantially uninterrupted.
At step 3205, a second change to the document is received from the third party add-on, via interframe communication. Thus, collaborative development service 130 receives a second change to the document from the third party add-on, via interframe communication. As shown in
Similar to the embodiment depicted by
At step 3206, one or more transformed operations are generated based on the first and second changes. Thus, collaborative development service 130 generates one or more transformed operations based on the change received from add-on 3306 and the change received from the end user. Collaborative development service 130 applies operational transformations, as necessary, to generate one or more transformed operations, based on these changes, in the manner discussed above
As both the instructions 3408 and 3406 are received by collaborative development service 130 at approximately the same time or one after another, operational transformation rules are applied, in a manner such as that descried above. Further, instead of redrawing the object instance twice to append letters “e” and “x,” only a single redraw combining both the letters “e” and “x” may be determined and performed in a manner such as described above. At step 3207, the one or more transformed operations are applied to the document to reflect the first and second changes. In the illustrative example, “e” and “x” are appended to the object instance “helloworld” 1803 and an updated object instance “helloworldex” 2101 is displayed, as shown in
Collaborative development service 130 communicates the transformed operations to user device 160. The transformed changes to the document, including a transformed version of the first change and a version of a second change, are received by the end user device via interframe communication. The parent frame receives the information specifying the transformed operations, and communicates the operations to the third party application via the embedded frame.
Th end user device applies the transformed operations received from collaborative development service 130 to update the visual representation of the document. Specifically, the visual representation of object instance 1803 displayed in the embedded IFrame within the user's browser window, if there is only one user, or each of the user's browser windows, if there are multiple users, is updated.
In one embodiment, the end user may select a second third party add-on associated with the software application to install. The second third party add-on is executed, in a manner similar to that described above. For example, the end user may select the second third-party add-on from the add-ons that have been determined to be compatible with the software application and which are displayed in gallery 3302.
In one embodiment, the end user may send a command to collaborative development service 130 to store a second document generated by a second software application. If collaborative development service 130 determines that the third party add-on previously installed is compatible with the second software application, collaborative development service 130 may attach the third party add-on to the second software application. Collaborative development service 130 may then execute the second application and the attached third party add-on.
In one embodiment, messages and mutations are communicated via interframe communication as described above. In one embodiment, if a single end user is communicating both the first and second changes to the document, the changes are handled in a manner similar to that described above with respect to multiple users editing a document. In an embodiment having a single end user editing a document, changes or inputs received from an add-on are handled in the same manner as changes made by a second user.
By using interframe communication, security risks to collaborative development service 130 are advantageously minimized. Further, use of interframe communication allows collaborative development service 130 to run untrusted code of third party add-ons without compromising the safety and integrity of the servers. The code may be stored on servers associated with collaborative development service 130, or alternatively may be hosted by another server (such as a server associated with a developer that has created the third party add-on).
Allowing add-ons to be selected and used in the manner described above enables any user to customize a software application by developing or installing an add-on to the application.
Referring again to the embodiment described above, in which Jan and Joey collaborated to develop a song, suppose now that Jan, working alone, has finalized the first line of her song and wishes to install one or more add-ons to the music editor application. As shown in
For example, the first add-on 3306 may be an add-on that converts the notes created by Jan and plays the notes in manner that simulates a selected musical instrument. Supposing that Jan wishes to hear the how the musical notes of her song sound when played using a guitar, Jan may select a Guitar button 3504 to listen to her song played using a guitar. Alternatively, Jan may select Piano button 3505 to listen to her song played using a piano. Add-on 3306 may convert the notes to a Musical Instrument Digital Interface (MIDI) file, for example, so that Jan can listen to her song.
In the illustrative embodiment, Jan also installs second add-on 3310 which converts the lyrics of her song. Jan may select Male Voice button 3508 to listen to her lyrics sung by a male's voice. Alternatively, Jan may select Female Voice button 3509 to listen to her lyrics sung by a female's voice.
Suppose that after installing add-ons 3306 and 3310, Jan is inspired to write a second line to her song. Jan enters the notes and lyrics in a manner similar to that described above. Instructions for additional notes and lyrics to be placed in document 2301 are transmitted to collaborative development service 130 via interframe communication. As described above, transformed operations are generated based on changes to document 2301 received from Jan and by inputs received from add-ons 3306 and 3310, as appropriate, and applied to the document to reflect the changes.
In one embodiment, the first instruction is received by collaborative development service 130 from the first user device in real-time. Specifically, for each alphanumeric character typed (or deleted) by the first user, the first user device transmits a respective instruction representing the addition/deletion of the character to collaborative development service 130. Similarly, the second instruction is received from the second user device in real-time. Specifically, for each alphanumeric character typed by the second user, the second user device transmits a respective instruction representing the character to collaborative development service 130. Collaborative development service 130 determines whether any operational transformations are necessary, performs operational transformations, and transmits instructions to the first and second user devices specifying the transformed operations in real-time relative to receipt of the first and second instructions.
The foregoing Detailed Description is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the principles of the present invention and that various modifications may be implemented by those skilled in the art without departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention.
This application is a continuation-in-part of U.S. patent application Ser. No. 13/224,479 filed Sep. 2, 2011, which is incorporated by reference herein in its entirety. This application is related to U.S. patent application Ser. No. 13/224,530 filed Sep. 2, 2011; U.S. patent application Ser. No. 13/224,573 filed Sep. 2, 2011; U.S. patent application Ser. No. 13/224,663 filed Sep. 2, 2011; U.S. patent application Ser. No. 13/224,769 filed Sep. 2, 2011; U.S. patent application Ser. No. 13/224,860 filed Sep. 2, 2011, U.S. patent application Ser. No. ______ filed ______ [attorney docket number 14570.0035]; U.S. patent application Ser. No. ______ filed ______ [attorney docket number 14570.0044]; and U.S. patent application Ser. No. ______ filed ______ [attorney docket number 14570.0048] which are incorporated by reference herein in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 13224479 | Sep 2011 | US |
Child | 13551859 | US |