Class ModelChangeImpl
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.rdfservice.impl.ModelChangeImpl
-
- All Implemented Interfaces:
ModelChange
public class ModelChangeImpl extends Object implements ModelChange
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.cornell.mannlib.vitro.webapp.rdfservice.ModelChange
ModelChange.Operation
-
-
Constructor Summary
Constructors Constructor Description ModelChangeImpl()ModelChangeImpl(InputStream serializedModel, RDFService.ModelSerializationFormat serializationFormat, ModelChange.Operation operation, String graphURI)Deprecated.ModelChangeImpl(InputStream serializedModel, RDFService.ModelSerializationFormat serializationFormat, ModelChange.Operation operation, String graphURI, String userId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGraphURI()ModelChange.OperationgetOperation()RDFService.ModelSerializationFormatgetSerializationFormat()InputStreamgetSerializedModel()StringgetUserId()voidsetGraphURI(String graphURI)voidsetOperation(ModelChange.Operation operation)voidsetSerializationFormat(RDFService.ModelSerializationFormat serializationFormat)voidsetSerializedModel(InputStream serializedModel)voidsetUserId(String userId)StringtoString()
-
-
-
Constructor Detail
-
ModelChangeImpl
public ModelChangeImpl()
-
ModelChangeImpl
@Deprecated public ModelChangeImpl(InputStream serializedModel, RDFService.ModelSerializationFormat serializationFormat, ModelChange.Operation operation, String graphURI)
Deprecated.
-
ModelChangeImpl
public ModelChangeImpl(InputStream serializedModel, RDFService.ModelSerializationFormat serializationFormat, ModelChange.Operation operation, String graphURI, String userId)
-
-
Method Detail
-
getSerializedModel
public InputStream getSerializedModel()
- Specified by:
getSerializedModelin interfaceModelChange- Returns:
- InputStream - the serialized model (collection of RDF triples) representing a change to make
-
setSerializedModel
public void setSerializedModel(InputStream serializedModel)
- Specified by:
setSerializedModelin interfaceModelChange- Parameters:
serializedModel- - the serialized model (collection of RDF triples) representing a change to make
-
getSerializationFormat
public RDFService.ModelSerializationFormat getSerializationFormat()
- Specified by:
getSerializationFormatin interfaceModelChange- Returns:
- RDFService.ModelSerializationFormat - the serialization format of the model
-
setSerializationFormat
public void setSerializationFormat(RDFService.ModelSerializationFormat serializationFormat)
- Specified by:
setSerializationFormatin interfaceModelChange- Parameters:
serializationFormat- - the serialization format of the model
-
getOperation
public ModelChange.Operation getOperation()
- Specified by:
getOperationin interfaceModelChange- Returns:
- ModelChange.Operation - the operation to be performed
-
setOperation
public void setOperation(ModelChange.Operation operation)
- Specified by:
setOperationin interfaceModelChange- Parameters:
operation- - the operation to be performed
-
getGraphURI
public String getGraphURI()
- Specified by:
getGraphURIin interfaceModelChange- Returns:
- String - the URI of the graph to which to apply the change
-
setGraphURI
public void setGraphURI(String graphURI)
- Specified by:
setGraphURIin interfaceModelChange- Parameters:
graphURI- - the URI of the graph to which to apply the change If the graphURI is null the change applies to the default write graph. If this method is not used to set the write graph the default write graph will be used.
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceModelChange- Returns:
- String - user identifier
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserIdin interfaceModelChange
-
-