|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.hackystat.projectbrowser.ProjectBrowserSession
public class ProjectBrowserSession
Provides a session instance that holds authentication credentials.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.Session |
---|
org.apache.wicket.Session.IPageMapVisitor, org.apache.wicket.Session.PageMapAccessMetaData |
Field Summary | |
---|---|
java.util.List<java.lang.String> |
analysisList
The analysis list. |
static java.lang.String |
PARAMETER_VALUE_SEPARATOR
The separator for parameter values. |
static java.lang.String |
PROJECT_NAME_OWNER_SEPARATR
The separator between project name and its onwer. |
Fields inherited from class org.apache.wicket.Session |
---|
PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME |
Constructor Summary | |
---|---|
ProjectBrowserSession(org.apache.wicket.Request request)
Provide a constructor that initializes WebSession. |
Method Summary | |
---|---|
void |
clearProjectList()
Clear project list. |
static java.lang.String |
convertProjectListToString(java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> projects)
Returns a single String represents a list of the projects, separated by comma. |
static ProjectBrowserSession |
get()
Obtain the current session. |
org.hackystat.dailyprojectdata.client.DailyProjectDataClient |
getDailyProjectDataClient()
Returns a DailyProjectDataClient instance for this user and session. |
DailyProjectDataSession |
getDailyProjectDataSession()
Returns the DailyProjectDataSession instance. |
org.hackystat.sensorbase.resource.projects.jaxb.Project |
getDefaultProject()
|
java.lang.String |
getEmail()
|
static java.lang.String |
getFormattedDateString(long date)
Returns the string that represents the given date in standard formatted. |
java.util.logging.Logger |
getLogger()
|
java.lang.String |
getPassword()
|
org.hackystat.sensorbase.resource.projects.jaxb.Project |
getProject(java.lang.String projectName,
java.lang.String projectOwner)
Returns a Project instance that available to current user and is matched to the given project name and project owner. |
java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> |
getProjectList()
Returns the list of Projects associated with this user. |
ProjectPortfolioSession |
getProjectPortfolioSession()
|
ProjectsSession |
getProjectsSession()
Returns the ProjectsDataSession instance. |
java.lang.String |
getRegisterFeedback()
Returns the string to be displayed in the registerFeedback label. |
org.hackystat.sensorbase.client.SensorBaseClient |
getSensorBaseClient()
Returns a SensorBaseClient instance for this user and session. |
SensorDataSession |
getSensorDataSession()
Returns the SensorDataSession instance. |
java.lang.String |
getSigninFeedback()
Returns the string to be displayed in the SigninFeedback label. |
org.hackystat.telemetry.service.client.TelemetryClient |
getTelemetryClient()
Returns a TelemetryClient instance for this user and session. |
TelemetrySession |
getTelemetrySession()
Returns the TelemetrySession instance. |
TrajectorySession |
getTrajectorySession()
Returns the TrajectorySession instance. |
java.lang.String |
getUserEmail()
Gets the user's email associated with this session. |
boolean |
isAuthenticated()
Returns true if the user has been authenticated in this session. |
void |
logUsage(java.lang.String log)
Log the user usage to special file. |
java.lang.String |
printPageParameters(org.apache.wicket.PageParameters parameters)
Print the indexed page parameters in format of /parameter0/parameter1/.../. |
void |
setCredentials(java.lang.String user,
java.lang.String password)
Used by the Signin form to provide the SensorBase authentication credentials to this session. |
void |
setRegisterFeedback(java.lang.String registerFeedback)
Allows other components to set the feedback string for the register form. |
void |
setSigninFeedback(java.lang.String signinFeedback)
Allows other components to set the feedback string for the signin form. |
boolean |
signin(java.lang.String email,
java.lang.String password)
Returns true if this email/password combination is valid for this sensorbase. |
Methods inherited from class org.apache.wicket.protocol.http.WebSession |
---|
cleanupFeedbackMessages, isCurrentRequestValid |
Methods inherited from class org.apache.wicket.Session |
---|
attach, bind, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, findOrCreate, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getAutoPageMapNamePrefix, getAutoPageMapNameSuffix, getClassResolver, getClientInfo, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPage, getPageFactory, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, incrementCreateAutoPageMapCounter, info, invalidate, invalidateNow, isSessionInvalidated, isTemporary, newPageMap, nextPageId, nextSequenceValue, pageMapForName, removeAttribute, removePageMap, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, untouch, update, visitPageMaps, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.List<java.lang.String> analysisList
public static final java.lang.String PARAMETER_VALUE_SEPARATOR
public static final java.lang.String PROJECT_NAME_OWNER_SEPARATR
Constructor Detail |
---|
public ProjectBrowserSession(org.apache.wicket.Request request)
request
- The request object.Method Detail |
---|
public static ProjectBrowserSession get()
public boolean isAuthenticated()
public void setCredentials(java.lang.String user, java.lang.String password)
user
- The user.password
- The password.public java.lang.String getSigninFeedback()
public void setSigninFeedback(java.lang.String signinFeedback)
signinFeedback
- The message to be displayed.public void setRegisterFeedback(java.lang.String registerFeedback)
registerFeedback
- The message to be displayed.public java.lang.String getRegisterFeedback()
public boolean signin(java.lang.String email, java.lang.String password)
email
- The email.password
- The password.
public org.hackystat.sensorbase.client.SensorBaseClient getSensorBaseClient()
public org.hackystat.telemetry.service.client.TelemetryClient getTelemetryClient()
public org.hackystat.dailyprojectdata.client.DailyProjectDataClient getDailyProjectDataClient()
public java.lang.String getUserEmail()
public org.hackystat.sensorbase.resource.projects.jaxb.Project getProject(java.lang.String projectName, java.lang.String projectOwner)
projectName
- the given project name.projectOwner
- the given project owner.
public static java.lang.String convertProjectListToString(java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> projects)
projects
- a list of selected projects.
public static java.lang.String getFormattedDateString(long date)
date
- the given date
public void clearProjectList()
public java.util.List<org.hackystat.sensorbase.resource.projects.jaxb.Project> getProjectList()
public org.hackystat.sensorbase.resource.projects.jaxb.Project getDefaultProject()
public SensorDataSession getSensorDataSession()
public DailyProjectDataSession getDailyProjectDataSession()
public TelemetrySession getTelemetrySession()
public ProjectsSession getProjectsSession()
public java.lang.String getPassword()
public java.lang.String getEmail()
public ProjectPortfolioSession getProjectPortfolioSession()
public void logUsage(java.lang.String log)
log
- the log messagepublic java.lang.String printPageParameters(org.apache.wicket.PageParameters parameters)
parameters
- the indexed page parameter
public java.util.logging.Logger getLogger()
public TrajectorySession getTrajectorySession()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |