eu.emi.dsr.db.mongodb
Class ServiceObject

java.lang.Object
  extended by eu.emi.dsr.db.mongodb.ServiceObject

public class ServiceObject
extends Object

Mongo flavor of EMIRegistry Service description

Author:
a.memon

Constructor Summary
ServiceObject(com.mongodb.DBObject jo)
           
ServiceObject(org.codehaus.jettison.json.JSONObject jo)
           
ServiceObject(String jsonString)
           
 
Method Summary
 Date getCreationTime()
           
 Date getExpireOn()
           
 String getServiceOwner()
           
 Date getUpdateSince()
           
 String getUrl()
           
 com.mongodb.DBObject toDBObject()
           
 org.codehaus.jettison.json.JSONObject toJSON()
           
 String toString()
          Returns a JSON serialization of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceObject

public ServiceObject(String jsonString)
              throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException

ServiceObject

public ServiceObject(org.codehaus.jettison.json.JSONObject jo)
              throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException

ServiceObject

public ServiceObject(com.mongodb.DBObject jo)
              throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException
Method Detail

getServiceOwner

public String getServiceOwner()

getUrl

public String getUrl()

getCreationTime

public Date getCreationTime()

getUpdateSince

public Date getUpdateSince()

getExpireOn

public Date getExpireOn()

toJSON

public org.codehaus.jettison.json.JSONObject toJSON()

toDBObject

public com.mongodb.DBObject toDBObject()

toString

public String toString()
Returns a JSON serialization of this object

Overrides:
toString in class Object
Returns:
JSON serialization


Copyright © 2012. All Rights Reserved.