Difference between revisions of "Home Library 1.0 API"
From Gcube Wiki
(→How to retrieve an User WorkspaceArea from a servlet) |
|||
Line 1: | Line 1: | ||
{{UnderUpdate}} | {{UnderUpdate}} | ||
The Home Library manage and persist the users homes. | The Home Library manage and persist the users homes. | ||
− | |||
− | The | + | ==Architecture== |
− | + | The ''user's homes'' are organized in scopes. | |
+ | The users and the homes for a specific scope are managed by the ''HomeManager''. | ||
+ | Each user home (''Home'') have a workspace area (''WorkspaceArea'') and a data area (''DataArea''). | ||
+ | |||
+ | [[Image:homelibrary-architecture.png]] | ||
==How to retrieve an User WorkspaceArea from a servlet== | ==How to retrieve an User WorkspaceArea from a servlet== | ||
Line 12: | Line 15: | ||
WorkspaceArea wa = HomeLibrary.getUserWorkspaceArea(session); | WorkspaceArea wa = HomeLibrary.getUserWorkspaceArea(session); | ||
</source> | </source> | ||
+ | |||
+ | |||
+ | ==References== | ||
+ | The most recent presentation about the Home Library can be found there: | ||
+ | http://bscw.research-infrastructures.eu/bscw/bscw.cgi/d107608/06.%20HomeLibrary.ppt |
Revision as of 18:06, 29 September 2009
THIS SECTION OF GCUBE DOCUMENTATION IS CURRENTLY UNDER UPDATE.
The Home Library manage and persist the users homes.
Architecture
The user's homes are organized in scopes. The users and the homes for a specific scope are managed by the HomeManager. Each user home (Home) have a workspace area (WorkspaceArea) and a data area (DataArea).
How to retrieve an User WorkspaceArea from a servlet
To retrieve a WorkspaceArea for a User you can use the getWorkspaceArea static method from HomeLibrary class. This method required only the current D4ScienceSession.
WorkspaceArea wa = HomeLibrary.getUserWorkspaceArea(session);
References
The most recent presentation about the Home Library can be found there: http://bscw.research-infrastructures.eu/bscw/bscw.cgi/d107608/06.%20HomeLibrary.ppt