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
1663c8ec
Commit
1663c8ec
authored
Apr 30, 2015
by
Roman S
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #211 from alexproca/master
Userservice plugin update with JSON support
parents
ee1801ee
818c37e7
Changes
4
Hide 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 @
1663c8ec
...
...
@@ -25,7 +25,7 @@ public class UserGroupService {
}
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
UserGroupsEntity
getUserGroups
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
return
new
UserGroupsEntity
(
plugin
.
getUserGroups
(
username
));
}
...
...
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/service/UserRosterService.java
View file @
1663c8ec
...
...
@@ -35,7 +35,7 @@ public class UserRosterService {
}
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
RosterEntities
getUserRoster
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
return
plugin
.
getRosterEntities
(
username
);
}
...
...
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/service/UserService.java
View file @
1663c8ec
...
...
@@ -28,7 +28,7 @@ public class UserService {
}
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
UserEntities
getUsers
(
@QueryParam
(
"search"
)
String
userSearch
)
{
return
plugin
.
getUserEntities
(
userSearch
);
}
...
...
@@ -41,7 +41,7 @@ public class UserService {
@GET
@Path
(
"/{username}"
)
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
public
UserEntity
getUser
(
@PathParam
(
"username"
)
String
username
)
throws
ServiceException
{
return
plugin
.
getUserEntity
(
username
);
}
...
...
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/service/UserServiceProperties.java
View file @
1663c8ec
...
...
@@ -22,14 +22,14 @@ public class UserServiceProperties {
}
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
@Path
(
"/{key}"
)
public
UserEntities
getUsersByPropertyKey
(
@PathParam
(
"key"
)
String
key
)
throws
ServiceException
{
return
plugin
.
getUserEntitiesByProperty
(
key
,
null
);
}
@GET
@Produces
(
MediaType
.
APPLICATION_XML
)
@Produces
(
{
MediaType
.
APPLICATION_XML
,
MediaType
.
APPLICATION_JSON
}
)
@Path
(
"/{key}/{value}"
)
public
UserEntities
getUsersByPropertyKeyValue
(
@PathParam
(
"key"
)
String
key
,
@PathParam
(
"value"
)
String
value
)
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