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
f7a740d1
Commit
f7a740d1
authored
Dec 24, 2015
by
Ivan A. Shmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend MUCEventDelegate
add event delegate on decline invitation
parent
80386d5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
MUCEventDelegate.java
src/java/org/jivesoftware/openfire/muc/MUCEventDelegate.java
+20
-2
No files found.
src/java/org/jivesoftware/openfire/muc/MUCEventDelegate.java
View file @
f7a740d1
...
...
@@ -34,8 +34,13 @@ public abstract class MUCEventDelegate {
public
enum
InvitationResult
{
HANDLED_BY_DELEGATE
,
HANDLED_BY_OPENFIRE
,
REJECTED
;
}
REJECTED
};
public
enum
InvitationRejectionResult
{
HANDLED_BY_DELEGATE
,
HANDLED_BY_OPENFIRE
,
};
/**
* This event will be triggered when an entity joins an existing room.
...
...
@@ -61,6 +66,19 @@ public abstract class MUCEventDelegate {
*/
public
abstract
InvitationResult
sendingInvitation
(
MUCRoom
room
,
JID
inviteeJID
,
JID
inviterJID
,
String
inviteMessage
);
/**
* This event will be triggered when an entity reject invite from someone to a room.
*
* Returns a String indicating whether the invitation should be abandoned, handled by the delegate, or handled by openfire.
*
* @param room the MUC room.
* @param to the JID of the user the rejecting of invitation will be sent to.
* @param from the JID of the user that is sending the rejecting of invitation
* @param reason the (optional) message that is sent explaining the rejection invitation
* @return true if the user is allowed to join the room.
*/
public
abstract
InvitationRejectionResult
sendingInvitationRejection
(
MUCRoom
room
,
JID
to
,
JID
from
,
String
reason
);
/**
* Returns a map containing room configuration variables and values.
*
...
...
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