public class DocumentModelStatusPersister extends Object implements AdministrativeStatusPersister
Modifier and Type | Class and Description |
---|---|
static class |
DocumentModelStatusPersister.StatusFetcher |
Modifier and Type | Field and Description |
---|---|
static String |
ADMINISTRATIVE_INFO_CONTAINER |
static String |
ADMINISTRATIVE_INFO_CONTAINER_DOCUMENT_TYPE |
static String |
ADMINISTRATIVE_STATUS_DOCUMENT_TYPE |
static String |
INSTANCE_PROPERTY |
static String |
LOGIN_PROPERTY |
static String |
MESSAGE_PROPERTY |
static String |
SERVICE_PROPERTY |
static String |
STATUS_PROPERTY |
Constructor and Description |
---|
DocumentModelStatusPersister() |
Modifier and Type | Method and Description |
---|---|
protected String |
getAdministrativeStatusDocName(AdministrativeStatus status) |
List<String> |
getAllInstanceIds()
Lists all instance identifiers persisted in the backend.
|
List<AdministrativeStatus> |
getAllStatuses(String instanceId)
Retrieves the
AdministrativeStatus for all services of a given instance |
AdministrativeStatus |
getStatus(String instanceId,
String serviceIdentifier)
Reads the
AdministrativeStatus of a service for a given instance |
void |
remove(String instanceId)
Removes all persisted states for a given instance.
|
AdministrativeStatus |
saveStatus(AdministrativeStatus status)
Saves the
AdministrativeStatus of a service of a given instance |
public static final String ADMINISTRATIVE_INFO_CONTAINER
public static final String ADMINISTRATIVE_INFO_CONTAINER_DOCUMENT_TYPE
public static final String ADMINISTRATIVE_STATUS_DOCUMENT_TYPE
public static final String STATUS_PROPERTY
public static final String MESSAGE_PROPERTY
public static final String INSTANCE_PROPERTY
public static final String SERVICE_PROPERTY
public static final String LOGIN_PROPERTY
public DocumentModelStatusPersister()
protected String getAdministrativeStatusDocName(AdministrativeStatus status)
public List<String> getAllInstanceIds()
AdministrativeStatusPersister
getAllInstanceIds
in interface AdministrativeStatusPersister
public List<AdministrativeStatus> getAllStatuses(String instanceId)
AdministrativeStatusPersister
AdministrativeStatus
for all services of a given instancegetAllStatuses
in interface AdministrativeStatusPersister
public AdministrativeStatus getStatus(String instanceId, String serviceIdentifier)
AdministrativeStatusPersister
AdministrativeStatus
of a service for a given instancegetStatus
in interface AdministrativeStatusPersister
public void remove(String instanceId)
AdministrativeStatusPersister
remove
in interface AdministrativeStatusPersister
public AdministrativeStatus saveStatus(AdministrativeStatus status)
AdministrativeStatusPersister
AdministrativeStatus
of a service of a given instancesaveStatus
in interface AdministrativeStatusPersister
Copyright © 2015 Nuxeo SA. All rights reserved.