-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Botxan
committed
Mar 6, 2022
1 parent
e3ec7b7
commit 19da679
Showing
31 changed files
with
2,253 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/zulu@1.8.282"/> | ||
<classpathentry kind="lib" path="resources/jcalendar-1.4.jar"/> | ||
<classpathentry kind="lib" path="resources/objectdb.jar"/> | ||
<classpathentry kind="output" path="bin"/> | ||
<classpathentry kind="src" output="target/classes" path="src/main/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
<attributes> | ||
<attribute name="test" value="true"/> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> | ||
<attributes> | ||
<attribute name="test" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-15"/> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
org.eclipse.jdt.core.compiler.compliance=1.8 | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=15 | ||
org.eclipse.jdt.core.compiler.compliance=15 | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning | ||
org.eclipse.jdt.core.compiler.release=enabled | ||
org.eclipse.jdt.core.compiler.source=1.8 | ||
org.eclipse.jdt.core.compiler.source=15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>SoftwareEngineering</groupId> | ||
<artifactId>BetAndRuin22</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<repositories> | ||
<repository> | ||
<id>objectdb</id> | ||
<name>ObjectDB Repository</name> | ||
<url>https://m2.objectdb.com</url> | ||
</repository> | ||
</repositories> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.toedter</groupId> | ||
<artifactId>jcalendar</artifactId> | ||
<version>1.4</version> | ||
</dependency> | ||
<!-- API JAXB --> | ||
<dependency> | ||
<groupId>jakarta.xml.bind</groupId> | ||
<artifactId>jakarta.xml.bind-api</artifactId> | ||
<version>2.3.2</version> | ||
</dependency> | ||
|
||
<!-- Runtime --> | ||
<dependency> | ||
<groupId>org.glassfish.jaxb</groupId> | ||
<artifactId>jaxb-runtime</artifactId> | ||
<version>2.3.2</version> | ||
</dependency> | ||
|
||
|
||
<!-- API JAX-WS --> | ||
<dependency> | ||
<groupId>jakarta.xml.ws</groupId> | ||
<artifactId>jakarta.xml.ws-api</artifactId> | ||
<version>2.3.2</version> | ||
</dependency> | ||
|
||
<!-- Runtime --> | ||
<dependency> | ||
<groupId>com.sun.xml.ws</groupId> | ||
<artifactId>jaxws-rt</artifactId> | ||
<version>2.3.2</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.objectdb</groupId> | ||
<artifactId>objectdb</artifactId> | ||
<version>2.8.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.eclipse.persistence</groupId> | ||
<artifactId>javax.persistence</artifactId> | ||
<version>2.1.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>javax.transaction</groupId> | ||
<artifactId>jta</artifactId> | ||
<version>1.1</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#Direct ResourceBundle | ||
#Thu Feb 18 03:05:24 CET 2021 | ||
Accept=Accept | ||
BrowseQuestions=Browse Questions | ||
Close=Close | ||
CreateQuestion=Create Question | ||
ErrorEventHasFinished=Error\: Event Has Finished | ||
ErrorNumber=Error\: Introduce a positive number | ||
ErrorQuestion=Error\: Introduce a question | ||
ErrorQuestionAlreadyExist=Error\: Question Already Exists | ||
Event=Event | ||
EventDate=Event Date | ||
EventN=Event\# | ||
Events=Events | ||
ListEvents=List of events | ||
MainTitle=Bet & Ruin project | ||
MinimumBetPrice=Min Bet | ||
NoEvents=There are no events | ||
NoQuestions=There are no questions yet for the event | ||
Price=Price | ||
Questions=Questions | ||
Question=Question | ||
QuestionAlreadyExist=Question Already Exists | ||
QuestionCreated=Question created | ||
QuestionN=Question\# | ||
SelectedEvent=Questions for the event | ||
SelectUseCase=Select Use Case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Accept=Accept | ||
BrowseQuestions=Browse Questions | ||
Close=Close | ||
CreateQuestion=Create Question | ||
ErrorEventHasFinished=Error\: Event Has Finished | ||
ErrorNumber=Error\: Introduce a positive number | ||
ErrorQuestionAlreadyExist=Error\: Question Already Exists | ||
ErrorQuestion=Error\: Introduce a question | ||
Event=Event | ||
EventDate=Event Date | ||
EventN=Event\# | ||
Events=Events | ||
ListEvents=List of events | ||
MainTitle=Bet&Ruin Project | ||
MinimumBetPrice=Min Bet | ||
NoEvents=There are no events | ||
NoQuestions=There are no questions yet for the event | ||
Price=Price | ||
Questions=Questions | ||
Question=Question | ||
QuestionAlreadyExist=Question Already Exists | ||
QuestionCreated=Question created | ||
QuestionN=Question\# | ||
SelectedEvent=Questions for the event | ||
SelectUseCase=Select Use Case |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Accept=Aceptar | ||
BrowseQuestions=Consultar Preguntas | ||
Close=Cerrar | ||
CreateQuestion=Crear Pregunta | ||
ErrorEventHasFinished=Error\: El evento ha finalizado | ||
ErrorNumber=Error: Introduce un número positivo | ||
ErrorQuestion=Error: Introduce una pregunta | ||
ErrorQuestionAlreadyExist=Error: La pregunta ya existe | ||
Event=Evento | ||
EventDate=Fecha evento | ||
EventN=Evento# | ||
Events=Eventos | ||
ListEvents=Lista de eventos | ||
MainTitle=Proyecto Bet&Ruin | ||
MinimumBetPrice=Apuesta Min | ||
NoEvents= No hay preguntas | ||
NoQuestions=No hay preguntas para el evento | ||
Price= Precio | ||
Questions=Preguntas | ||
Question=Pregunta | ||
QuestionAlreadyExist=La pregunta ya existe | ||
QuestionCreated=Pregunta creada | ||
QuestionN=#Pregunta | ||
SelectedEvent=Preguntas para el evento: | ||
SelectUseCase=Seleccionar Caso de Uso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Accept=Onartu | ||
BrowseQuestions=Galderak Kontsultatu | ||
Close=Itxi | ||
CreateQuestion=Galdera Sortu | ||
ErrorEventHasFinished=Errorea\: Gertaera amaitu egin da | ||
ErrorNumber=Errorea: Zenbaki positiboa sartu | ||
ErrorQuestion=Error\: Galdera sartu | ||
ErrorQuestionAlreadyExist=Error\: Galdera existitzen da | ||
Event=Gertaera | ||
EventDate=Gertaera eguna | ||
EventN=Gertaera# | ||
Events=Gertaerak | ||
ListEvents=Gertaera zerrenda | ||
MainTitle=Bet&Ruin Proiektua | ||
MinimumBetPrice=Apostu Min | ||
NoEvents=Ez daude gertaerak | ||
NoQuestions=Ez daude galderak hurrengo gertaerako | ||
Price= Prezioa | ||
Questions=Galderak | ||
Question=Galdera | ||
QuestionCreated=Galdera sortuta | ||
QuestionN=Galdera# | ||
SelectedEvent=Galderak hurrengo gertaerarako | ||
SelectUseCase=Aukeratu Erabilpen-Kasua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package businessLogic; | ||
|
||
import java.util.Date; | ||
import java.util.Vector; | ||
|
||
import javax.jws.WebMethod; | ||
import javax.jws.WebService; | ||
|
||
import domain.Event; | ||
import domain.Question; | ||
import exceptions.EventFinished; | ||
import exceptions.QuestionAlreadyExist; | ||
|
||
/** | ||
* Interface that specifies the business logic. | ||
*/ | ||
@WebService | ||
public interface BlFacade { | ||
|
||
/** | ||
* This method creates a question for an event, with a question text and the minimum bet | ||
* | ||
* @param event to which question is added | ||
* @param question text of the question | ||
* @param betMinimum minimum quantity of the bet | ||
* @return the created question, or null, or an exception | ||
* @throws EventFinished if current data is after data of the event | ||
* @throws QuestionAlreadyExist if the same question already exists for the event | ||
*/ | ||
@WebMethod | ||
Question createQuestion(Event event, String question, float betMinimum) | ||
throws EventFinished, QuestionAlreadyExist; | ||
|
||
/** | ||
* This method retrieves all the events of a given date | ||
* | ||
* @param date in which events are retrieved | ||
* @return collection of events | ||
*/ | ||
@WebMethod public Vector<Event> getEvents(Date date); | ||
|
||
/** | ||
* This method retrieves from the database the dates in a month for which there are events | ||
* | ||
* @param date of the month for which days with events want to be retrieved | ||
* @return collection of dates | ||
*/ | ||
@WebMethod public Vector<Date> getEventsMonth(Date date); | ||
} |
Oops, something went wrong.