Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Linnea Samila
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 45a74c6b
authored
Apr 01, 2018
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes from comments
1 parent
f2e1cd30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
15 deletions
code/moya-web/src/main/java/fi/codecrew/moya/rest/PrinterRestView.java
code/moya-web/src/main/java/fi/codecrew/moya/rest/v2/ProductRestView.java
code/moya-web/src/main/java/fi/codecrew/moya/rest/v3/PojoFactoryV3.java
code/moya-web/src/main/java/fi/codecrew/moya/rest/PrinterRestView.java
View file @
45a74c6
...
@@ -80,11 +80,6 @@ public class PrinterRestView {
...
@@ -80,11 +80,6 @@ public class PrinterRestView {
@Path
(
"/Printed/{id}/"
)
@Path
(
"/Printed/{id}/"
)
public
PrintedCardRestPojo
setCardPrinted
(
@PathParam
(
"id"
)
int
cardId
,
@QueryParam
(
"key"
)
String
hash
)
throws
Exception
{
public
PrintedCardRestPojo
setCardPrinted
(
@PathParam
(
"id"
)
int
cardId
,
@QueryParam
(
"key"
)
String
hash
)
throws
Exception
{
return
PojoUtils
.
initPrintedCardRestPojo
(
cardbean
.
setCardState
(
cardId
,
CardState
.
PRINTED
));
return
PojoUtils
.
initPrintedCardRestPojo
(
cardbean
.
setCardState
(
cardId
,
CardState
.
PRINTED
));
// PrintedCard card = cardbean.findCard(cardId);
// card.setCardState(CardState.PRINTED);
// card.setPrintCount(card.getPrintCount() + 1);
// card = cardbean.saveCard(card);
// return new PrintedCardRestPojoV3(card);
}
}
@GET
@GET
...
...
code/moya-web/src/main/java/fi/codecrew/moya/rest/v2/ProductRestView.java
View file @
45a74c6
...
@@ -16,8 +16,8 @@ import fi.codecrew.moya.rest.v2.pojo.ProductPojo;
...
@@ -16,8 +16,8 @@ import fi.codecrew.moya.rest.v2.pojo.ProductPojo;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
@RequestScoped
@RequestScoped
@Path
(
"/v
3
/product"
)
@Path
(
"/v
2
/product"
)
@Api
(
value
=
"/v
3
/product"
,
description
=
"Product operations"
)
@Api
(
value
=
"/v
2
/product"
,
description
=
"Product operations"
)
public
class
ProductRestView
{
public
class
ProductRestView
{
@EJB
@EJB
...
...
code/moya-web/src/main/java/fi/codecrew/moya/rest/v3/PojoFactoryV3.java
View file @
45a74c6
...
@@ -11,18 +11,10 @@ import fi.codecrew.moya.rest.pojo.userinfo.v3.PrintedCardRestPojoV3;
...
@@ -11,18 +11,10 @@ import fi.codecrew.moya.rest.pojo.userinfo.v3.PrintedCardRestPojoV3;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
/**
* Created by jkj on 2015-05-31.
*/
public
class
PojoFactoryV3
implements
Serializable
{
public
class
PojoFactoryV3
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
public
static
ReaderEventRestPojoV3
createReaderEventRestPojo
(
ReaderEvent
event
)
{
public
static
ReaderEventRestPojoV3
createReaderEventRestPojo
(
ReaderEvent
event
)
{
ReaderEventRestPojoV3
readerEvent
=
new
ReaderEventRestPojoV3
();
ReaderEventRestPojoV3
readerEvent
=
new
ReaderEventRestPojoV3
();
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment