eu.emi.dsr.db.mongodb
Class ServiceObject
java.lang.Object
eu.emi.dsr.db.mongodb.ServiceObject
public class ServiceObject
- extends Object
Mongo flavor of EMIRegistry Service description
- Author:
- a.memon
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
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.