CPC G06F 8/427 (2013.01) [G06F 8/38 (2013.01); G06F 8/71 (2013.01); G06F 8/73 (2013.01)] | 15 Claims |
1. A method for defining code-based policies, the method comprising:
generating a policy-builder first view of a policy for display in a graphical user interface (GUI) by processing a syntax tree that is generated from a code second view of the policy;
receiving, through the policy-builder first view, a modification to a portion of the policy;
to reflect the modification, updating a portion of the syntax tree that corresponds to the portion of the policy that is affected by the modification; and
based on the updated syntax tree, updating the code second view by modifying a portion of the code second view that corresponds to the updated portion of the syntax tree, wherein said updating the code second view comprises:
converting the updated syntax tree into a set of human-readable source code;
comparing the set of human-readable source code with a set of source code from the code second view within the affected range in order to identify differences; and
computing a patch comprising the identified differences to be merged with the set of source code in order to update the code second view.
|