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
37a1c4fe
Commit
37a1c4fe
authored
May 31, 2017
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-1336: Update plugins to match new API.
These changes should be backwards compatible.
parent
39e33fe1
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
11 deletions
+21
-11
changelog.html
src/plugins/justmarried/changelog.html
+6
-0
plugin.xml
src/plugins/justmarried/plugin.xml
+2
-2
pom.xml
src/plugins/justmarried/pom.xml
+1
-1
JustMarriedPlugin.java
...vesoftware/openfire/plugin/married/JustMarriedPlugin.java
+1
-3
changelog.html
src/plugins/restAPI/changelog.html
+6
-0
plugin.xml
src/plugins/restAPI/plugin.xml
+2
-2
pom.xml
src/plugins/restAPI/pom.xml
+2
-0
JustMarriedController.java
...penfire/plugin/rest/controller/JustMarriedController.java
+1
-3
No files found.
src/plugins/justmarried/changelog.html
View file @
37a1c4fe
...
@@ -44,6 +44,12 @@
...
@@ -44,6 +44,12 @@
Just married Plugin Changelog
Just married Plugin Changelog
</h1>
</h1>
<p><b>
1.2.1
</b>
-- May 31, 2017
</p>
<ul>
<li>
Updated to match new API in Openfire 4.2.0
</li>
<li>
Slight optimization for copying the user properties.
</li>
</ul>
<p><b>
1.2.0
</b>
-- October 12, 2015
</p>
<p><b>
1.2.0
</b>
-- October 12, 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>
...
...
src/plugins/justmarried/plugin.xml
View file @
37a1c4fe
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<name>
Just married
</name>
<name>
Just married
</name>
<description>
Allows admins to rename or copy users
</description>
<description>
Allows admins to rename or copy users
</description>
<author>
Holger Bergunde
</author>
<author>
Holger Bergunde
</author>
<version>
1.2.
0
</version>
<version>
1.2.
1
</version>
<date>
10/12/2015
</date>
<date>
05/31/2017
</date>
<minServerVersion>
4.0.0
</minServerVersion>
<minServerVersion>
4.0.0
</minServerVersion>
<adminconsole>
<adminconsole>
...
...
src/plugins/justmarried/pom.xml
View file @
37a1c4fe
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</parent>
</parent>
<groupId>
org.igniterealtime.openfire.plugins
</groupId>
<groupId>
org.igniterealtime.openfire.plugins
</groupId>
<artifactId>
justmarried
</artifactId>
<artifactId>
justmarried
</artifactId>
<version>
1.2.
0
</version>
<version>
1.2.
1
</version>
<name>
JustMarried Plugin
</name>
<name>
JustMarried Plugin
</name>
<description>
Allows admins to rename or copy users
</description>
<description>
Allows admins to rename or copy users
</description>
...
...
src/plugins/justmarried/src/java/org/jivesoftware/openfire/plugin/married/JustMarriedPlugin.java
View file @
37a1c4fe
...
@@ -98,9 +98,7 @@ public class JustMarriedPlugin implements Plugin {
...
@@ -98,9 +98,7 @@ public class JustMarriedPlugin implements Plugin {
}
}
private
static
void
copyProperties
(
User
currentUser
,
User
newUser
)
{
private
static
void
copyProperties
(
User
currentUser
,
User
newUser
)
{
for
(
String
key
:
currentUser
.
getProperties
().
keySet
())
{
newUser
.
getProperties
().
putAll
(
currentUser
.
getProperties
()
);
newUser
.
getProperties
().
put
(
key
,
User
.
getPropertyValue
(
currentUser
.
getUsername
(),
key
));
}
}
}
private
static
void
copyRoster
(
User
currentUser
,
User
newUser
,
String
currentUserName
)
{
private
static
void
copyRoster
(
User
currentUser
,
User
newUser
,
String
currentUserName
)
{
...
...
src/plugins/restAPI/changelog.html
View file @
37a1c4fe
...
@@ -44,6 +44,12 @@
...
@@ -44,6 +44,12 @@
REST API Plugin Changelog
REST API Plugin Changelog
</h1>
</h1>
<p><b>
1.2.6
</b>
-- May 31, 2017
</p>
<ul>
<li>
Updated to match new API in Openfire 4.2.0
</li>
<li>
Slight optimization for copying the user properties.
</li>
</ul>
<p><b>
1.2.5
</b>
-- October 14th, 2016
</p>
<p><b>
1.2.5
</b>
-- October 14th, 2016
</p>
<ul>
<ul>
<li>
Updated to match new API in Openfire 4.1.0
</li>
<li>
Updated to match new API in Openfire 4.1.0
</li>
...
...
src/plugins/restAPI/plugin.xml
View file @
37a1c4fe
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<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.
5
</version>
<version>
1.2.
6
</version>
<date>
10/14/2016
</date>
<date>
05/31/2017
</date>
<minServerVersion>
4.1.0
</minServerVersion>
<minServerVersion>
4.1.0
</minServerVersion>
<adminconsole>
<adminconsole>
<tab
id=
"tab-server"
>
<tab
id=
"tab-server"
>
...
...
src/plugins/restAPI/pom.xml
View file @
37a1c4fe
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
</parent>
</parent>
<groupId>
org.igniterealtime.openfire.plugins
</groupId>
<groupId>
org.igniterealtime.openfire.plugins
</groupId>
<artifactId>
restAPI
</artifactId>
<artifactId>
restAPI
</artifactId>
<version>
1.2.6
</version>
<name>
Rest API Plugin
</name>
<name>
Rest API Plugin
</name>
<description>
Allows administration over a RESTful API.
</description>
<build>
<build>
<sourceDirectory>
src/java
</sourceDirectory>
<sourceDirectory>
src/java
</sourceDirectory>
...
...
src/plugins/restAPI/src/java/org/jivesoftware/openfire/plugin/rest/controller/JustMarriedController.java
View file @
37a1c4fe
...
@@ -148,9 +148,7 @@ public class JustMarriedController {
...
@@ -148,9 +148,7 @@ public class JustMarriedController {
* the new user
* the new user
*/
*/
private
static
void
copyProperties
(
User
currentUser
,
User
newUser
)
{
private
static
void
copyProperties
(
User
currentUser
,
User
newUser
)
{
for
(
String
key
:
currentUser
.
getProperties
().
keySet
())
{
newUser
.
getProperties
().
putAll
(
currentUser
.
getProperties
()
);
newUser
.
getProperties
().
put
(
key
,
User
.
getPropertyValue
(
currentUser
.
getUsername
(),
key
));
}
}
}
/**
/**
...
...
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