use of com.developmentontheedge.be5.metadata.model.SecurityCollection 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();
}
}
use of com.developmentontheedge.be5.metadata.model.SecurityCollection in project be5 by DevelopmentOnTheEdge.
the class YamlSerializer method serialize.
public void serialize(final SecurityCollection security) throws WriteException {
this.fileSystem = new ProjectFileSystem(security.getProject());
new SecuritySerializer().serialize(security);
}
use of com.developmentontheedge.be5.metadata.model.SecurityCollection in project be5 by DevelopmentOnTheEdge.
the class YamlDeserializer method reloadSecurityCollection.
public SecurityCollection reloadSecurityCollection(final Path path, final Project project) throws ReadException {
final SecurityCollection security = project.newSecurityCollection();
final SecurityDeserializer securityDeserializer = new SecurityDeserializer(path, security);
securityDeserializer.deserialize();
DataElementUtils.saveQuiet(securityDeserializer.getResult());
return securityDeserializer.getResult();
}
Aggregations