|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ServiceSelector
This service is responsible for managing where the data is persisted locally, remotely or not persisted at all.
| Nested Class Summary | |
|---|---|
static class |
ServiceSelector.Target
|
| Method Summary | |
|---|---|
ServiceSelector.Target |
getEffectiveTarget()
|
ServiceSelector.Target |
getTarget()
Returns the active target. |
boolean |
isHostAvailable()
Returns true if host plugin is available. |
void |
setTarget(ServiceSelector.Target target,
com.atlassian.applinks.api.ApplicationId host)
Sets the target to use if available. |
| Method Detail |
|---|
ServiceSelector.Target getEffectiveTarget()
ServiceSelector.Target getTarget()
Note that this might differ from the target set by
setTarget(com.atlassian.mywork.service.ServiceSelector.Target, ApplicationId)
for example when configured to use ServiceSelector.Target.REMOTE but the remote
host is not available.
void setTarget(ServiceSelector.Target target,
com.atlassian.applinks.api.ApplicationId host)
target - the target to use if availableboolean isHostAvailable()
ServiceSelector.Target.LOCAL can be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||