public class ApplicationServerRestClient<V,T extends de.factoryfx.factory.FactoryBase<?,V>>
extends java.lang.Object
| Constructor and Description |
|---|
ApplicationServerRestClient(de.factoryfx.server.rest.client.RestClient restClient,
java.lang.Class<T> factoryRootClass,
java.lang.String user,
java.lang.String passwordHash) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkUser() |
de.factoryfx.data.merge.MergeDiffInfo |
getDiff(de.factoryfx.factory.datastorage.StoredFactoryMetadata historyEntry) |
T |
getHistoryFactory(java.lang.String id) |
java.util.Collection<de.factoryfx.factory.datastorage.StoredFactoryMetadata> |
getHistoryFactoryList() |
java.util.Locale |
getLocale() |
java.util.List<de.factoryfx.data.merge.AttributeDiffInfo> |
getSingleFactoryHistory(java.lang.String factoryId) |
de.factoryfx.factory.datastorage.FactoryAndNewMetadata<T> |
prepareNewFactory() |
V |
query(V visitor) |
de.factoryfx.factory.log.FactoryUpdateLog |
revert(de.factoryfx.factory.datastorage.StoredFactoryMetadata historyFactory) |
de.factoryfx.data.merge.MergeDiffInfo |
simulateUpdateCurrentFactory(de.factoryfx.factory.datastorage.FactoryAndNewMetadata<T> update) |
de.factoryfx.factory.log.FactoryUpdateLog |
updateCurrentFactory(de.factoryfx.factory.datastorage.FactoryAndNewMetadata<T> update,
java.lang.String comment) |
public ApplicationServerRestClient(de.factoryfx.server.rest.client.RestClient restClient,
java.lang.Class<T> factoryRootClass,
java.lang.String user,
java.lang.String passwordHash)
public de.factoryfx.factory.log.FactoryUpdateLog updateCurrentFactory(de.factoryfx.factory.datastorage.FactoryAndNewMetadata<T> update, java.lang.String comment)
public de.factoryfx.data.merge.MergeDiffInfo simulateUpdateCurrentFactory(de.factoryfx.factory.datastorage.FactoryAndNewMetadata<T> update)
public de.factoryfx.factory.datastorage.FactoryAndNewMetadata<T> prepareNewFactory()
FactoryStorage.getPrepareNewFactory()public de.factoryfx.data.merge.MergeDiffInfo getDiff(de.factoryfx.factory.datastorage.StoredFactoryMetadata historyEntry)
public T getHistoryFactory(java.lang.String id)
public java.util.Collection<de.factoryfx.factory.datastorage.StoredFactoryMetadata> getHistoryFactoryList()
public boolean checkUser()
public java.util.Locale getLocale()
public de.factoryfx.factory.log.FactoryUpdateLog revert(de.factoryfx.factory.datastorage.StoredFactoryMetadata historyFactory)
public java.util.List<de.factoryfx.data.merge.AttributeDiffInfo> getSingleFactoryHistory(java.lang.String factoryId)