Commit baa3067f by Tuomas Riihimäki

Random changes mostly related to api.

1 parent 78dcf6db
...@@ -177,6 +177,14 @@ public class EventUser extends GenericEntity { ...@@ -177,6 +177,14 @@ public class EventUser extends GenericEntity {
this.notes = notes; this.notes = notes;
} }
/**
* NOTICE: This returns only manually added roles. If you want to get all
* roles from products, places, etc, use
* {@link fi.codecrew.moya.beans.UserBeanLocal#findUsersRoles(EventUser)
* UserBeanLocal#findUsersRoles(EventUser) }
*
* @return
*/
public List<Role> getRoles() { public List<Role> getRoles() {
return roles; return roles;
} }
......
...@@ -4,7 +4,7 @@ import java.io.Serializable; ...@@ -4,7 +4,7 @@ import java.io.Serializable;
public class SearchQuery implements Serializable { public class SearchQuery implements Serializable {
public enum QuerySortOrder { public static enum QuerySortOrder {
UNSORTED, ASCENDING, DESCENDING UNSORTED, ASCENDING, DESCENDING
} }
......
...@@ -3,7 +3,9 @@ package fi.codecrew.moya.rest; ...@@ -3,7 +3,9 @@ package fi.codecrew.moya.rest;
import javax.ws.rs.ApplicationPath; import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application; import javax.ws.rs.core.Application;
@ApplicationPath("/rest") @ApplicationPath(RestApplicationEntrypoint.REST_PATH)
public class RestApplicationEntrypoint extends Application { public class RestApplicationEntrypoint extends Application {
public static final String REST_PATH = "/rest";
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!