Compare commits

...

2 Commits

Author SHA1 Message Date
Giulio De Pasquale
5393bf342e merge 2017-01-11 16:26:50 +01:00
Giulio De Pasquale
1d70da661f Section 3 stub 2017-01-11 16:25:45 +01:00

View File

@ -1785,12 +1785,12 @@ In the Sequence Diagrams shown in the Section 2.5 of the Design Document
can be found a more detailed representation of the components interaction. can be found a more detailed representation of the components interaction.
\end_layout \end_layout
\begin_layout Subsubsection* \begin_layout Subsection
Account Management Account Management
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
Functions implemented by Main functions implemented by the
\series bold \series bold
Authentication Manager Authentication Manager
\series default \series default
@ -1801,20 +1801,6 @@ Authentication Manager
\end_layout \end_layout
\begin_layout Standard
\family typewriter
register
\family default
: This function creates a new entity
\family typewriter
user
\family default
in the system with all the information provided by the user.
If the entered data are correct, an email is sent to the user address to
confirm the correct registration to the service.
\end_layout
\begin_layout Standard \begin_layout Standard
\align center \align center
\begin_inset Tabular \begin_inset Tabular
@ -2086,42 +2072,14 @@ The user data are correctly inserted in the database.
\end_layout \end_layout
\begin_layout Standard \begin_layout Subsection
\begin_inset VSpace smallskip Car Management
\end_inset
\begin_inset VSpace smallskip
\end_inset
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset VSpace smallskip Main functions implemented by the
\end_inset
\family typewriter
login
\family default
: This function allows any registered user to log into the system using
his username and password.
If the credentials are correct, the function returns a token to be used
in the future requests to identify the user.
Otherwise, an error is returned.
\end_layout
\begin_layout Subsubsection*
\series bold \series bold
AccountInformation Manager Car Manager
\end_layout
\begin_layout Standard
Functions implemented by
\series bold
AccountInformation Manager
\series default \series default
: :
\begin_inset VSpace smallskip \begin_inset VSpace smallskip
@ -2131,22 +2089,138 @@ AccountInformation Manager
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset ERT \align center
status open \begin_inset Tabular
<lyxtabular version="3" rows="2" columns="1">
<features tabularvalignment="middle" tabularwidth="50page%">
<column alignment="center" valignment="top" width="0pt">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
\family typewriter
\backslash register
texttt{edit
\backslash
_profile}
\end_layout \end_layout
\end_inset \end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
: This function allows registered users to edit their profile information. \begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
<column alignment="left" valignment="top" width="44col%">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\series bold
Description
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
This is a cool description
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="1pt">
<cell alignment="left" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Input
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Effect
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A null parameter
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A NullArgumentException is raised.
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A non-null user
\end_layout
\end_inset
</cell>
<cell mroffset="0.5pt" alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
The user data are correctly inserted in the database.
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\begin_layout Standard
\begin_inset VSpace smallskip \begin_inset VSpace smallskip
\end_inset \end_inset
@ -2154,92 +2228,706 @@ _profile}
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset ERT \align center
status open \begin_inset Tabular
<lyxtabular version="3" rows="2" columns="1">
<features tabularvalignment="middle" tabularwidth="50page%">
<column alignment="center" valignment="top" width="0pt">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
\family typewriter
\backslash register
texttt{enable
\backslash
_mso}
\end_layout \end_layout
\end_inset \end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
: This function allows registered users to enable the money saving option. \begin_layout Plain Layout
\begin_inset VSpace smallskip \begin_inset Tabular
\end_inset <lyxtabular version="3" rows="4" columns="2">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
\end_layout <column alignment="left" valignment="top" width="44col%">
<row topspace="1pt" bottomspace="1pt">
\begin_layout Standard <cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset ERT \begin_inset Text
status open
\begin_layout Plain Layout \begin_layout Plain Layout
\series bold
\backslash Description
texttt{disable
\backslash
_mso}
\end_layout \end_layout
\end_inset \end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
: This function allows registered users to disable the money saving option. \begin_layout Plain Layout
\begin_inset VSpace smallskip This is a cool description
\end_inset
\end_layout \end_layout
\begin_layout Standard \end_inset
\begin_inset ERT </cell>
status open </row>
<row topspace="1pt" bottomspace="1pt">
<cell alignment="left" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout \begin_layout Plain Layout
\shape slanted
\backslash Input
texttt{consult
\backslash
_history}
\end_layout \end_layout
\end_inset \end_inset
</cell>
<cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
: This function allows registered users to consult their reservation history. \begin_layout Plain Layout
\shape slanted
Effect
\end_layout \end_layout
\begin_layout Standard \end_inset
\begin_inset Newpage newpage </cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A null parameter
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A NullArgumentException is raised.
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A non-null user
\end_layout
\end_inset
</cell>
<cell mroffset="0.5pt" alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
The user data are correctly inserted in the database.
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset \end_inset
\end_layout \end_layout
\begin_layout Subsubsection* \end_inset
Car Management </cell>
</row>
</lyxtabular>
\end_inset
\end_layout \end_layout
\begin_layout Subsubsection* \begin_layout Subsection
Reservation Management
\end_layout
\begin_layout Subsubsection*
Events Handler Events Handler
\end_layout \end_layout
\begin_layout Subsubsection* \begin_layout Standard
Main functions implemented by the
\series bold
Events Handler
\series default
:
\begin_inset VSpace smallskip
\end_inset
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="1">
<features tabularvalignment="middle" tabularwidth="50page%">
<column alignment="center" valignment="top" width="0pt">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\family typewriter
register
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
<column alignment="left" valignment="top" width="44col%">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\series bold
Description
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
This is a cool description
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="1pt">
<cell alignment="left" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Input
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Effect
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A null parameter
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A NullArgumentException is raised.
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A non-null user
\end_layout
\end_inset
</cell>
<cell mroffset="0.5pt" alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
The user data are correctly inserted in the database.
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\begin_layout Standard
\begin_inset VSpace smallskip
\end_inset
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="1">
<features tabularvalignment="middle" tabularwidth="50page%">
<column alignment="center" valignment="top" width="0pt">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\family typewriter
register
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
<column alignment="left" valignment="top" width="44col%">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\series bold
Description
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
This is a cool description
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="1pt">
<cell alignment="left" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Input
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Effect
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A null parameter
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A NullArgumentException is raised.
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A non-null user
\end_layout
\end_inset
</cell>
<cell mroffset="0.5pt" alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
The user data are correctly inserted in the database.
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\begin_layout Subsection
Interfaces Interfaces
\end_layout \end_layout
\begin_layout Standard \begin_layout Standard
\begin_inset Newpage newpage Main functions implemented by the
\series bold
Interfaces
\series default
:
\begin_inset VSpace smallskip
\end_inset
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="1">
<features tabularvalignment="middle" tabularwidth="50page%">
<column alignment="center" valignment="top" width="0pt">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\family typewriter
register
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
<column alignment="left" valignment="top" width="44col%">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\series bold
Description
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
This is a cool description
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="1pt">
<cell alignment="left" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Input
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Effect
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A null parameter
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A NullArgumentException is raised.
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A non-null user
\end_layout
\end_inset
</cell>
<cell mroffset="0.5pt" alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
The user data are correctly inserted in the database.
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\begin_layout Standard
\begin_inset VSpace smallskip
\end_inset
\end_layout
\begin_layout Standard
\align center
\begin_inset Tabular
<lyxtabular version="3" rows="2" columns="1">
<features tabularvalignment="middle" tabularwidth="50page%">
<column alignment="center" valignment="top" width="0pt">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\family typewriter
register
\end_layout
\end_inset
</cell>
</row>
<row>
<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\begin_inset Tabular
<lyxtabular version="3" rows="4" columns="2">
<features tabularvalignment="middle">
<column alignment="left" valignment="top">
<column alignment="left" valignment="top" width="44col%">
<row topspace="1pt" bottomspace="1pt">
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\series bold
Description
\end_layout
\end_inset
</cell>
<cell alignment="center" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
This is a cool description
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="1pt">
<cell alignment="left" valignment="top" bottomline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Input
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" bottomline="true" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
\shape slanted
Effect
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A null parameter
\end_layout
\end_inset
</cell>
<cell alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A NullArgumentException is raised.
\end_layout
\end_inset
</cell>
</row>
<row topspace="1pt" bottomspace="2pt">
<cell alignment="left" valignment="top" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
A non-null user
\end_layout
\end_inset
</cell>
<cell mroffset="0.5pt" alignment="left" valignment="top" leftline="true" usebox="none">
\begin_inset Text
\begin_layout Plain Layout
The user data are correctly inserted in the database.
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset
\end_layout
\end_inset
</cell>
</row>
</lyxtabular>
\end_inset \end_inset