Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0357ee83
authored
Jan 29, 2015
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
this should work
1 parent
fdf4bd86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
code/moya-beans-client/ejbModule/fi/codecrew/moya/beans/TicketBeanLocal.java
code/moya-beans/ejbModule/fi/codecrew/moya/beans/TicketBean.java
code/moya-web/src/main/java/fi/codecrew/moya/web/TestDataView.java
code/moya-beans-client/ejbModule/fi/codecrew/moya/beans/TicketBeanLocal.java
View file @
0357ee8
...
...
@@ -33,5 +33,5 @@ public interface TicketBeanLocal {
void
sendTicketEmail
(
EventUser
user
,
String
url
);
void
sendTicketEmailToAll
(
String
url
);
List
<
EventUser
>
getSendToAllUsers
(
);
}
code/moya-beans/ejbModule/fi/codecrew/moya/beans/TicketBean.java
View file @
0357ee8
...
...
@@ -148,12 +148,13 @@ public class TicketBean implements TicketBeanLocal {
}
/**
* Quick and dirty, you can refactor this
* @param url
*/
@Override
public
void
sendTicketEmailToAll
(
String
url
)
{
List
<
EventUser
>
getSendToAllUsers
(
)
{
List
<
GroupMembership
>
ships
=
gmemfacade
.
findGroupmemberships
();
...
...
@@ -174,12 +175,11 @@ public class TicketBean implements TicketBeanLocal {
}
}
for
(
EventUser
user
:
usersWithTickets
)
{
this
.
sendTicketEmail
(
user
,
url
);
}
return
usersWithTickets
;
}
private
byte
[]
getTicketPdf
(
EventUser
user
,
String
codetext
)
{
PDF
pdf
=
null
;
...
...
code/moya-web/src/main/java/fi/codecrew/moya/web/TestDataView.java
View file @
0357ee8
...
...
@@ -90,7 +90,11 @@ public class TestDataView extends GenericCDIView {
public
void
sendMultibuggageSpam
()
{
if
(
super
.
requirePermissions
(
EventPermission
.
MANAGE_PRIVATE_PROPERTIES
))
{
ticketBean
.
sendTicketEmailToAll
(
eticketView
.
getTicketUrl
());
List
<
EventUser
>
usersWithTickets
=
ticketBean
.
getSendToAllUsers
();
for
(
EventUser
user
:
usersWithTickets
)
{
ticketBean
.
sendTicketEmail
(
user
,
eticketView
.
getTicketUrl
());
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment