[New] added StrolchTransaction.getLocale()

This commit is contained in:
Robert von Burg 2019-08-30 16:00:43 +02:00
parent ef2b57d6dd
commit bdda43822d
2 changed files with 14 additions and 1 deletions

View File

@ -174,7 +174,12 @@ public abstract class AbstractTransaction implements StrolchTransaction {
@Override
public Certificate getCertificate() {
return certificate;
return this.certificate;
}
@Override
public Locale getLocale() {
return this.certificate.getLocale();
}
@Override

View File

@ -16,6 +16,7 @@
package li.strolch.persistence.api;
import java.util.List;
import java.util.Locale;
import java.util.Optional;
import java.util.stream.Stream;
@ -110,6 +111,13 @@ public interface StrolchTransaction extends AutoCloseable {
*/
Certificate getCertificate();
/**
* Returns the {@link Locale} for the {@link Certificate}
*
* @return the {@link Locale} for the {@link Certificate}
*/
Locale getLocale();
/**
* Returns the {@link PrivilegeContext} for this TX's certificate
*