public class Talares
extends java.lang.Object
Cache
should be provided to the constructor of this class.
Example:
import org.talares.Talares; import org.talares.datatypes.items.Page; import play.libs.F; Talares talares = new Talares(cache); F.PromisepagePromise = talares.getPage(1, 2);
Cache
Modifier and Type | Method and Description |
---|---|
protected org.talares.api.Talares |
getApi(Cache cache) |
Binary |
getBinary_(int publicationId,
int binaryId)
BLOCKING
Get a
Binary by it's publication ID and binary ID. |
Binary |
getBinary_(int publicationId,
int binaryId,
long timeout)
BLOCKING
Get a
Binary by it's publication ID and binary ID. |
play.libs.F.Promise<Binary> |
getBinary(int publicationId,
int binaryId)
Get a
Binary by it's publication ID and binary ID. |
BinaryContent |
getBinaryContent_(int publicationId,
int binaryId,
java.lang.String variantId)
BLOCKING
Get a
BinaryContent by it's publication ID, binary ID and variant ID. |
BinaryContent |
getBinaryContent_(int publicationId,
int binaryId,
java.lang.String variantId,
long timeout)
BLOCKING
Get a
BinaryContent by it's publication ID and binary ID. |
play.libs.F.Promise<BinaryContent> |
getBinaryContent(int publicationId,
int binaryId,
java.lang.String variantId)
Get a
BinaryContent by it's publication ID, binary ID and variant ID. |
BinaryVariant |
getBinaryVariant_(int publicationId,
int binaryId)
BLOCKING
Get a
BinaryVariant by it's publication ID and binary ID. |
BinaryVariant |
getBinaryVariant_(int publicationId,
int binaryId,
long timeout)
BLOCKING
Get a
BinaryVariant by it's publication ID and binary ID. |
play.libs.F.Promise<BinaryVariant> |
getBinaryVariant(int publicationId,
int binaryId)
Get a
BinaryVariant by it's publication ID and binary ID. |
Component |
getComponent_(int publicationId,
int itemId)
BLOCKING
Get a
Component by it's publication ID and item ID. |
Component |
getComponent_(int publicationId,
int itemId,
long timeout)
BLOCKING
Get a
Component by it's publication ID and item ID. |
play.libs.F.Promise<Component> |
getComponent(int publicationId,
int itemId)
Get a
Component by it's publication ID and item ID. |
ComponentPresentation |
getComponentPresentation_(int publicationId,
int componentId,
int templateId)
BLOCKING
Get a
ComponentPresentation by it's publication ID, component ID and templateId ID. |
ComponentPresentation |
getComponentPresentation_(int publicationId,
int componentId,
int templateId,
long timeout)
BLOCKING
Get a
ComponentPresentation by it's publication ID, component ID and templateId ID. |
play.libs.F.Promise<ComponentPresentation> |
getComponentPresentation(int publicationId,
int componentId,
int templateId)
Get a
ComponentPresentation by it's publication ID, component ID and templateId ID. |
CustomMeta |
getCustomMeta_(int id)
BLOCKING
Get a
CustomMeta by it's ID. |
CustomMeta |
getCustomMeta_(int id,
long timeout)
BLOCKING
Get a
CustomMeta by it's ID. |
play.libs.F.Promise<CustomMeta> |
getCustomMeta(int id)
Get a
CustomMeta by it's ID. |
Keyword |
getKeyword_(int publicationId,
int id,
int taxonomyId)
BLOCKING
Get a
Keyword by it's ID, publication ID and taxonomy ID. |
Keyword |
getKeyword_(int publicationId,
int id,
int taxonomyId,
long timeout)
BLOCKING
Get a
Keyword by it's ID, publication ID and taxonomy ID. |
play.libs.F.Promise<Keyword> |
getKeyword(int publicationId,
int id,
int taxonomyId)
Get a
Keyword by it's ID, publication ID and taxonomy ID. |
Page |
getPage_(int publicationId,
int itemId)
BLOCKING
Get a
Page by it's publication ID and item ID. |
Page |
getPage_(int publicationId,
int itemId,
long timeout)
BLOCKING
Get a
Page by it's publication ID and item ID. |
java.util.List<Page> |
getPage_(java.lang.String url)
BLOCKING
Get a
Page by it's URL. |
java.util.List<Page> |
getPage_(java.lang.String url,
long timeout)
BLOCKING
Get a
Page by it's URL. |
play.libs.F.Promise<Page> |
getPage(int publicationId,
int itemId)
Get a
Page by it's publication ID and item ID. |
play.libs.F.Promise<java.util.List<Page>> |
getPage(java.lang.String url)
Get a
Page by it's URL. |
PageContent |
getPageContent_(int publicationId,
int pageId)
BLOCKING
Get a
PageContent by it's publication ID and page ID. |
PageContent |
getPageContent_(int publicationId,
int pageId,
long timeout)
BLOCKING
Get a
PageContent by it's publication ID and page ID. |
play.libs.F.Promise<PageContent> |
getPageContent(int publicationId,
int pageId)
Get a
PageContent by it's publication ID and page ID. |
Publication |
getPublication_(int id)
BLOCKING
Get a
Publication by it's ID. |
Publication |
getPublication_(int id,
long timeout)
BLOCKING
Get a
Publication by it's ID. |
play.libs.F.Promise<Publication> |
getPublication(int id)
Get a
Publication by it's ID. |
Schema |
getSchema_(int publicationId,
int schemaId)
BLOCKING
Get a
Schema by it's publication ID and schema ID. |
Schema |
getSchema_(int publicationId,
int schemaId,
long timeout)
BLOCKING
Get a
Schema by it's publication ID and schema ID. |
play.libs.F.Promise<Schema> |
getSchema(int publicationId,
int schemaId)
Get a
Schema by it's publication ID and schema ID. |
StructureGroup |
getStructureGroup_(int publicationId,
int id)
BLOCKING
Get a
StructureGroup by it's ID and publication ID. |
StructureGroup |
getStructureGroup_(int publicationId,
int id,
long timeout)
BLOCKING
Get a
StructureGroup by it's ID and publication ID. |
play.libs.F.Promise<StructureGroup> |
getStructureGroup(int publicationId,
int id)
Get a
StructureGroup by it's ID and publication ID. |
Template |
getTemplate_(int publicationId,
int itemId)
BLOCKING
Get a
Template by it's publication ID and item ID. |
Template |
getTemplate_(int publicationId,
int itemId,
long timeout)
BLOCKING
Get a
Template by it's publication ID and item ID. |
play.libs.F.Promise<Template> |
getTemplate(int publicationId,
int itemId)
Get a
Template by it's publication ID and item ID. |
void |
terminate()
Terminates the library which implies shutting down the actor system.
|
public Talares()
public Talares(Cache cache)
protected org.talares.api.Talares getApi(Cache cache)
public final void terminate()
public final play.libs.F.Promise<Binary> getBinary(int publicationId, int binaryId)
Binary
by it's publication ID and binary ID.public final Binary getBinary_(int publicationId, int binaryId, long timeout) throws org.talares.api.exceptions.TalaresException
Binary
by it's publication ID and binary ID.public final Binary getBinary_(int publicationId, int binaryId) throws org.talares.api.exceptions.TalaresException
Binary
by it's publication ID and binary ID.public final play.libs.F.Promise<BinaryContent> getBinaryContent(int publicationId, int binaryId, java.lang.String variantId)
BinaryContent
by it's publication ID, binary ID and variant ID.publicationId
- the ID of the publication the desired BinaryContent
belongs tobinaryId
- the ID of the desired BinaryContent
variantId
- the variant ID of the desired BinaryContent
F.Promise
of a BinaryContent
public final BinaryContent getBinaryContent_(int publicationId, int binaryId, java.lang.String variantId, long timeout) throws org.talares.api.exceptions.TalaresException
BinaryContent
by it's publication ID and binary ID.publicationId
- the ID of the publication the desired BinaryContent
belongs tobinaryId
- the ID of the desired BinaryContent
variantId
- the variant ID of the desired BinaryContent
timeout
- the timeout in milliseconds within which the BinaryContent
should be presentBinaryContent
org.talares.api.exceptions.TalaresException
public final BinaryContent getBinaryContent_(int publicationId, int binaryId, java.lang.String variantId) throws org.talares.api.exceptions.TalaresException
BinaryContent
by it's publication ID, binary ID and variant ID.publicationId
- the ID of the publication the desired BinaryContent
belongs tobinaryId
- the ID of the desired BinaryContent
variantId
- the variant ID of the desired BinaryContent
BinaryContent
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<BinaryVariant> getBinaryVariant(int publicationId, int binaryId)
BinaryVariant
by it's publication ID and binary ID.publicationId
- the ID of the publication the desired BinaryVariant
belongs tobinaryId
- the ID of the desired BinaryVariant
F.Promise
of a BinaryVariant
public final BinaryVariant getBinaryVariant_(int publicationId, int binaryId, long timeout) throws org.talares.api.exceptions.TalaresException
BinaryVariant
by it's publication ID and binary ID.publicationId
- the ID of the publication the desired BinaryVariant
belongs tobinaryId
- the ID of the desired BinaryVariant
timeout
- the timeout in milliseconds within which the BinaryVariant
should be presentBinaryVariant
org.talares.api.exceptions.TalaresException
public final BinaryVariant getBinaryVariant_(int publicationId, int binaryId) throws org.talares.api.exceptions.TalaresException
BinaryVariant
by it's publication ID and binary ID.publicationId
- the ID of the publication the desired BinaryVariant
belongs tobinaryId
- the ID of the desired BinaryVariant
BinaryVariant
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<Component> getComponent(int publicationId, int itemId)
Component
by it's publication ID and item ID.public final Component getComponent_(int publicationId, int itemId, long timeout) throws org.talares.api.exceptions.TalaresException
Component
by it's publication ID and item ID.public final Component getComponent_(int publicationId, int itemId) throws org.talares.api.exceptions.TalaresException
Component
by it's publication ID and item ID.public final play.libs.F.Promise<ComponentPresentation> getComponentPresentation(int publicationId, int componentId, int templateId)
ComponentPresentation
by it's publication ID, component ID and templateId ID.publicationId
- the ID of the publication the desired ComponentPresentation
belongs tocomponentId
- the component ID of the desired ComponentPresentation
templateId
- the template ID of the desired ComponentPresentation
F.Promise
of a ComponentPresentation
public final ComponentPresentation getComponentPresentation_(int publicationId, int componentId, int templateId, long timeout) throws org.talares.api.exceptions.TalaresException
ComponentPresentation
by it's publication ID, component ID and templateId ID.publicationId
- the ID of the publication the desired ComponentPresentation
belongs tocomponentId
- the component ID of the desired ComponentPresentation
templateId
- the template ID of the desired ComponentPresentation
timeout
- the timeout in milliseconds within which the ComponentPresentation
should be presentComponentPresentation
org.talares.api.exceptions.TalaresException
public final ComponentPresentation getComponentPresentation_(int publicationId, int componentId, int templateId) throws org.talares.api.exceptions.TalaresException
ComponentPresentation
by it's publication ID, component ID and templateId ID.publicationId
- the ID of the publication the desired ComponentPresentation
belongs tocomponentId
- the component ID of the desired ComponentPresentation
templateId
- the template ID of the desired ComponentPresentation
ComponentPresentation
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<CustomMeta> getCustomMeta(int id)
CustomMeta
by it's ID.id
- the ID of the desired CustomMeta
F.Promise
of a CustomMeta
public final CustomMeta getCustomMeta_(int id, long timeout) throws org.talares.api.exceptions.TalaresException
CustomMeta
by it's ID.id
- the ID of the desired CustomMeta
timeout
- the timeout in milliseconds within which the CustomMeta
should be presentCustomMeta
org.talares.api.exceptions.TalaresException
public final CustomMeta getCustomMeta_(int id) throws org.talares.api.exceptions.TalaresException
CustomMeta
by it's ID.id
- the ID of the desired CustomMeta
CustomMeta
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<Keyword> getKeyword(int publicationId, int id, int taxonomyId)
Keyword
by it's ID, publication ID and taxonomy ID.public final Keyword getKeyword_(int publicationId, int id, int taxonomyId, long timeout) throws org.talares.api.exceptions.TalaresException
Keyword
by it's ID, publication ID and taxonomy ID.publicationId
- the ID of the publication the desired Keyword
belongs toid
- the ID of the desired Keyword
taxonomyId
- the taxonomy ID of the desired Keyword
timeout
- the timeout in milliseconds within which the Keyword
should be presentKeyword
org.talares.api.exceptions.TalaresException
public final Keyword getKeyword_(int publicationId, int id, int taxonomyId) throws org.talares.api.exceptions.TalaresException
Keyword
by it's ID, publication ID and taxonomy ID.public final play.libs.F.Promise<Page> getPage(int publicationId, int itemId)
Page
by it's publication ID and item ID.public final Page getPage_(int publicationId, int itemId, long timeout) throws org.talares.api.exceptions.TalaresException
Page
by it's publication ID and item ID.public final Page getPage_(int publicationId, int itemId) throws org.talares.api.exceptions.TalaresException
Page
by it's publication ID and item ID.public final play.libs.F.Promise<java.util.List<Page>> getPage(java.lang.String url)
Page
by it's URL.url
- the URL of the page within TridionF.Promise
of a List
of Page
'spublic final java.util.List<Page> getPage_(java.lang.String url, long timeout) throws org.talares.api.exceptions.TalaresException
Page
by it's URL.public final java.util.List<Page> getPage_(java.lang.String url) throws org.talares.api.exceptions.TalaresException
Page
by it's URL.url
- the URL of the page within TridionPage
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<PageContent> getPageContent(int publicationId, int pageId)
PageContent
by it's publication ID and page ID.publicationId
- the ID of the publication the desired PageContent
belongs topageId
- the page ID of the desired PageContent
F.Promise
of a PageContent
public final PageContent getPageContent_(int publicationId, int pageId, long timeout) throws org.talares.api.exceptions.TalaresException
PageContent
by it's publication ID and page ID.publicationId
- the ID of the publication the desired PageContent
belongs topageId
- the page ID of the desired PageContent
timeout
- the timeout in milliseconds within which the PageContent
should be presentPageContent
org.talares.api.exceptions.TalaresException
public final PageContent getPageContent_(int publicationId, int pageId) throws org.talares.api.exceptions.TalaresException
PageContent
by it's publication ID and page ID.publicationId
- the ID of the publication the desired PageContent
belongs topageId
- the page ID of the desired PageContent
PageContent
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<Publication> getPublication(int id)
Publication
by it's ID.id
- the ID of the desired Publication
F.Promise
of a Publication
public final Publication getPublication_(int id, long timeout) throws org.talares.api.exceptions.TalaresException
Publication
by it's ID.id
- the ID of the desired Publication
timeout
- the timeout in milliseconds within which the Publication
should be presentPublication
org.talares.api.exceptions.TalaresException
public final Publication getPublication_(int id) throws org.talares.api.exceptions.TalaresException
Publication
by it's ID.id
- the ID of the desired Publication
Publication
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<Schema> getSchema(int publicationId, int schemaId)
Schema
by it's publication ID and schema ID.public final Schema getSchema_(int publicationId, int schemaId, long timeout) throws org.talares.api.exceptions.TalaresException
Schema
by it's publication ID and schema ID.public final Schema getSchema_(int publicationId, int schemaId) throws org.talares.api.exceptions.TalaresException
Schema
by it's publication ID and schema ID.public final play.libs.F.Promise<StructureGroup> getStructureGroup(int publicationId, int id)
StructureGroup
by it's ID and publication ID.publicationId
- the ID of the publication the desired StructureGroup
belongs toid
- the ID of the desired StructureGroup
F.Promise
of a StructureGroup
public final StructureGroup getStructureGroup_(int publicationId, int id, long timeout) throws org.talares.api.exceptions.TalaresException
StructureGroup
by it's ID and publication ID.publicationId
- the ID of the publication the desired StructureGroup
belongs toid
- the ID of the desired StructureGroup
timeout
- the timeout in milliseconds within which the StructureGroup
should be presentStructureGroup
org.talares.api.exceptions.TalaresException
public final StructureGroup getStructureGroup_(int publicationId, int id) throws org.talares.api.exceptions.TalaresException
StructureGroup
by it's ID and publication ID.publicationId
- the ID of the publication the desired StructureGroup
belongs toid
- the ID of the desired StructureGroup
StructureGroup
org.talares.api.exceptions.TalaresException
public final play.libs.F.Promise<Template> getTemplate(int publicationId, int itemId)
Template
by it's publication ID and item ID.public final Template getTemplate_(int publicationId, int itemId, long timeout) throws org.talares.api.exceptions.TalaresException
Template
by it's publication ID and item ID.