Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.javaswift.joss.model;
 
 import java.util.Map;

Top-level entity for all entities in the ObjectStore. The sharing characteristic of the entities is custom metadata.
 
 public interface ObjectStoreEntity {

    
Sets the metadata headers

Parameters:
metadata contains all metadata name/value pairs that must be set
    public void setMetadata(Map<StringObjectmetadata);

    
Sets a single metadata field and immediately places a call to the server to save

Parameters:
key metadata field to add
value value of the metadata field
    public void setAndSaveMetadata(String keyObject value);

    
Sets a single metadata field, but does not place a call to the server to save. This must be explicitly called with saveMetadata.

Parameters:
key metadata field to add
value value of the metadata field
    public void setAndDoNotSaveMetadata(String keyObject value);

    
Removes a single metadata field and immediately places a call to the server to save

Parameters:
key metadata field to remove
    public void removeAndSaveMetadata(String key);

    
Removes a single metadata field, but does not place a call to the server to save. This must be explicitly called with saveMetadata.

Parameters:
key metadata field to remove
    public void removeAndDoNotSaveMetadata(String key);

    
Returns a single value of the designated key, or null if it does not exist.

Parameters:
key the key of the key/value pair
Returns:
the value belonging to the key
    public Object getMetadata(String key);

    
Places a call to the server to save all metadata, previously set with setMetadata excluding the save option
    public void saveMetadata();

    
Gets the metadata headers

Returns:
the metadata on the entity
    public Map<StringObjectgetMetadata();

    
Returns the path to be appended to the host

Returns:
the path to append to the host
    public String getPath();
New to GrepCode? Check out our FAQ X