com.openexchange.admin.rmi.dataobjects
Class Filestore

java.lang.Object
  extended by com.openexchange.admin.rmi.dataobjects.Filestore
All Implemented Interfaces:
Serializable

public class Filestore
extends Object
implements Serializable

This class represents a filestore.

Author:
Manuel Kraft, Carsten Hoeger, Dennis Sieben
See Also:
Serialized Form

Constructor Summary
Filestore()
          Initiates an empty filestore object
Filestore(Integer id)
          Initiates a filestore object with given id set
 
Method Summary
 boolean equals(Object obj)
           
 Integer getCurrentContexts()
          Returns the current amount of contexts of this filestore object
 Integer getId()
          Returns the id of this filestore object
 Integer getMaxContexts()
          Returns the maximum amount of contexts of this filestore object
 Long getReserved()
           
 Long getSize()
          Returns the size of this filestore object (in MB)
 String getUrl()
          Returns the url of this filestore object
 Long getUsed()
          Returns the currently used size of this filestore object (in MB)
 int hashCode()
           
 boolean isCurrentContextsset()
           
 boolean isIdset()
           
 boolean isMaxContextsset()
           
 boolean isReservedset()
           
 boolean isSizeset()
           
 boolean isUrlset()
           
 boolean isUsedset()
           
 void setCurrentContexts(Integer currentContexts)
          Sets the current amount of contexts for this filestore object
 void setId(Integer id)
          Sets the id for this filestore object
 void setMaxContexts(Integer maxContexts)
          Sets the maximum amount of contexts for this filestore object
 void setReserved(Long reserved)
           
 void setSize(Long size)
          Sets the size for this filestore object (in MB)
 void setUrl(String url)
          Sets the url for this filestore object
 void setUsed(Long quota_used)
          Sets the currently used size for this filestore object (in MB)
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Filestore

public Filestore()
Initiates an empty filestore object


Filestore

public Filestore(Integer id)
Initiates a filestore object with given id set

Parameters:
id - An Integer containing the id
Method Detail

getId

public Integer getId()
Returns the id of this filestore object

Returns:
An Integer containing the id

setId

public void setId(Integer id)
Sets the id for this filestore object

Parameters:
id - An Integer containing the id

getUrl

public String getUrl()
Returns the url of this filestore object

Returns:
A String containing the url

setUrl

public void setUrl(String url)
Sets the url for this filestore object

Parameters:
url - A String containing the url

getSize

public Long getSize()
Returns the size of this filestore object (in MB)

Returns:
A Long containing the size (in MB)

setSize

public void setSize(Long size)
Sets the size for this filestore object (in MB)

Parameters:
size - A Long containing the size (in MB)

getMaxContexts

public Integer getMaxContexts()
Returns the maximum amount of contexts of this filestore object

Returns:
An Integer containing the maximum amoung of contexts

setMaxContexts

public void setMaxContexts(Integer maxContexts)
Sets the maximum amount of contexts for this filestore object

Parameters:
maxContexts - A String containing the maximum amount of contexts

getCurrentContexts

public Integer getCurrentContexts()
Returns the current amount of contexts of this filestore object

Returns:
An Integer containing the current

setCurrentContexts

public void setCurrentContexts(Integer currentContexts)
Sets the current amount of contexts for this filestore object

Parameters:
currentContexts - An Integer containing the current amount of contexts

getUsed

public Long getUsed()
Returns the currently used size of this filestore object (in MB)

Returns:
A Long containing the currently used size (in MB)

setUsed

public void setUsed(Long quota_used)
Sets the currently used size for this filestore object (in MB)

Parameters:
quota_used - A Long containing the currently used size

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class Object
Returns:
a String representation of this object.

getReserved

public final Long getReserved()
Returns:
the reserved

setReserved

public final void setReserved(Long reserved)
Parameters:
reserved - the reserved to set

isCurrentContextsset

public boolean isCurrentContextsset()
Returns:
the currentContextsset

isIdset

public boolean isIdset()
Returns:
the idset

isMaxContextsset

public boolean isMaxContextsset()
Returns:
the maxContextsset

isReservedset

public boolean isReservedset()
Returns:
the reservedset

isSizeset

public boolean isSizeset()
Returns:
the sizeset

isUrlset

public boolean isUrlset()
Returns:
the urlset

isUsedset

public boolean isUsedset()
Returns:
the usedset

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object