Search in sources :

Example 1 with SharedJsonSerializer

use of org.bimserver.emf.SharedJsonSerializer in project BIMserver by opensourceBIM.

the class ClientIfcModel method checkin.

public void checkin(long poid, String comment) throws ServerException, UserException, PublicInterfaceNotFoundException {
    this.fixOids(new OidProvider() {

        private long c = 1;

        @Override
        public long newOid(EClass eClass) {
            return c++;
        }
    });
    SharedJsonSerializer sharedJsonSerializer = new SharedJsonSerializer(this, false);
    SDeserializerPluginConfiguration deserializer = bimServerClient.getServiceInterface().getSuggestedDeserializerForExtension("json", poid);
    bimServerClient.checkin(poid, comment, deserializer.getOid(), false, Flow.SYNC, -1, "test", new SerializerInputstream(sharedJsonSerializer));
}
Also used : SharedJsonSerializer(org.bimserver.emf.SharedJsonSerializer) EClass(org.eclipse.emf.ecore.EClass) SDeserializerPluginConfiguration(org.bimserver.interfaces.objects.SDeserializerPluginConfiguration) OidProvider(org.bimserver.emf.OidProvider) SerializerInputstream(org.bimserver.plugins.serializers.SerializerInputstream)

Aggregations

OidProvider (org.bimserver.emf.OidProvider)1 SharedJsonSerializer (org.bimserver.emf.SharedJsonSerializer)1 SDeserializerPluginConfiguration (org.bimserver.interfaces.objects.SDeserializerPluginConfiguration)1 SerializerInputstream (org.bimserver.plugins.serializers.SerializerInputstream)1 EClass (org.eclipse.emf.ecore.EClass)1