[New] added StrolchTransaction.getLocale()
This commit is contained in:
parent
ef2b57d6dd
commit
bdda43822d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue