public interface IExternalProxy extends IExternalProxyHandle, IAuditable
Modifier and Type | Interface and Description |
---|---|
static class |
IExternalProxy.SynchronizationDirection
Possible values for the LAST_SYNC_DIRECTION property.
|
static class |
IExternalProxy.SynchronizationStatus
Possible values for the SYNC_STATUS_PROPERTY.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CYCLE_COUNT_PROPERTY
The cycle count property.
|
static java.lang.String |
EXTERNAL_STATE_PROPERTY
The external state property.
|
static IItemType |
ITEM_TYPE
ExternalProxy item type.
|
static java.lang.String |
LAST_ERROR_STRING_PROPERTY
The last error string property.
|
static java.lang.String |
LAST_SYNC_DIRECTION_PROPERTY
The last sync direction property.
|
static java.lang.String |
LAST_SYNC_RULE_STATE_ID_PROPERTY
The last-sync-rule state ID property.
|
static java.lang.String |
LAST_SYNCED_IN_EXTERNAL_STATE_ID_PROPERTY
The last-synced-in external state ID property.
|
static java.lang.String |
LAST_SYNCED_IN_ITEM_STATE_ID_PROPERTY
The last-synced-in item state ID property.
|
static java.lang.String |
LAST_SYNCED_OUT_EXTERNAL_STATE_ID_PROPERTY
The last-synced-out external state ID property.
|
static java.lang.String |
LAST_SYNCED_OUT_ITEM_STATE_ID_PROPERTY
The last-synced-out item state ID property.
|
static java.lang.String |
SYNC_RULE_PROPERTY
The synchronization rule property.
|
static java.lang.String |
SYNC_STATUS_PROPERTY
The sync status property.
|
MERGE_PREDECESSOR_STATE_PROPERTY, PREDECESSOR_STATE_PROPERTY
CONTEXT_ID_PROPERTY, ITEM_ID_PROPERTY, MAX_LARGE_STRING_BYTES, MAX_MEDIUM_STRING_BYTES, MAX_SMALL_STRING_BYTES, MODIFIED_BY_PROPERTY, MODIFIED_PROPERTY, STATE_ID_PROPERTY
Modifier and Type | Method and Description |
---|---|
int |
getCycleCount() |
java.lang.String |
getExternalIdHint()
Get any "hint" for the identifier of the external object that this proxy
may be linked to.
|
IExternalStateHandle |
getExternalStateItemHandle()
Get an item handle for the external state associated with this proxy,
if any.
|
java.lang.String |
getLastErrorString() |
IExternalProxy.SynchronizationDirection |
getLastSynchronizationDirection()
Get the direction of the last attempted synchronization.
|
IExternalProxy.SynchronizationStatus |
getSynchronizationStatus()
Get the synchronization status for this proxy.
|
ISyncRuleHandle |
getSyncRuleHandle()
Get a handle to the synchronization rule associated with this proxy,
if any.
|
void |
setExternalState(IExternalStateHandle value)
Set the external state associated with this proxy.
|
void |
setSynchronizationStatus(IExternalProxy.SynchronizationStatus status)
Set the synchronization status for this proxy.
|
void |
setSyncRule(ISyncRuleHandle syncRule)
Set the synchronization rule to use for this proxy (if none specified
otherwise).
|
getMergePredecessorState, getPredecessorState
isNewItem
getContextId, getItemHandle, getModifiedBy, getRedactedCopy, getRequestedModified, getRequestedStateId, getStateHandle, getWorkingCopy, hasHistory, isComplete, isPropertySet, isRedactedCopy, isWorkingCopy, modified, setContextId, setRequestedModified, setRequestedStateId
equals, getAdapter, getFullState, getItemId, getItemType, getOrigin, getStateId, hasFullState, hasStateId, isAuditable, isConfigurationAware, isImmutable, isSimple, isUnmanaged, makeImmutable, protect, sameItemId, sameStateId, size
static final IItemType ITEM_TYPE
static final java.lang.String SYNC_STATUS_PROPERTY
#getSyncStatus()
static final java.lang.String LAST_SYNC_DIRECTION_PROPERTY
getLastSynchronizationDirection()
static final java.lang.String LAST_ERROR_STRING_PROPERTY
getLastErrorString()()
static final java.lang.String LAST_SYNCED_IN_ITEM_STATE_ID_PROPERTY
#getLastSyncedInItemStateId()()
static final java.lang.String LAST_SYNCED_IN_EXTERNAL_STATE_ID_PROPERTY
#getLastSyncedInExternalStateId()()
static final java.lang.String LAST_SYNCED_OUT_ITEM_STATE_ID_PROPERTY
#getLastSyncedOutItemStateId()()
static final java.lang.String LAST_SYNCED_OUT_EXTERNAL_STATE_ID_PROPERTY
#getLastSyncedOutExternalStateId()()
static final java.lang.String EXTERNAL_STATE_PROPERTY
#getExternalStateHandle()
static final java.lang.String SYNC_RULE_PROPERTY
getSyncRuleHandle()()
static final java.lang.String LAST_SYNC_RULE_STATE_ID_PROPERTY
#getLastSyncRuleStateId()()
static final java.lang.String CYCLE_COUNT_PROPERTY
getCycleCount()
IExternalProxy.SynchronizationStatus getSynchronizationStatus()
void setSynchronizationStatus(IExternalProxy.SynchronizationStatus status)
status
- the new synchronization statusIExternalProxy.SynchronizationDirection getLastSynchronizationDirection()
java.lang.String getLastErrorString()
#getSyncStatus()
returns an error status;
may be null
IExternalStateHandle getExternalStateItemHandle()
null
if none yet associated with proxyvoid setExternalState(IExternalStateHandle value)
value
- handle for an IExternalState item, or null
to remove any associated external stateISyncRuleHandle getSyncRuleHandle()
Clients can explicitly set the rule to use for subsequent synchronization
attempts on a proxy, or it can be specified as an argument to a method
that invokes synchronization. Whenever synchronization is attempted,
the state of the sync rule (which is an Auditable) that was referenced
is recorded. Therefore, if synchronization has been attempted, this
routine will return a state handle, identifying the state of
the sync rule that was used. Otherwise, it will return an item handle
(i.e. one with no state ID), or null
if there is no
associated sync rule at all.
Note that even when a state handle is returned, the caller can always ignore the state ID and get the latest state of the item.
null
if there is nonevoid setSyncRule(ISyncRuleHandle syncRule)
syncRule
- the synchronization rule to use, or null
to remove any associated ruleint getCycleCount()
java.lang.String getExternalIdHint()
null