Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ae3b0ab6
authored
Jun 03, 2015
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
undo some changes that were made elsewhere
1 parent
f173b9d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
40 deletions
code/moya-restpojo/src/main/java/fi/codecrew/moya/rest/pojo/userinfo/v1/EventUserRestPojo.java
code/moya-web/WebContent/WEB-INF/web.xml
code/moya-web/src/main/java/fi/codecrew/moya/rest/UserRestView.java
code/moya-restpojo/src/main/java/fi/codecrew/moya/rest/pojo/userinfo/v1/EventUserRestPojo.java
View file @
ae3b0ab
...
@@ -35,16 +35,6 @@ public class EventUserRestPojo {
...
@@ -35,16 +35,6 @@ public class EventUserRestPojo {
private
String
firstname
=
""
;
private
String
firstname
=
""
;
private
String
lastname
=
""
;
private
String
lastname
=
""
;
// foo..
private
String
birthday
;
private
String
gender
;
private
String
phoneNumber
;
// address info
private
String
streetAddress
;
private
String
zipCode
;
private
String
postOffice
;
public
EventUserRestPojo
()
{
public
EventUserRestPojo
()
{
}
}
...
...
code/moya-web/WebContent/WEB-INF/web.xml
View file @
ae3b0ab
...
@@ -63,8 +63,6 @@
...
@@ -63,8 +63,6 @@
<url-pattern>
*.jsf
</url-pattern>
<url-pattern>
*.jsf
</url-pattern>
</servlet-mapping>
</servlet-mapping>
<!-- <servlet> <servlet-name>ViewStatusMessages</servlet-name> <servlet-class>ch.qos.logback.classic.ViewStatusMessagesServlet
<!-- <servlet> <servlet-name>ViewStatusMessages</servlet-name> <servlet-class>ch.qos.logback.classic.ViewStatusMessagesServlet
</servlet-class> </servlet> <servlet-mapping> <servlet-name>ViewStatusMessages</servlet-name>
</servlet-class> </servlet> <servlet-mapping> <servlet-name>ViewStatusMessages</servlet-name>
<url-pattern>/logback</url-pattern> </servlet-mapping> -->
<url-pattern>/logback</url-pattern> </servlet-mapping> -->
...
...
code/moya-web/src/main/java/fi/codecrew/moya/rest/UserRestView.java
View file @
ae3b0ab
...
@@ -89,9 +89,6 @@ public class UserRestView {
...
@@ -89,9 +89,6 @@ public class UserRestView {
@EJB
@EJB
private
PlaceBeanLocal
placebean
;
private
PlaceBeanLocal
placebean
;
@EJB
private
RoleBeanLocal
roleBean
;
@POST
@POST
@Path
(
"/giveplace/{placeId}"
)
@Path
(
"/giveplace/{placeId}"
)
@Consumes
(
MediaType
.
APPLICATION_FORM_URLENCODED
)
@Consumes
(
MediaType
.
APPLICATION_FORM_URLENCODED
)
...
@@ -266,23 +263,6 @@ public class UserRestView {
...
@@ -266,23 +263,6 @@ public class UserRestView {
return
new
EventUserRestPojo
();
return
new
EventUserRestPojo
();
}
}
@POST
@Path
(
"/create"
)
@Produces
({
MediaType
.
APPLICATION_JSON
})
@Consumes
(
MediaType
.
APPLICATION_FORM_URLENCODED
)
@ApiOperation
(
value
=
"Create user"
,
response
=
EventUserRestPojo
.
class
)
public
Response
createEventUser
()
{
// XXX
if
(
permbean
.
hasPermission
(
UserPermission
.
CREATE_NEW
)
==
false
)
{
return
Response
.
status
(
Status
.
FORBIDDEN
).
build
();
}
return
Response
.
status
(
Status
.
NOT_IMPLEMENTED
).
build
();
}
@GET
@GET
@Path
(
"/"
)
@Path
(
"/"
)
@Produces
({
MediaType
.
APPLICATION_JSON
})
@Produces
({
MediaType
.
APPLICATION_JSON
})
...
@@ -394,12 +374,4 @@ public class UserRestView {
...
@@ -394,12 +374,4 @@ public class UserRestView {
}
}
}
}
@GET
@Path
(
"/{userid}/image"
)
@ApiOperation
(
value
=
"Download user image"
)
@Consumes
(
MediaType
.
MULTIPART_FORM_DATA
)
public
Response
downloadUserImage
(
@PathParam
(
"userid"
)
@ApiParam
(
"User ID"
)
Integer
userId
)
{
return
Response
.
ok
().
build
();
}
}
}
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