[New] added tx.getCertificate()

This commit is contained in:
Robert von Burg 2015-01-23 12:08:19 +01:00
parent be6f1d170f
commit 569c745cc7
2 changed files with 13 additions and 0 deletions

View File

@ -151,6 +151,11 @@ public abstract class AbstractTransaction implements StrolchTransaction {
return this.realm;
}
@Override
public Certificate getCertificate() {
return certificate;
}
@Override
public void setCloseStrategy(TransactionCloseStrategy closeStrategy) {
this.closeStrategy = closeStrategy;

View File

@ -17,6 +17,7 @@ package li.strolch.persistence.api;
import java.util.List;
import ch.eitchnet.privilege.model.Certificate;
import li.strolch.agent.api.AuditTrail;
import li.strolch.agent.api.OrderMap;
import li.strolch.agent.api.ResourceMap;
@ -93,6 +94,13 @@ public interface StrolchTransaction extends AutoCloseable {
*/
public String getRealmName();
/**
* Returns the {@link Certificate} which allowed this TX to be opened
*
* @return the {@link Certificate} which allowed this TX to be opened
*/
public Certificate getCertificate();
/**
* Returns a reference to the {@link AuditTrail} for the {@link StrolchRealm} for which this transaction was opened
*