|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.nurelm.nucontent.model.NuSiteManager
The NuSiteManager is a top level utility object that lets NuAPI
users get Site objects. Note on Persistence Managers (PM): The
JDO rule is that the PM cannot outlive persistent classes (pcs). In
NuContent, we use a filter to create and destroy this object, putting it
into each request. This saves the programmer from worrying about it, allows
us to make sure it gets closed.
| Constructor Summary | |
|---|---|
NuSiteManager(java.lang.String siteId)
Sets the site variable. |
|
| Method Summary | |
|---|---|
void |
close()
The method MUST be called when the NuSiteManager object is no longer needed. |
Site |
getSite()
Provides access to the current Site object. |
java.util.Collection |
getSites()
Gets all the sites in the current database. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NuSiteManager(java.lang.String siteId)
siteId - The id of the Site to be retrieved.| Method Detail |
public Site getSite()
Site object.
Site object.public java.util.Collection getSites()
Site object.public void close()
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||