com.openexchange.admin.rmi.dataobjects
Class Filestore

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

public class Filestore
extends java.lang.Object
implements java.io.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(java.lang.Integer id)
          Initiates a filestore object with given id set
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getCurrentContexts()
          Returns the current amount of contexts of this filestore object
 java.lang.Integer getId()
          Returns the id of this filestore object
 java.lang.Integer getMaxContexts()
          Returns the maximum amount of contexts of this filestore object
 java.lang.Long getReserved()
           
 java.lang.Long getSize()
          Returns the size of this filestore object (in MB)
 java.lang.String getUrl()
          Returns the url of this filestore object
 java.lang.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(java.lang.Integer currentContexts)
          Sets the current amount of contexts for this filestore object
 void setId(java.lang.Integer id)
          Sets the id for this filestore object
 void setMaxContexts(java.lang.Integer maxContexts)
          Sets the maximum amount of contexts for this filestore object
 void setReserved(java.lang.Long reserved)
           
 void setSize(java.lang.Long size)
          Sets the size for this filestore object (in MB)
 void setUrl(java.lang.String url)
          Sets the url for this filestore object
 void setUsed(java.lang.Long quota_used)
          Sets the currently used size for this filestore object (in MB)
 java.lang.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(java.lang.Integer id)
Initiates a filestore object with given id set

Parameters:
id - An Integer containing the id
Method Detail

getId

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

Returns:
An Integer containing the id

setId

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

Parameters:
id - An Integer containing the id

getUrl

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

Returns:
A String containing the url

setUrl

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

Parameters:
url - A String containing the url

getSize

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

Returns:
A Long containing the size (in MB)

setSize

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

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

getMaxContexts

public java.lang.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(java.lang.Integer maxContexts)
Sets the maximum amount of contexts for this filestore object

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

getCurrentContexts

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

Returns:
An Integer containing the current

setCurrentContexts

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

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

getUsed

public java.lang.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(java.lang.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 java.lang.String toString()
Constructs a String with all attributes in name = value format.

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

getReserved

public final java.lang.Long getReserved()
Returns:
the reserved

setReserved

public final void setReserved(java.lang.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 java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object