com.sas.sasserver
Interface BookmarkManagerInterface

All Superinterfaces:
com.sas.ComponentInterface, java.util.EventListener, com.sas.LinkPropertiesInterface, com.sas.ModelInterface, java.io.ObjectInputValidation, java.beans.PropertyChangeListener, com.sas.beans.PropertyChangeSource, RemoteBookmarkManagerInterface, java.io.Serializable, com.sas.beans.VetoableChangeSource, com.sas.ViewInterface
All Known Subinterfaces:
BookmarkManagerV2Interface
All Known Implementing Classes:
_rprxIOMBookmarkManager, _rprxIOMBookmarkManagerV2, _rprxJ2BookmarkManager, _rprxJ2BookmarkManagerV2, _rprxRemoteBookmarkManagerClient, _rprxRemoteBookmarkManagerV2Client, _rprxRemoteDesignTimeBookmarkManager, _rprxRemoteDesignTimeBookmarkManagerV2

public interface BookmarkManagerInterface
extends RemoteBookmarkManagerInterface, com.sas.ComponentInterface


Field Summary
static java.lang.String contextClasspath
           
static int INVALID_PASSWORD
           
static int NEW_USER
           
static int VALIDATED
           
 
Method Summary
 java.lang.Object getBookmarkData(java.lang.Object bookmarkID)
          A list (has an eis entry name) passed in to get the real application list
 java.lang.Object getBookmarks(long documentID, java.lang.String userName)
          Get the list of bookmarks and folders (public only) for a given document and username
 java.lang.Object getBookmarks(long documentID, java.lang.String userName, java.lang.String password)
          Get the list of bookmarks and folders (public and private) for a given document and username only if the password is valid
 java.lang.String[] getUsers(long documentID, boolean all)
          Get all the users who have registered bookmarks for a given document.
 void setBookmarks(java.lang.String documentName, long documentID, java.lang.String userName, java.lang.String password, java.lang.Object bookmarks)
          Set the bookmarks for a given user.
 int validateUser(java.lang.String userName, java.lang.String password)
          Validate the password for a given username.
 
Methods inherited from interface com.sas.sasserver.RemoteBookmarkManagerInterface
_getBookmarkData, _getBookmarks, _getBookmarks, _getMessage, _getUsers, _setBookmarks, _validateUser
 

Field Detail

contextClasspath

static final java.lang.String contextClasspath
See Also:
Constant Field Values

VALIDATED

static final int VALIDATED
See Also:
Constant Field Values

NEW_USER

static final int NEW_USER
See Also:
Constant Field Values

INVALID_PASSWORD

static final int INVALID_PASSWORD
See Also:
Constant Field Values
Method Detail

getBookmarks

java.lang.Object getBookmarks(long documentID,
                              java.lang.String userName)
                              throws BookmarkException
Get the list of bookmarks and folders (public only) for a given document and username

Parameters:
documentID - of the document associated with the bookmark
userName - of the user for the document
Returns:
HList containing lists of Bookmark information
Throws:
BookmarkException - if unable to get list of bookmarks from server

getBookmarks

java.lang.Object getBookmarks(long documentID,
                              java.lang.String userName,
                              java.lang.String password)
                              throws BookmarkException
Get the list of bookmarks and folders (public and private) for a given document and username only if the password is valid

Parameters:
documentID - of the document associated with the bookmark
userName - of the user for the document
password - for the user
Returns:
HList containing lists of Bookmark information
Throws:
BookmarkException - if the password is invalid for the userName

setBookmarks

void setBookmarks(java.lang.String documentName,
                  long documentID,
                  java.lang.String userName,
                  java.lang.String password,
                  java.lang.Object bookmarks)
                  throws BookmarkException
Set the bookmarks for a given user. If password is invalid for an existing user BookmarkException is thrown

Parameters:
documentID - associated with the bookmark
documentName - associated with the bookmark
userName - of the user for the document
password - for the user
HList - containing lists of Bookmark information
Throws:
BookmarkExcpetion - if the password is invalid for an existing user
BookmarkException

getUsers

java.lang.String[] getUsers(long documentID,
                            boolean all)
                            throws BookmarkException
Get all the users who have registered bookmarks for a given document.

Parameters:
documentID - for the users list
all - the users registered for a given document. If false, only return those users who have registered "public" bookmarks.
Returns:
an array of user Names for a given document.
Throws:
BookmarkExcpetion - if unable to get list of users from server
BookmarkException

validateUser

int validateUser(java.lang.String userName,
                 java.lang.String password)
                 throws BookmarkException
Validate the password for a given username.

Parameters:
userName - to validate the password for.
password - to validate for a given username.
Returns:
integer indicating if the password is valid or not. Possible return values are VALIDATED=0, NEW_USER =1, INVALID_PASSWORD=-1.
Throws:
BookmarkException - if error validating user

getBookmarkData

java.lang.Object getBookmarkData(java.lang.Object bookmarkID)
                                 throws BookmarkException
A list (has an eis entry name) passed in to get the real application list

Parameters:
bookmarkId - a list with entry name
Returns:
An application list associated woith the entry name list
Throws:
BookmarkException



Copyright © 2009 SAS Institute Inc. All Rights Reserved.