Search in sources :

Example 1 with YamlDeserializer

use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer in project be5 by DevelopmentOnTheEdge.

the class Serialization method reloadMassChanges.

public static MassChanges reloadMassChanges(final Path file, final Module application) throws ReadException {
    checkProject(application.getProject());
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadMassChanges(file, application);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 2 with YamlDeserializer

use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer in project be5 by DevelopmentOnTheEdge.

the class Serialization method reloadForms.

public static JavaScriptForms reloadForms(final Path file, final Module target) throws ReadException {
    checkProject(target.getProject());
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadForms(file, target);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 3 with YamlDeserializer

use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer in project be5 by DevelopmentOnTheEdge.

the class Serialization method reloadConnectionProfiles.

public static BeConnectionProfiles reloadConnectionProfiles(final Path file, final BeConnectionProfileType type, final BeConnectionProfilesRoot target) throws ReadException {
    checkProject(target.getProject());
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadConnectionProfiles(file, type, target);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 4 with YamlDeserializer

use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer in project be5 by DevelopmentOnTheEdge.

the class Serialization method reloadSecurity.

public static SecurityCollection reloadSecurity(final Path file, final Project project) throws ReadException {
    checkProject(project);
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadSecurityCollection(file, project);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Example 5 with YamlDeserializer

use of com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer in project be5 by DevelopmentOnTheEdge.

the class Serialization method reloadLocalization.

public static LanguageLocalizations reloadLocalization(final Path file, final Localizations localizations) throws ReadException {
    checkProject(localizations.getProject());
    turnOffAutomaticSerialization();
    try {
        return new YamlDeserializer(new LoadContext()).reloadLocalization(file, localizations);
    } finally {
        turnOnAutomaticSerialization();
    }
}
Also used : YamlDeserializer(com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)

Aggregations

YamlDeserializer (com.developmentontheedge.be5.metadata.serialization.yaml.YamlDeserializer)10 ReadException (com.developmentontheedge.be5.metadata.exception.ReadException)3 ProjectLoadException (com.developmentontheedge.be5.metadata.exception.ProjectLoadException)1 BeConnectionProfile (com.developmentontheedge.be5.metadata.model.BeConnectionProfile)1 Entity (com.developmentontheedge.be5.metadata.model.Entity)1 Query (com.developmentontheedge.be5.metadata.model.Query)1