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
7018ba41
Commit
7018ba41
authored
Nov 24, 2015
by
daryl herzmann
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #409 from Redor/plugins
Update REST API plugin to 1.2.1
parents
82e13c81
19c5198d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
702 additions
and
688 deletions
+702
-688
changelog.html
src/plugins/restAPI/changelog.html
+127
-122
plugin.xml
src/plugins/restAPI/plugin.xml
+20
-20
MUCRoomController.java
...re/openfire/plugin/rest/controller/MUCRoomController.java
+555
-546
No files found.
src/plugins/restAPI/changelog.html
View file @
7018ba41
...
@@ -44,7 +44,12 @@
...
@@ -44,7 +44,12 @@
REST API Plugin Changelog
REST API Plugin Changelog
</h1>
</h1>
<p><b>
1.2.0
</b>
-- October 12, 2015
</p>
<p><b>
1.2.1
</b>
-- November 24th, 2015
</p>
<ul>
<li>
Fixed: Cluster issue by creating a new chat room
</li>
</ul>
<p><b>
1.2.0
</b>
-- October 12th, 2015
</p>
<ul>
<ul>
<li>
[
<a
href=
'http://www.igniterealtime.org/issues/browse/OF-953'
>
OF-953
</a>
] - Updated JSP libraries.
</li>
<li>
[
<a
href=
'http://www.igniterealtime.org/issues/browse/OF-953'
>
OF-953
</a>
] - Updated JSP libraries.
</li>
<li>
Requires Openfire 3.11.0.
</li>
<li>
Requires Openfire 3.11.0.
</li>
...
...
src/plugins/restAPI/plugin.xml
View file @
7018ba41
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
<name>
REST API
</name>
<name>
REST API
</name>
<description>
Allows administration over a RESTful API.
</description>
<description>
Allows administration over a RESTful API.
</description>
<author>
Roman Soldatow
</author>
<author>
Roman Soldatow
</author>
<version>
1.2.
0
</version>
<version>
1.2.
1
</version>
<date>
1
0/12/2015
</date>
<date>
1
1/24/2015
</date>
<minServerVersion>
3.1
1.0 alpha
</minServerVersion>
<minServerVersion>
3.1
0.0
</minServerVersion>
<adminconsole>
<adminconsole>
<tab
id=
"tab-server"
>
<tab
id=
"tab-server"
>
<sidebar
id=
"sidebar-server-settings"
>
<sidebar
id=
"sidebar-server-settings"
>
...
...
src/plugins/restAPI/src/java/org/jivesoftware/openfire/plugin/rest/controller/MUCRoomController.java
View file @
7018ba41
...
@@ -8,6 +8,7 @@ import java.util.List;
...
@@ -8,6 +8,7 @@ import java.util.List;
import
javax.ws.rs.core.Response
;
import
javax.ws.rs.core.Response
;
import
org.jivesoftware.openfire.XMPPServer
;
import
org.jivesoftware.openfire.XMPPServer
;
import
org.jivesoftware.openfire.cluster.ClusterManager
;
import
org.jivesoftware.openfire.plugin.rest.entity.MUCChannelType
;
import
org.jivesoftware.openfire.plugin.rest.entity.MUCChannelType
;
import
org.jivesoftware.openfire.plugin.rest.entity.MUCRoomEntities
;
import
org.jivesoftware.openfire.plugin.rest.entity.MUCRoomEntities
;
import
org.jivesoftware.openfire.plugin.rest.entity.MUCRoomEntity
;
import
org.jivesoftware.openfire.plugin.rest.entity.MUCRoomEntity
;
...
@@ -20,11 +21,14 @@ import org.jivesoftware.openfire.muc.ForbiddenException;
...
@@ -20,11 +21,14 @@ import org.jivesoftware.openfire.muc.ForbiddenException;
import
org.jivesoftware.openfire.muc.MUCRole
;
import
org.jivesoftware.openfire.muc.MUCRole
;
import
org.jivesoftware.openfire.muc.MUCRoom
;
import
org.jivesoftware.openfire.muc.MUCRoom
;
import
org.jivesoftware.openfire.muc.NotAllowedException
;
import
org.jivesoftware.openfire.muc.NotAllowedException
;
import
org.jivesoftware.openfire.muc.cluster.RoomUpdatedEvent
;
import
org.jivesoftware.openfire.muc.spi.LocalMUCRoom
;
import
org.jivesoftware.openfire.group.ConcurrentGroupList
;
import
org.jivesoftware.openfire.group.ConcurrentGroupList
;
import
org.jivesoftware.openfire.group.Group
;
import
org.jivesoftware.openfire.group.Group
;
import
org.jivesoftware.openfire.plugin.rest.utils.MUCRoomUtils
;
import
org.jivesoftware.openfire.plugin.rest.utils.MUCRoomUtils
;
import
org.jivesoftware.openfire.plugin.rest.utils.UserUtils
;
import
org.jivesoftware.openfire.plugin.rest.utils.UserUtils
;
import
org.jivesoftware.util.AlreadyExistsException
;
import
org.jivesoftware.util.AlreadyExistsException
;
import
org.jivesoftware.util.cache.CacheFactory
;
import
org.xmpp.packet.JID
;
import
org.xmpp.packet.JID
;
/**
/**
...
@@ -239,6 +243,11 @@ public class MUCRoomController {
...
@@ -239,6 +243,11 @@ public class MUCRoomController {
room
.
setMembersOnly
(
mucRoomEntity
.
isMembersOnly
());
room
.
setMembersOnly
(
mucRoomEntity
.
isMembersOnly
());
room
.
setModerated
(
mucRoomEntity
.
isModerated
());
room
.
setModerated
(
mucRoomEntity
.
isModerated
());
// Fire RoomUpdateEvent if cluster is started
if
(
ClusterManager
.
isClusteringStarted
())
{
CacheFactory
.
doClusterTask
(
new
RoomUpdatedEvent
((
LocalMUCRoom
)
room
));
}
// Set broadcast presence roles
// Set broadcast presence roles
if
(
mucRoomEntity
.
getBroadcastPresenceRoles
()
!=
null
)
{
if
(
mucRoomEntity
.
getBroadcastPresenceRoles
()
!=
null
)
{
room
.
setRolesToBroadcastPresence
(
mucRoomEntity
.
getBroadcastPresenceRoles
());
room
.
setRolesToBroadcastPresence
(
mucRoomEntity
.
getBroadcastPresenceRoles
());
...
...
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