mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Custom property (UIPropertySheet) support added to User Profile/Edit User Profile screens, New/Edit User summary screen improvements
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7486 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -342,6 +342,7 @@ public class UsersDialog extends BaseDialogBean implements IContextListener
|
||||
}
|
||||
|
||||
node.addPropertyResolver("sizeLatest", this.resolverUserSizeLatest);
|
||||
node.addPropertyResolver("quota", this.resolverUserQuota);
|
||||
|
||||
this.users.add(node);
|
||||
}
|
||||
@@ -375,6 +376,13 @@ public class UsersDialog extends BaseDialogBean implements IContextListener
|
||||
}
|
||||
};
|
||||
|
||||
public NodePropertyResolver resolverUserQuota = new NodePropertyResolver() {
|
||||
public Object get(Node personNode) {
|
||||
Long quota = (Long)personNode.getProperties().get("sizeQuota");
|
||||
return (quota != null && quota != -1L) ? quota : null;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Action handler to show all the users currently in the system
|
||||
*
|
||||
@@ -390,6 +398,7 @@ public class UsersDialog extends BaseDialogBean implements IContextListener
|
||||
for (Node node : this.users)
|
||||
{
|
||||
node.addPropertyResolver("sizeLatest", this.resolverUserSizeLatest);
|
||||
node.addPropertyResolver("quota", this.resolverUserQuota);
|
||||
}
|
||||
|
||||
// return null to stay on the same page
|
||||
|
Reference in New Issue
Block a user