-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/CCAFS/MARLO into staging
- Loading branch information
Showing
66 changed files
with
3,337 additions
and
1,280 deletions.
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
12 changes: 12 additions & 0 deletions
12
marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/dao/RestApiAuditlogDAO.java
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.cgiar.ccafs.marlo.data.dao; | ||
|
||
import org.cgiar.ccafs.marlo.data.model.RestApiAuditlog; | ||
|
||
/** | ||
* | ||
* @author tonyshikali | ||
*/ | ||
public interface RestApiAuditlogDAO { | ||
|
||
public void logThis(RestApiAuditlog restApiAuditLog); | ||
} |
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
27 changes: 27 additions & 0 deletions
27
marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/dao/mysql/RestApiAuditlogMySQLDAO.java
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.cgiar.ccafs.marlo.data.dao.mysql; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Named; | ||
import org.cgiar.ccafs.marlo.data.dao.RestApiAuditlogDAO; | ||
import org.cgiar.ccafs.marlo.data.model.RestApiAuditlog; | ||
import org.hibernate.SessionFactory; | ||
|
||
/** | ||
* | ||
* @author tonyshikali | ||
*/ | ||
@Named | ||
public class RestApiAuditlogMySQLDAO extends AbstractMarloDAO<RestApiAuditlog, Long> implements RestApiAuditlogDAO{ | ||
|
||
@Inject | ||
public RestApiAuditlogMySQLDAO(SessionFactory sessionFactory) { | ||
super(sessionFactory); | ||
} | ||
|
||
@Override | ||
public void logThis(RestApiAuditlog restApiAuditLog) { | ||
super.saveEntity(restApiAuditLog); | ||
} | ||
|
||
|
||
} |
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
13 changes: 13 additions & 0 deletions
13
marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/manager/RestApiAuditlogManager.java
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.cgiar.ccafs.marlo.data.manager; | ||
|
||
import org.cgiar.ccafs.marlo.data.model.RestApiAuditlog; | ||
|
||
/** | ||
* | ||
* @author tonyshikali | ||
*/ | ||
public interface RestApiAuditlogManager { | ||
|
||
public void logApiCall(RestApiAuditlog restApiAuditlog); | ||
|
||
} |
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
Oops, something went wrong.