package org.openengsb.drools.model;
/**

Copyright 2009 OpenEngSB Division, Vienna University of Technology

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE\-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*/

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openengsb.drools.MessageHelper;

@SuppressWarnings("serial")
public class MessageHelperImpl implements MessageHelper {

    private static Log log = LogFactory.getLog(MessageHelperImpl.class);

    @Override
    public boolean createIssue(String subject, String body) {
        log.info("would create issue " + subject);
        log.info("issue-text: ");
        log.info(body);
        return true;
    }

    @Override
    public boolean sendNotification(String email, String subject, String body) {
        log.info("would send email-notification to " + email);
        log.info("Subject: " + subject);
        log.info("Body: " + body);
        return true;
    }
}

@@ -33,13 +33,15 @@
 el;%0A
+%0A
 /**%0A%0A
+ 
 Copy
@@ -104,16 +104,17 @@
 nology%0A%0A
+ 
 Licensed
@@ -169,16 +169,17 @@
 ense%22);%0A
+ 
 you may 
@@ -235,16 +235,17 @@
 icense.%0A
+ 
 You may 
@@ -277,19 +277,16 @@
 nse at%0A%0A
-   
  http://
@@ -323,16 +323,17 @@
 E%5C-2.0%0A%0A
+ 
 Unless r
@@ -392,16 +392,17 @@
 oftware%0A
+ 
 distribu
@@ -459,16 +459,17 @@
  BASIS,%0A
+ 
 WITHOUT 
@@ -533,16 +533,17 @@
 mplied.%0A
+ 
 See the 
@@ -602,16 +602,17 @@
 ons and%0A
+ 
 limitati
@@ -635,16 +635,17 @@
 cense.%0A%0A
+ 
 */%0A%0Aimpo
@@ -872,15 +872,8 @@
 ate 
-static 
 Log 
@@ -900,31 +900,18 @@
 Log(
-MessageHelperImpl.c
+getC
 lass
+()
 );%0A%0A

use non-static log so class can be easily renamed.