public class PersistenceCache extends Object
Constructor and Description |
---|
PersistenceCache()
Creates a new PersistenceCache.
|
Modifier and Type | Method and Description |
---|---|
Depository |
deleteDepository(Depository depository)
Deletes the depository from the cache.
|
Organization |
deleteOrganization(Organization org)
Deletes the organization from the cache.
|
Sensor |
deleteSensor(Sensor sensor)
Deletes the Sensor from the cache.
|
Depository |
getDepository(String depId,
String orgId)
Gets the Depository defined by the depId and orgId.
|
Organization |
getOrganization(String orgId)
Gets the Organization for the given orgId.
|
Sensor |
getSensor(String sensorId,
String orgId)
Gets the Sensor defined by the sensorId and orgId.
|
Depository |
putDepository(Depository dep)
Stores the Depository in the cache.
|
Organization |
putOrganization(Organization org)
Stores the Organization in the cache.
|
Sensor |
putSensor(Sensor sensor)
Stores the sensor in the cache.
|
public Organization getOrganization(String orgId)
orgId
- the organizations id.public Organization putOrganization(Organization org)
org
- The organization to store.public Organization deleteOrganization(Organization org)
org
- The organization to delete.public Depository getDepository(String depId, String orgId)
depId
- The depository id.orgId
- The organization id.public Depository putDepository(Depository dep)
dep
- The Depository to store.public Depository deleteDepository(Depository depository)
depository
- The Depository to delete.public Sensor getSensor(String sensorId, String orgId)
sensorId
- The sensor id.orgId
- the organizations id.public Sensor putSensor(Sensor sensor)
sensor
- The Sensor to store.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.