@Component public class DomainStore extends AbstractStore
couchDatabase, CREATE_ENTITY_ERROR, DELETE_ENTITY_ERROR, FIND_ENTITY_ERROR, NOT_FOUND_ERROR, SAVE_ENTITY_ERROR| Constructor and Description |
|---|
DomainStore(CouchServers couchServers) |
| Modifier and Type | Method and Description |
|---|---|
DomainProfileEntity |
createDomain(java.lang.String domainName,
java.lang.String apiKey,
java.lang.String apiPassword) |
void |
deleteDomain(DomainProfileEntity domainProfile)
Delete the domain and request and notification databases.
|
org.tiogasolutions.notify.pub.domain.DomainSummary |
fetchSummary(java.lang.String domainName) |
DomainProfileEntity |
findByDomainName(java.lang.String domainName) |
DomainProfileEntity |
findByProfileId(java.lang.String profileId) |
boolean |
hasDomain(java.lang.String domainName) |
org.tiogasolutions.couchace.core.api.CouchDatabase |
notificationDb(org.tiogasolutions.notify.pub.domain.DomainProfile domainProfile)
Used public
|
org.tiogasolutions.dev.domain.query.QueryResult<DomainProfileEntity> |
queryActive() |
org.tiogasolutions.dev.domain.query.QueryResult<DomainProfileEntity> |
queryAll() |
org.tiogasolutions.notify.pub.domain.DomainProfile |
recreateDomain(java.lang.String domainName,
java.lang.String apiKey,
java.lang.String apiPassword)
Only used for testing, should use call createDomain(domainName)
TODO - assert we are in development or it's the system test domain
|
org.tiogasolutions.couchace.core.api.CouchDatabase |
requestDb(org.tiogasolutions.notify.pub.domain.DomainProfile domainProfile)
Used public
|
DomainProfileEntity |
save(DomainProfileEntity profileEntity) |
throwError, throwIfNotFound, throwIfNotFound@Autowired public DomainStore(CouchServers couchServers)
public boolean hasDomain(java.lang.String domainName)
public DomainProfileEntity findByProfileId(java.lang.String profileId)
public DomainProfileEntity findByDomainName(java.lang.String domainName)
public org.tiogasolutions.notify.pub.domain.DomainSummary fetchSummary(java.lang.String domainName)
public org.tiogasolutions.dev.domain.query.QueryResult<DomainProfileEntity> queryActive()
public org.tiogasolutions.dev.domain.query.QueryResult<DomainProfileEntity> queryAll()
public DomainProfileEntity createDomain(java.lang.String domainName, java.lang.String apiKey, java.lang.String apiPassword)
public DomainProfileEntity save(DomainProfileEntity profileEntity)
public org.tiogasolutions.notify.pub.domain.DomainProfile recreateDomain(java.lang.String domainName,
java.lang.String apiKey,
java.lang.String apiPassword)
domainName - the name of the domainapiKey - the api key for the domainapiPassword - the api password for the domainpublic void deleteDomain(DomainProfileEntity domainProfile)
domainProfile - -public org.tiogasolutions.couchace.core.api.CouchDatabase requestDb(org.tiogasolutions.notify.pub.domain.DomainProfile domainProfile)
domainProfile - -public org.tiogasolutions.couchace.core.api.CouchDatabase notificationDb(org.tiogasolutions.notify.pub.domain.DomainProfile domainProfile)
domainProfile - -