fr.paris.lutece.plugins.phraseanet.service
Class PhraseanetService

java.lang.Object
  extended by fr.paris.lutece.plugins.phraseanet.service.PhraseanetService

public final class PhraseanetService
extends java.lang.Object

PhraseanetService


Method Summary
static java.util.List<Collection> getColletions(int nDataboxId)
          Get all collections of databox
static java.util.List<Databox> getDataboxes()
          Get databoxes
static Embed getEmbed(int nDataboxId, int nRecordId)
          Get embed data of a record
static java.util.List<java.lang.String> getItemsPerPageValues()
          Gets items per page values
static java.util.List<java.lang.String> getMediaTypeValues()
          Get media types values
static Record getRecord(int nDataboxId, int nRecordId)
          Gets a record
static java.util.List<Metadata> getRecordMetadatas(int nDataboxId, int nRecordId)
          Get metadatas for a given record
static SearchResults search(java.lang.String strQuery, int nPage, int nPerPage, SearchCriterias criterias)
          Searc results
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRecord

public static Record getRecord(int nDataboxId,
                               int nRecordId)
                        throws PhraseanetApiCallException
Gets a record

Parameters:
nDataboxId - The databox id
nRecordId - The record id
Returns:
The record
Throws:
PhraseanetApiCallException - if an error occurs

getRecordMetadatas

public static java.util.List<Metadata> getRecordMetadatas(int nDataboxId,
                                                          int nRecordId)
                                                   throws PhraseanetApiCallException
Get metadatas for a given record

Parameters:
nDataboxId - The databox id
nRecordId - The record id
Returns:
Metadatas
Throws:
PhraseanetApiCallException - if an error occurs

search

public static SearchResults search(java.lang.String strQuery,
                                   int nPage,
                                   int nPerPage,
                                   SearchCriterias criterias)
                            throws PhraseanetApiCallException
Searc results

Parameters:
strQuery - Query terms
nPage - Page number
nPerPage - Number of items per page
criterias - Criterias
Returns:
search results
Throws:
PhraseanetApiCallException - if an error occurs

getDataboxes

public static java.util.List<Databox> getDataboxes()
                                            throws PhraseanetApiCallException
Get databoxes

Returns:
The lis of databoxes
Throws:
PhraseanetApiCallException - if an error occurs

getColletions

public static java.util.List<Collection> getColletions(int nDataboxId)
                                                throws PhraseanetApiCallException
Get all collections of databox

Parameters:
nDataboxId - The databox id
Returns:
a collection list
Throws:
PhraseanetApiCallException - if an error occurs

getEmbed

public static Embed getEmbed(int nDataboxId,
                             int nRecordId)
                      throws PhraseanetApiCallException
Get embed data of a record

Parameters:
nDataboxId - The databox id
nRecordId - The record id
Returns:
embed data
Throws:
PhraseanetApiCallException - if an error occurs

getItemsPerPageValues

public static java.util.List<java.lang.String> getItemsPerPageValues()
Gets items per page values

Returns:
items per page values

getMediaTypeValues

public static java.util.List<java.lang.String> getMediaTypeValues()
Get media types values

Returns:
media types values


Copyright © 2011 Mairie de Paris. All Rights Reserved.