|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcmsplugin.readspeaker.ReadSpeaker
public class ReadSpeaker
Field Summary | |
---|---|
static String |
REVISION
|
Method Summary | |
---|---|
String |
getDisplayTemplate(Publication pub)
If a ReadSpeaker template is available for this publication returns it ; otherwise returns the display template. |
static ReadSpeaker |
getInstance()
Returns the singleton. |
String |
getReadSpeakerUrl(Publication pub,
String userLang)
Returns the ReadSpeaker URL for the given publication in the given language (i.e. the URL to access the mp3). |
String |
getReadSpeakerUrl(Publication pub,
String userLang,
boolean getMp3Url)
eturns the ReadSpeaker URL for the given publication in the given language (i.e. the URL to access the MP3). |
String |
getReadSpeakerUrlPrefix()
Returns the ReadSpeaker URL Prefix. |
String |
getUrlToRead(Publication pub,
String userLang)
Returns the URL for the given publication to be read by readspeaker. |
boolean |
isReadable(Publication pub)
Checks if the given publication is readable. |
void |
propertiesChange(JProperties properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Method Detail |
---|
public static ReadSpeaker getInstance()
public boolean isReadable(Publication pub)
pub
- the publication
public String getUrlToRead(Publication pub, String userLang)
pub
- the publication to be readuserLang
- the user language
public String getReadSpeakerUrlPrefix()
public String getReadSpeakerUrl(Publication pub, String userLang)
pub
- the publication to be readuserLang
- the user language
public String getReadSpeakerUrl(Publication pub, String userLang, boolean getMp3Url)
pub
- the publicationuserLang
- the userLanguagegetMp3Url
- if true get the direct URL to access the MP3
public String getDisplayTemplate(Publication pub)
pub
- the publication
public void propertiesChange(JProperties properties)
propertiesChange
in interface JPropertiesListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |