Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XWIKI-6839 Support for named parameters in eventstream events
- Loading branch information
Jerome Velociter
committed
Aug 12, 2011
1 parent
cf2d2a6
commit 835d75f
Showing
8 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,9 @@ | |
|
||
import java.net.URL; | ||
import java.text.MessageFormat; | ||
import java.util.Collections; | ||
import java.util.Date; | ||
import java.util.Map; | ||
|
||
import org.xwiki.eventstream.Event; | ||
import org.xwiki.model.reference.DocumentReference; | ||
|
@@ -92,6 +94,9 @@ public class DefaultEvent implements Event | |
/** @see #getBody() */ | ||
private String body; | ||
|
||
/** @see #getParameters() */ | ||
private Map<String, String> parameters; | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
|
@@ -467,6 +472,27 @@ public void setDocumentTitle(String title) | |
this.documentTitle = title; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @see Event#getParameters() | ||
*/ | ||
public Map<String, String> getParameters() | ||
This comment has been minimized.
Sorry, something went wrong.
sdumitriu
Member
|
||
{ | ||
return this.parameters == null ? Collections.<String, String> emptyMap() : this.parameters; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* @see Event#setParameters(Map) | ||
* @see #getParameters() | ||
*/ | ||
public void setParameters(Map<String, String> parameters) | ||
This comment has been minimized.
Sorry, something went wrong.
sdumitriu
Member
|
||
{ | ||
this.parameters = parameters; | ||
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
*/ | ||
|
1 comment
on commit 835d75f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, pushed fixes following your remarks
The closing } should be right before /li