Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
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 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 {
private
String
firstname
=
""
;
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
()
{
}
...
...
code/moya-web/WebContent/WEB-INF/web.xml
View file @
ae3b0ab
...
...
@@ -63,8 +63,6 @@
<url-pattern>
*.jsf
</url-pattern>
</servlet-mapping>
<!-- <servlet> <servlet-name>ViewStatusMessages</servlet-name> <servlet-class>ch.qos.logback.classic.ViewStatusMessagesServlet
</servlet-class> </servlet> <servlet-mapping> <servlet-name>ViewStatusMessages</servlet-name>
<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 {
@EJB
private
PlaceBeanLocal
placebean
;
@EJB
private
RoleBeanLocal
roleBean
;
@POST
@Path
(
"/giveplace/{placeId}"
)
@Consumes
(
MediaType
.
APPLICATION_FORM_URLENCODED
)
...
...
@@ -266,23 +263,6 @@ public class UserRestView {
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
@Path
(
"/"
)
@Produces
({
MediaType
.
APPLICATION_JSON
})
...
...
@@ -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