public final class PTCRISyncResult<E extends org.um.dsi.gavea.orcid.model.common.ElementSummary>
extends java.lang.Object
export
methods report these results.Modifier and Type | Field | Description |
---|---|---|
E |
act |
|
static int |
ADDOK |
|
static int |
CLIENTERROR |
|
int |
code |
|
static int |
DELETEOK |
|
java.lang.Exception |
exception |
|
static int |
GETOK |
|
static int |
INVALID |
|
java.math.BigInteger |
putcode |
|
static int |
UPDATEOK |
|
static int |
UPTODATE |
Modifier and Type | Method | Description |
---|---|---|
static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> |
fail(org.um.dsi.gavea.orcid.client.exception.OrcidClientException exception) |
Creates message reporting a failure at the ORCID API level.
|
static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> |
invalid(InvalidActivityException exception) |
Creates message reporting an invalid activity.
|
static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> |
ok_add(java.math.BigInteger putcode) |
Creates a successful "add" message with the assigned put-code.
|
static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> |
ok_del() |
Creates a successful "delete" message.
|
static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> |
ok_get(java.math.BigInteger putcode,
E element) |
Creates a successful "get" message with the assigned put-code.
|
static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> |
ok_upd() |
Creates a successful "update" message.
|
static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> |
uptodate() |
Creates an "already up-to-date" message.
|
public static final int GETOK
public static final int ADDOK
public static final int UPDATEOK
public static final int DELETEOK
public static final int UPTODATE
public static final int INVALID
public static final int CLIENTERROR
public final int code
public final java.lang.Exception exception
public final java.math.BigInteger putcode
public final E extends org.um.dsi.gavea.orcid.model.common.ElementSummary act
public static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> PTCRISyncResult<E> ok_get(java.math.BigInteger putcode, E element)
E
- the activity typeputcode
- the put-code of the get requestelement
- the retrieved activitypublic static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> PTCRISyncResult<E> ok_add(java.math.BigInteger putcode)
E
- the activity typeputcode
- the put-code of the newly added activitypublic static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> PTCRISyncResult<E> ok_upd()
E
- the activity typepublic static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> PTCRISyncResult<E> ok_del()
E
- the activity typepublic static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> PTCRISyncResult<E> uptodate()
E
- the activity typepublic static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> PTCRISyncResult<E> fail(org.um.dsi.gavea.orcid.client.exception.OrcidClientException exception)
E
- the activity typeexception
- the ORCID client exceptionpublic static <E extends org.um.dsi.gavea.orcid.model.common.ElementSummary> PTCRISyncResult<E> invalid(InvalidActivityException exception)
E
- the activity typeexception
- the reasons for invalidity