Powered By Blogger

Sunday, July 25, 2010

Things to take care related to roles in Alfresco

1. Dont use the admin to test any functionality.To avoid access denied exception.
2. Always while developing do the role based development
Dont keep it for the end.
3. Use the below code to check whether user belongs to particular group or not

final String _user = AuthenticationUtil.getRunAsUser();
AuthenticationUtil.setRunAsUserSystem();

AuthenticationUtil.setRunAsUser(_user);
return _groupSet;
4. Dont invite any user to any folder manually
5. Start development in IE6, to avoid the fixes to be done in the later stage.
6. Before starting development know each and every field, from where that data is going to come, what all are the validations to be done for the field. And where this field will be useful.

7. To start the development finalize the content model, aspects and how to use them
8. All the properties of content model have to be picked from the constant file and for all the propereties kept in the model fil Qname has to be created
9. Based on the functionalities and the modules to be designed create different model files.
10. Based on the functionality ot the modulr follow the naming conventions so that code can be easily maintained.
11. If you have to display any proerty to the front end then pass the noderef or MapNode or node to the frontEnd, from this node access the properties.

No comments:

Post a Comment