"library" :\r
[\r
{\r
- "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json"\r
+ "manifest" : "${QOOXDOO_PATH}/framework/Manifest.json",\r
+ "uri" : "../qooxdoo-sdk/framework"\r
},\r
{\r
- "manifest" : "${RIA_LIB_PATH}/security/Manifest.json"\r
+ "manifest" : "${RIA_LIB_PATH}/security/Manifest.json",\r
+ "uri" : "${RIA_LIB_URI}/security"\r
},\r
{\r
- "manifest" : "${ROOT}/Manifest.json"\r
+ "manifest" : "${ROOT}/Manifest.json",\r
+ "uri" : "."\r
}\r
],\r
\r
{\r
"extend" : ["common"],\r
\r
- "compile-source" :\r
+ "compile-options" :\r
{\r
- "file" : "${ROOT}/script/${APPLICATION}.js",\r
- "locales" : "${LOCALES}",\r
- "root" : "${ROOT}",\r
- "gzip" : false\r
- }\r
+ "paths" : \r
+ {\r
+ "file" : "${ROOT}/script/${APPLICATION}.js",\r
+ "root" : "${ROOT}",\r
+ "resource" : "resource",\r
+ "gzip" : false\r
+ },\r
+ "code" : \r
+ {\r
+ "locales" : "${LOCALES}"\r
+ }\r
+ },\r
+ \r
+ "compile" : { "type" : "source" }\r
},\r
\r
\r
"qx.debug" : ["off"]\r
},\r
\r
- "compile-dist" :\r
+ "compile-options" :\r
{\r
"paths" :\r
{\r
"locales" : "${LOCALES}",\r
"optimize" : ["variables", "basecalls", "privates", "strings"]\r
}\r
- /*\r
- "file" : "${BUILD_PATH}/script/${APPLICATION}.js",\r
- "target" : "${BUILD_PATH}",\r
- "uri" : "script/${APPLICATION}.js",\r
- "root" : "${BUILD_PATH}",\r
- "format" : "on",\r
- "locales" : "${LOCALES}",\r
- "optimize" : ["basecalls", "variables", "privates", "strings"]\r
- */\r
- }\r
+ },\r
+ "compile" : { "type" : "build" }\r
},\r
\r
\r
<artifactId>maven-argeo-qooxdoo-plugin</artifactId>
<version>${version.maven-argeo-qooxdoo}</version>
<configuration>
- <sdkVersion>0.8.3</sdkVersion>
+ <sdkVersion>1.1.0</sdkVersion>
</configuration>
<executions>
<execution>
*/\r
/* ************************************************************************\r
\r
-#asset(resource/org.argeo.security.ria/*)\r
+#asset(org/argeo/security/ria/*)\r
\r
************************************************************************ */\r
\r
\r
statics : {\r
LABEL : "RIA Security",\r
- ICON : "org.argeo.security.ria/preferences-security.png",\r
+ ICON : "org/argeo/security/ria/preferences-security.png",\r
ACCESS:"!ROLE_ANONYMOUS"\r
},\r
\r
* The only associated command is the "Close" command.
*/
/* *************************************************
-#asset(resource/org.argeo.ria.sample/window-close.png)
+#asset(org/argeo/ria/sample/window-close.png)
****************************************************/
qx.Class.define("org.argeo.security.ria.RolesApplet",
{
init : {
"reload" : {
label : "Reload Data",
- icon : "org.argeo.security.ria/view-refresh.png",
+ icon : "org/argeo/security/ria/view-refresh.png",
shortcut : "Control+h",
enabled : true,
menu : "Roles",
},
"new_role" : {
label : "Create Role",
- icon : "org.argeo.security.ria/list-add.png",
+ icon : "org/argeo/security/ria/list-add.png",
shortcut : null,
enabled : true,
menu : "Roles",
},
"delete_role" : {
label : "Delete Role",
- icon : "org.argeo.security.ria/list-remove.png",
+ icon : "org/argeo/security/ria/list-remove.png",
shortcut : null,
enabled : true,
menu : "Roles",
},
"edit_role" : {
label : "Edit Role",
- icon : "org.argeo.security.ria/document-properties.png",
+ icon : "org/argeo/security/ria/document-properties.png",
shortcut : "Control+r",
enabled : true,
menu : "Roles",
this.rolesUsersStub = {"ROLE_ADMIN":["gandalf"],"ROLE_USER":["demo","frodo","gandalf"]};
- this.toggleButton = new qx.ui.form.ToggleButton("Filter", "org.argeo.security.ria/go-next.png");
+ this.toggleButton = new qx.ui.form.ToggleButton("Filter", "org/argeo/security/ria/go-next.png");
this.toggleButton.set({
show:"icon",
margin:2,
this.setGuiMode(event.getData()?"filter":"clear");
}, this);
- this.saveButton = new qx.ui.form.Button("Save", "org.argeo.security.ria/document-save.png");
+ this.saveButton = new qx.ui.form.Button("Save", "org/argeo/security/ria/document-save.png");
this.saveButton.set({
show:"icon",
margin:2,
visibility : "excluded"
});
- this.cancelButton = new qx.ui.form.Button("Cancel", "org.argeo.security.ria/window-close.png");
+ this.cancelButton = new qx.ui.form.Button("Cancel", "org/argeo/security/ria/window-close.png");
this.cancelButton.set({
show:"icon",
margin:2,
* The only associated command is the "Close" command.
*/
/* *************************************************
-#asset(resource/org.argeo.security.ria/*)
+#asset(org/argeo/security/ria/*)
****************************************************/
qx.Class.define("org.argeo.security.ria.UserEditorApplet",
{
init : {
"save_user" : {
label : "Save",
- icon : "org.argeo.security.ria/document-save.png",
+ icon : "org/argeo/security/ria/document-save.png",
shortcut : "Control+s",
enabled : true,
menu : "Users",
},
"add_nature" : {
label : "Add Nature ...",
- icon : "org.argeo.security.ria/list-add.png",
+ icon : "org/argeo/security/ria/list-add.png",
shortcut : null,
enabled : true,
menu : "Natures",
},
"remove_nature" : {
label : "Remove Nature",
- icon : "org.argeo.security.ria/list-remove.png",
+ icon : "org/argeo/security/ria/list-remove.png",
shortcut : null,
enabled : true,
menu : "Natures",
},
"close" : {
label : "Close",
- icon : "org.argeo.security.ria/window-close.png",
+ icon : "org/argeo/security/ria/window-close.png",
shortcut : "Control+w",
enabled : true,
menu : "Users",
"commandId" : natures[key]
});
}
- commands["add_nature"].command.setMenu(newMenu);
+ commands["add_nature"].command.setMenuDef(newMenu);
}, this);
natureButton.setShow("icon");
* The only associated command is the "Close" command.
*/
/* *************************************************
-#asset(resource/org.argeo.security.ria/*)
+#asset(org/argeo/security/ria/*)
****************************************************/
qx.Class.define("org.argeo.security.ria.UsersApplet",
{
init : {
"new_user" : {
label : "New User",
- icon : "org.argeo.security.ria/list-add.png",
+ icon : "org/argeo/security/ria/list-add.png",
shortcut : "Control+n",
enabled : true,
menu : "Users",
},
"delete_user" : {
label : "Delete User",
- icon : "org.argeo.security.ria/list-remove.png",
+ icon : "org/argeo/security/ria/list-remove.png",
shortcut : "Control+d",
enabled : true,
menu : "Users",
},
"edit_user" : {
label : "Edit User",
- icon : "org.argeo.security.ria/document-properties.png",
+ icon : "org/argeo/security/ria/document-properties.png",
shortcut : "Control+u",
enabled : true,
menu : "Users",
},
_applyGuiMode : function(newMode, oldMode){
- this.table.getSelectionModel().clearSelection();
+ this.table.getSelectionModel().resetSelection();
this.resetHiddenRows();
if(newMode == "filter"){
this.table.getSelectionModel().setSelectionMode(qx.ui.table.selection.Model.SINGLE_SELECTION);
loadUsersList : function(){
var selectionModel = this.table.getSelectionModel();
- selectionModel.clearSelection();
+ selectionModel.resetSelection();
var request = org.argeo.security.ria.SecurityAPI.getListUsersService();
request.addListener("completed", function(response){
var jSon = response.getContent();
applySelection : function(selectionValue, target, ignoreCase){
var selectionModel = this.table.getSelectionModel();
- selectionModel.clearSelection();
+ selectionModel.resetSelection();
if(!selectionValue){
return;
}
},
applyFilter : function(filterValues, target, ignoreCase){
- this.table.clearSelection();
+ this.table.resetSelection();
this.resetHiddenRows();
for(var i=0;i<filterValues.length;i++){
this.tableModel.addRegex("^((?!"+filterValues[i]+").)*$", target, ignoreCase);
* The only associated command is the "Close" command.
*/
/* *************************************************
-#asset(resource/org.argeo.security.ria/*)
+#asset(resource/org/argeo/security/ria/*)
****************************************************/
qx.Class.define("org.argeo.security.ria.components.UserEditor",
{
this.fakePane.setMarginTop(30);
this.add(this.fakePane, {flex:1});
- title = new qx.ui.basic.Atom("User Details", "org.argeo.security.ria/preferences-users.png");
+ title = new qx.ui.basic.Atom("User Details", "org/argeo/security/ria/preferences-users.png");
title.setFont(qx.bom.Font.fromString("16px sans-serif bold"));
this.buttonGB.add(title);
this.buttonGB.add(new qx.ui.core.Spacer(), {flex:1});
- var title2 = new qx.ui.basic.Atom("User Natures", "org.argeo.security.ria/identity.png");
+ var title2 = new qx.ui.basic.Atom("User Natures", "org/argeo/security/ria/identity.png");
title2.setFont(qx.bom.Font.fromString("16px sans-serif bold"));
this.natureButtonGB.add(title2);
this.natureButtonGB.add(new qx.ui.core.Spacer(), {flex:1});
page.add(new qx.ui.container.Scroll(newClass.getContainer()), {edge:"center"});
buttons = new qx.ui.container.Composite(new qx.ui.layout.HBox(5, "center"));
- var editB = new qx.ui.form.Button("Edit this Nature", "org.argeo.security.ria/document-properties-22.png");
- var saveB = new qx.ui.form.Button("Save", "org.argeo.security.ria/dialog-apply.png");
- var cancelB = new qx.ui.form.Button("Cancel", "org.argeo.security.ria/dialog-cancel.png");
+ var editB = new qx.ui.form.Button("Edit this Nature", "org/argeo/security/ria/document-properties-22.png");
+ var saveB = new qx.ui.form.Button("Save", "org/argeo/security/ria/dialog-apply.png");
+ var cancelB = new qx.ui.form.Button("Cancel", "org/argeo/security/ria/dialog-cancel.png");
buttons.add(editB);
buttons.add(saveB);
buttons.add(cancelB);
this.setSelfEdition(true);\r
this.initGUI(); \r
this.basicGB.setVisibility("excluded");\r
- var saveButton = new qx.ui.form.Button("Save", "org.argeo.security.ria/document-save.png");\r
+ var saveButton = new qx.ui.form.Button("Save", "org/argeo/security/ria/document-save.png");\r
saveButton.addListener("execute", this.saveUser, this);\r
this.buttonGB.add(saveButton);\r
var authService = org.argeo.ria.session.AuthService.getInstance();\r
},\r
\r
getPrefIcon : function(){\r
- return "org.argeo.security.ria/preferences-users.png";\r
+ return "org/argeo/security/ria/preferences-users.png";\r
} \r
}\r
});
\ No newline at end of file