Jahia in English > Please explain apiKeyValue...

0 (0 Good)
0 (0 Bad)

Please explain apiKeyValue in External Data Provider Documentation.pdf

by  omglion »  2014/07/15 07:38

Hello, everybody,

I don't understand these codes fragment, could anyone explain it?

in tmdb-provider.xml:

<bean name="TMDBDataSource" class="org.jahia.modules.tmdbprovider.TMDBDataSource" initmethod="start">
      <property name="cacheProvider" ref="ehCacheProvider"/>
      <property name="apiKeyValue" value="${com.jahia.tmdb.apiKeyValue}"/>
</bean>

in TMDBDATASource.java:

 public void setApiKeyValue(String apiKeyValue) {
        this.apiKeyValue = apiKeyValue;
 }

I cannot find any property file in the tmdb-provider project, so what on earth is apiKeyValue?

Thanks.

Kindly regards

Lion

  • Please explain apiKeyValue in External Data Provider Documentation.pdf
    2014/07/15 07:38

    omglion <p>Hello, everybody,</p> <p>I don&#39;t understand these codes fragment, could anyone explain it?</p> <p>in tmdb-provider.xml:</p> <p>&lt;bean name=&quot;TMDBDataSource&quot;&nbsp;class=&quot;org.jahia.modules.tmdbprovider.TMDBDataSource&quot; initmethod=&quot;start&quot;&gt;<br /> &nbsp; &nbsp; &nbsp; &lt;property name=&quot;cacheProvider&quot; ref=&quot;ehCacheProvider&quot;/&gt;<br /> &nbsp; &nbsp; &nbsp; <span style="color:#0000CD;"><em><u><strong>&lt;property name=&quot;apiKeyValue&quot;&nbsp;value=&quot;${com.jahia.tmdb.apiKeyValue}&quot;/&gt;</strong></u></em></span><br /> &lt;/bean&gt;</p> <p>in TMDBDATASource.java:</p> <p>&nbsp;public void setApiKeyValue(String apiKeyValue) {<br /> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;"><u><em><strong>this.apiKeyValue = apiKeyValue;</strong></em></u></span><br /> &nbsp;}</p> <p>I cannot find any property file in the tmdb-provider&nbsp;project, so what on earth is apiKeyValue?</p> <p>Thanks.</p> <p>Kindly regards</p> <p>Lion</p>

  • Number of messages  27
    Registration date Jul 15, 2014
    0 (0 Good)
    0 (0 Bad)

    Re: Please explain apiKeyValue in External Data Provider Documentation.pdf

    by  qlamerand »  2014/11/26 14:05

    Hello,
    This is the key used to connect to the Movie Database API https://www.themoviedb.org/faq/api.
    The property is provided with the module as you will need to specify your own.
    Regards,
    Quentin

  • Re: Please explain apiKeyValue in External Data Provider Documentation.pdf
    2014/11/26 14:06

    qlamerand <p>Hello,<br /> This is the key used to connect to the Movie Database API&nbsp;<a href="https://www.themoviedb.org/faq/api">https://www.themoviedb.org/faq/api</a>.<br /> The property is provided with the module as you will need to specify your own.<br /> Regards,<br /> Quentin</p>

  • Number of messages  28
    Registration date Nov 26, 2014
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page