|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.palo.api.ext.favoriteviews.impl.FavoriteViewModel
public class FavoriteViewModel
The FavoriteViewModel
class provides internal methods to load
and save the favorite view tree. Namely, this class checks if a cube to
store bookmarks is available and creates one if that is not the case. The
class will also generate the xml code for a favorite view tree and save that
in the correct position in the database.
Constructor Summary | |
---|---|
FavoriteViewModel()
|
Method Summary | |
---|---|
Cube |
createBookmarkCubeInExistingDatabase(Database db)
If a connection is found that _does_ have an AdvancedSystem
database but which does not include the bookmarks cube, this method
creates the new bookmarks cube. |
Cube |
createBookmarkCubeInNewDatabase(Connection con)
If a connection is found that does not (yet) have an AdvancedSystem database, the database is created in this
method, then dimensions (#user and #bookmarkedViews) are added along
with the entries (the current user name and "Bookmarks"). |
FavoriteViewTreeNode |
loadFavoriteViews(Connection con)
The method retrieves the AdvancedSystem database of the connection (or creates it, if it is not yet in the connection) and also gets the bookmark-cube from the AdvancedSystem database (or creates it, if it had not been present (for this user)). |
void |
storeFavoriteViews(Connection con,
FavoriteViewTreeNode root)
Stores a favorite views tree in the given connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FavoriteViewModel()
Method Detail |
---|
public Cube createBookmarkCubeInNewDatabase(Connection con)
AdvancedSystem
database, the database is created in this
method, then dimensions (#user and #bookmarkedViews) are added along
with the entries (the current user name and "Bookmarks"). Finally a
cube is created using these two dimensions. The cube is then returned.
con
- the connection in which the new AdvancedSystem database is to
be added.
public Cube createBookmarkCubeInExistingDatabase(Database db)
AdvancedSystem
database but which does not include the bookmarks cube, this method
creates the new bookmarks cube.
Dimensions will be created if necessary.
db
- the AdvancedSystem database of the current connection.
public FavoriteViewTreeNode loadFavoriteViews(Connection con)
con
- the connection which is being added to the bookmark model.
public void storeFavoriteViews(Connection con, FavoriteViewTreeNode root)
con
- the connection which is to store the favorite views.root
- the root of the favorite views tree that is to be stored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |