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
b66e8de0
Commit
b66e8de0
authored
May 05, 2014
by
akrherz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-788 only set group properties on newly created groups
parent
1d2e1a01
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
changelog.html
src/plugins/userservice/changelog.html
+6
-0
plugin.xml
src/plugins/userservice/plugin.xml
+2
-2
UserServicePlugin.java
...a/org/jivesoftware/openfire/plugin/UserServicePlugin.java
+5
-7
No files found.
src/plugins/userservice/changelog.html
View file @
b66e8de0
...
...
@@ -44,6 +44,12 @@
User Service Plugin Changelog
</h1>
<p><b>
1.4.3
</b>
-- May 5th, 2014
</p>
<ul>
<li>
Fixed OF-0788: Only set group properties on newly created group
</li>
</ul>
<p><b>
1.4.2
</b>
-- December 15th, 2013
</p>
<ul>
<li>
Fixed OF-0719: Remove all roster items as well when deleting a user
</li>
...
...
src/plugins/userservice/plugin.xml
View file @
b66e8de0
...
...
@@ -5,8 +5,8 @@
<name>
User Service
</name>
<description>
Allows administration of users via HTTP requests.
</description>
<author>
Justin Hunt
</author>
<version>
1.4.
2
</version>
<date>
0
9/13/2013
</date>
<version>
1.4.
3
</version>
<date>
0
5/05/2014
</date>
<minServerVersion>
3.9.0
</minServerVersion>
<adminconsole>
...
...
src/plugins/userservice/src/java/org/jivesoftware/openfire/plugin/UserServicePlugin.java
View file @
b66e8de0
...
...
@@ -107,16 +107,14 @@ public class UserServicePlugin implements Plugin, PropertyEventListener {
Group
group
=
null
;
try
{
GroupManager
.
getInstance
().
getGroup
(
groupName
);
group
=
GroupManager
.
getInstance
().
getGroup
(
groupName
);
}
catch
(
GroupNotFoundException
e
)
{
// Create this group ;
GroupManager
.
getInstance
().
createGroup
(
groupName
);
group
=
GroupManager
.
getInstance
().
createGroup
(
groupName
);
group
.
getProperties
().
put
(
"sharedRoster.showInRoster"
,
"onlyGroup"
);
group
.
getProperties
().
put
(
"sharedRoster.displayName"
,
groupName
);
group
.
getProperties
().
put
(
"sharedRoster.groupList"
,
""
);
}
group
=
GroupManager
.
getInstance
().
getGroup
(
groupName
);
group
.
getProperties
().
put
(
"sharedRoster.showInRoster"
,
"onlyGroup"
);
group
.
getProperties
().
put
(
"sharedRoster.displayName"
,
groupName
);
group
.
getProperties
().
put
(
"sharedRoster.groupList"
,
""
);
groups
.
add
(
group
);
}
for
(
Group
group
:
groups
)
{
...
...
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