Package org.duracloud.domain
Class Space
- java.lang.Object
-
- org.duracloud.domain.Space
-
public class Space extends Object
A Space - the container in which content is stored.- Author:
- Bill Branan
-
-
Constructor Summary
Constructors Constructor Description Space()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContentId(String contentId)addContentIdvoidaddProperties(String name, String value)Adds an item to the space properties mapbooleanequals(Space space)Compares one space to anotherList<String>getContentIds()Getter for the fieldcontentIds.StringgetId()Getter for the fieldid.Map<String,String>getProperties()Getter for the fieldproperties.voidsetContentIds(List<String> contentIds)Setter for the fieldcontentIds.voidsetId(String id)Setter for the fieldid.voidsetProperties(Map<String,String> properties)Setter for the fieldproperties.
-
-
-
Method Detail
-
getId
public String getId()
Getter for the field
id.
-
setId
public void setId(String id)
Setter for the field
id.
-
setProperties
public void setProperties(Map<String,String> properties)
Setter for the field
properties.
-
addProperties
public void addProperties(String name, String value)
Adds an item to the space properties map
- Parameters:
name- properties keyvalue- properties value
-
addContentId
public void addContentId(String contentId)
addContentId
-
equals
public boolean equals(Space space)
Compares one space to another
- Returns:
- true if the spaces properties and contents are equal
-
-