public final class PhraseanetService extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<Collection> |
getColletions(int nDataboxId,
Account account)
Get all collections of databox
|
static List<Metadata> |
getDataboxeMetadatas(int nDataboxId,
Account account)
Get metadatas for a given databoxe
|
static List<Databox> |
getDataboxes(Account account)
Get databoxes
|
static Embed |
getEmbed(int nDataboxId,
int nRecordId,
Account account)
Get embed data of a record
|
static List<String> |
getItemsPerPageValues()
Gets items per page values
|
static List<String> |
getMediaTypeValues()
Get media types values
|
static Record |
getRecord(int nDataboxId,
int nRecordId,
Account account)
Gets a record
|
static List<Metadata> |
getRecordMetadatas(int nDataboxId,
int nRecordId,
Account account)
Get metadatas for a given record
|
static SearchResults |
search(String strQuery,
int nPage,
int nPerPage,
SearchCriterias criterias,
Account account)
Searc results
|
public static Record getRecord(int nDataboxId, int nRecordId, Account account) throws PhraseanetApiCallException
nDataboxId - The databox idnRecordId - The record idaccount - the user phraseanet accountPhraseanetApiCallException - if an error occurspublic static List<Metadata> getDataboxeMetadatas(int nDataboxId, Account account) throws PhraseanetApiCallException
nDataboxId - The databox idaccount - the user phraseanet accountPhraseanetApiCallException - if an error occurspublic static List<Metadata> getRecordMetadatas(int nDataboxId, int nRecordId, Account account) throws PhraseanetApiCallException
nDataboxId - The databox idnRecordId - The record idaccount - the user phraseanet accountPhraseanetApiCallException - if an error occurspublic static SearchResults search(String strQuery, int nPage, int nPerPage, SearchCriterias criterias, Account account) throws PhraseanetApiCallException
strQuery - Query termsnPage - Page numbernPerPage - Number of items per pagecriterias - Criteriasaccount - the user phraseanet accountPhraseanetApiCallException - if an error occurspublic static List<Databox> getDataboxes(Account account) throws PhraseanetApiCallException
account - the user phraseanet accountPhraseanetApiCallException - if an error occurspublic static List<Collection> getColletions(int nDataboxId, Account account) throws PhraseanetApiCallException
nDataboxId - The databox idaccount - the user phraseanet accountPhraseanetApiCallException - if an error occurspublic static Embed getEmbed(int nDataboxId, int nRecordId, Account account) throws PhraseanetApiCallException
nDataboxId - The databox idnRecordId - The record idaccount - the user phraseanet accountPhraseanetApiCallException - if an error occurspublic static List<String> getItemsPerPageValues()
Copyright © 2018 City of Paris. All rights reserved.