Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
818c37e7
Commit
818c37e7
authored
Apr 30, 2015
by
Alex Proca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plugin: userservice. Get REST responses in JSON too
parent
ee1801ee
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
UserGroupService.java
...ivesoftware/openfire/plugin/service/UserGroupService.java
+1
-1
UserRosterService.java
...vesoftware/openfire/plugin/service/UserRosterService.java
+1
-1
UserService.java
...org/jivesoftware/openfire/plugin/service/UserService.java
+2
-2
UserServiceProperties.java
...ftware/openfire/plugin/service/UserServiceProperties.java
+2
-2
No files found.
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/service/UserGroupService.java
View file @
818c37e7
...
@@ -25,7 +25,7 @@ public class UserGroupService {
...
@@ -25,7 +25,7 @@ public class UserGroupService {
}
}
@GET
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
UserGroupsEntity
getUserGroups
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
public
UserGroupsEntity
getUserGroups
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
return
new
UserGroupsEntity
(
plugin
.
getUserGroups
(
username
));
return
new
UserGroupsEntity
(
plugin
.
getUserGroups
(
username
));
}
}
...
...
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/service/UserRosterService.java
View file @
818c37e7
...
@@ -35,7 +35,7 @@ public class UserRosterService {
...
@@ -35,7 +35,7 @@ public class UserRosterService {
}
}
@GET
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
RosterEntities
getUserRoster
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
public
RosterEntities
getUserRoster
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
return
plugin
.
getRosterEntities
(
username
);
return
plugin
.
getRosterEntities
(
username
);
}
}
...
...
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/service/UserService.java
View file @
818c37e7
...
@@ -28,7 +28,7 @@ public class UserService {
...
@@ -28,7 +28,7 @@ public class UserService {
}
}
@GET
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
UserEntities
getUsers
(
@QueryParam
(
"search"
)
String
userSearch
)
{
public
UserEntities
getUsers
(
@QueryParam
(
"search"
)
String
userSearch
)
{
return
plugin
.
getUserEntities
(
userSearch
);
return
plugin
.
getUserEntities
(
userSearch
);
}
}
...
@@ -41,7 +41,7 @@ public class UserService {
...
@@ -41,7 +41,7 @@ public class UserService {
@GET
@GET
@Path
(
"/{username}"
)
@Path
(
"/{username}"
)
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
UserEntity
getUser
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
public
UserEntity
getUser
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
return
plugin
.
getUserEntity
(
username
);
return
plugin
.
getUserEntity
(
username
);
}
}
...
...
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/service/UserServiceProperties.java
View file @
818c37e7
...
@@ -22,14 +22,14 @@ public class UserServiceProperties {
...
@@ -22,14 +22,14 @@ public class UserServiceProperties {
}
}
@GET
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
@Path
(
"/{key}"
)
@Path
(
"/{key}"
)
public
UserEntities
getUsersByPropertyKey
(
@PathParam
(
"key"
)
String
key
)
throws
ServiceException
{
public
UserEntities
getUsersByPropertyKey
(
@PathParam
(
"key"
)
String
key
)
throws
ServiceException
{
return
plugin
.
getUserEntitiesByProperty
(
key
,
null
);
return
plugin
.
getUserEntitiesByProperty
(
key
,
null
);
}
}
@GET
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
@Path
(
"/{key}/{value}"
)
@Path
(
"/{key}/{value}"
)
public
UserEntities
getUsersByPropertyKeyValue
(
@PathParam
(
"key"
)
String
key
,
@PathParam
(
"value"
)
String
value
)
public
UserEntities
getUsersByPropertyKeyValue
(
@PathParam
(
"key"
)
String
key
,
@PathParam
(
"value"
)
String
value
)
throws
ServiceException
{
throws
ServiceException
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment