Hi All, As part of EMM 2.1.0 Release, we are currently in the process of migrating its UI from UUF 0.1 to UUF 0.2, which is a much-optimized version of UUF in terms of performance.
As part of the same migration effort, many UI controller modules @ org.wso2.carbon.device.mgt.ui component layer were subjected to update by their names and level of organization, apart from any code-level improvements. This mail is to update all on the corresponding changes. Figure 1 shows the original organization of these modules in a flat hierarchy with less emphasize on accurately showing their correct context of relevance and intended functionality. *Figure 1: Original Organization of UI Controller modules- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -* Following updates (see figure 2) have been made to most of these modules in terms of their names and the level of organization to overcome the mentioned issue and improve clarity. [1] pinch.min.js @ modules and mdm-props.js @ conf were brought into one module called "conf-reader" and mdm-props.js was renamed to main.js : "conf-reader" module can be used to read application specific configuration details @ conf/config.json [2] api-wrapper-util.js which contained all the main OAuth token handling functions was renamed to "token-handlers.js". util.js which contained all the supportive functions for OAuth token handling @ "token-handlers.js" was renamed to "token-handler-utils.js". backend-service-invokers.js which contained all the utility functions for invoking token-protected-backend-services was renamed to "token-protected-service-invokers.js". Since all these modules are related to OAuth, they were grouped as one "oauth" module. [3] device.js, group.js, operation.js, policy.js and user.js which contained all the utility functions for manipulating device-mgt specific business data from backend services for the use of UI were grouped in as one set of controllers called "business-controllers". [4] invoker-request-wrapper.js and user-info.js were made obsolete and removed as they had no usage at all by dependent sources. *Figure 2: New Organization of UI Controller modules* *- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -* In the meantime, rest of the modules, namely constants.js, init.js, login.js and utility.js are still under consideration for any improvement or refactoring as the next part of this work. Cheers, Dilan. *Dilan U. Ariyaratne* Senior Software Engineer WSO2 Inc. <http://wso2.com/> Mobile: +94766405580 <%2B94766405580> lean . enterprise . middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev