Difference between revisions of "Home Library 1.0 API"

From Gcube Wiki
Jump to: navigation, search
(How to retrieve an User WorkspaceArea from a servlet)
Line 8: Line 8:
 
==How to retrieve an User WorkspaceArea from a servlet==
 
==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.
 
To retrieve a WorkspaceArea for a User you can use the getWorkspaceArea static method from HomeLibrary class. This method required only the current D4ScienceSession.
 +
 +
<source lang="java5">
 +
WorkspaceArea wa = HomeLibrary.getUserWorkspaceArea(session);
 +
</source>

Revision as of 21:55, 4 May 2009

Alert icon2.gif THIS SECTION OF GCUBE DOCUMENTATION IS CURRENTLY UNDER UPDATE.

The Home Library manage and persist the users homes. For each home we have a workspace area and a data area.

The most recent presentation about the Home Library can be found there: http://bscw.research-infrastructures.eu/bscw/bscw.cgi/d107608/06.%20HomeLibrary.ppt

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);