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
cff8d0f2
Commit
cff8d0f2
authored
Jun 23, 2015
by
Guus der Kinderen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OF-925: SessionData should be extensible.
parent
3ede2bc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
SessionData.java
src/java/org/jivesoftware/openfire/commands/SessionData.java
+7
-7
No files found.
src/java/org/jivesoftware/openfire/commands/SessionData.java
View file @
cff8d0f2
...
...
@@ -59,7 +59,7 @@ public class SessionData {
*/
private
int
stage
;
SessionData
(
String
sessionid
,
JID
owner
)
{
protected
SessionData
(
String
sessionid
,
JID
owner
)
{
this
.
id
=
sessionid
;
this
.
creationStamp
=
System
.
currentTimeMillis
();
this
.
stage
=
-
1
;
...
...
@@ -83,11 +83,11 @@ public class SessionData {
return
creationStamp
;
}
AdHocCommand
.
Action
getExecuteAction
()
{
protected
AdHocCommand
.
Action
getExecuteAction
()
{
return
executeAction
;
}
void
setExecuteAction
(
AdHocCommand
.
Action
executeAction
)
{
protected
void
setExecuteAction
(
AdHocCommand
.
Action
executeAction
)
{
this
.
executeAction
=
executeAction
;
}
...
...
@@ -96,7 +96,7 @@ public class SessionData {
*
* @param allowedActions list of valid actions.
*/
void
setAllowedActions
(
List
<
AdHocCommand
.
Action
>
allowedActions
)
{
protected
void
setAllowedActions
(
List
<
AdHocCommand
.
Action
>
allowedActions
)
{
if
(
allowedActions
==
null
)
{
allowedActions
=
new
ArrayList
<
AdHocCommand
.
Action
>();
}
...
...
@@ -110,7 +110,7 @@ public class SessionData {
* @param actionName the name of the action to validate.
* @return true if the specified action is valid in the current stage.
*/
boolean
isValidAction
(
String
actionName
)
{
protected
boolean
isValidAction
(
String
actionName
)
{
for
(
AdHocCommand
.
Action
action
:
allowedActions
)
{
if
(
actionName
.
equals
(
action
.
name
()))
{
return
true
;
...
...
@@ -119,7 +119,7 @@ public class SessionData {
return
false
;
}
void
addStageForm
(
Map
<
String
,
List
<
String
>>
data
)
{
protected
void
addStageForm
(
Map
<
String
,
List
<
String
>>
data
)
{
stagesData
.
put
(
stage
,
data
);
}
...
...
@@ -156,7 +156,7 @@ public class SessionData {
*
* @param stage the current stage where the requester is located.
*/
void
setStage
(
int
stage
)
{
protected
void
setStage
(
int
stage
)
{
this
.
stage
=
stage
;
}
...
...
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