org.duracloud.domain
Class Space

java.lang.Object
  extended by org.duracloud.domain.Space

public class Space
extends java.lang.Object

A Space - the container in which content is stored.

Author:
Bill Branan

Constructor Summary
Space()
           
 
Method Summary
 void addContentId(java.lang.String contentId)
          addContentId
 void addProperties(java.lang.String name, java.lang.String value)
          Adds an item to the space properties map
 boolean equals(Space space)
          Compares one space to another
 java.util.List<java.lang.String> getContentIds()
          Getter for the field contentIds.
 java.lang.String getId()
          Getter for the field id.
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Getter for the field properties.
 void setContentIds(java.util.List<java.lang.String> contentIds)
          Setter for the field contentIds.
 void setId(java.lang.String id)
          Setter for the field id.
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
          Setter for the field properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Space

public Space()
Method Detail

getId

public java.lang.String getId()

Getter for the field id.


setId

public void setId(java.lang.String id)

Setter for the field id.


getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()

Getter for the field properties.


setProperties

public void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)

Setter for the field properties.


addProperties

public void addProperties(java.lang.String name,
                          java.lang.String value)

Adds an item to the space properties map

Parameters:
name - properties key
value - properties value

getContentIds

public java.util.List<java.lang.String> getContentIds()

Getter for the field contentIds.


setContentIds

public void setContentIds(java.util.List<java.lang.String> contentIds)

Setter for the field contentIds.


addContentId

public void addContentId(java.lang.String contentId)

addContentId


equals

public boolean equals(Space space)

Compares one space to another

Returns:
true if the spaces properties and contents are equal


Copyright © 2009-2011 DuraSpace. All Rights Reserved.