Thanks for the help !!
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
Hi,
On Tue, Dec 12, 2017 at 5:45 PM, <sumans...@gmail.com> wrote:HiI am using Schedule publication feature and schedule offline feature in Hippo cms.Currently, I have published a document and scheduled it being offline on 31st dec,2017.(using hippo cms feature , i have not written any scheduler)Now in my java class,How can i get this schedule offiline date.Basically , i want the code to get/content/documents/mynode/hippo:request/hipposched:triggers/default : "hipposched:nextFireTime"in my java class.quite simple:session.getNode("/content/documents/mynode/hippo:request/hipposched:triggers/default").getProperty("hipposched:nextFireTime").getDate()cheersmarijan
Thanks for the help !!
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Thanks for the help !But its not workingI tried this :String path = "/content/documents/mynode/hippo:request/hipposched:triggers/default" ;Calendar offlineDate = requestContext.getSession().getgetNode(path).getProperty("hipposched:nextFireTime").getDate();But this one is throwing path not found exception on this :requestContext.getSession().getgetNode(path)because it is not treating "/content/documents/mynode/hippo:request/hipposched:triggers/default" as node.whereas it is treating only "/content/documents/mynode" as node
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
repository.login(
new
SimpleCredentials(
"admin"
,
"admin"
.toCharArray());
It really worked for me.
But for security reasons , i guess i should not directly display
"admin"
,
"admin"
in my code
.
I Actually need to expose a CMS rest API to Mobile Api and mobile app track in which i'll expose the expiration date of one document.
As the intention is to stop displaying that document on desktop as well as mobile when that document is expired.
Your response on session really helped me.Then I tried to authorize my session using this link : https://www.onehippo.org/library/concepts/web-application/jcr-session-pooling-repository.htmland then i tried :-Session jcrSession =
repository.login(
new
SimpleCredentials(
"admin"
,
"admin"
.toCharArray());
It really worked for me.
But for security reasons , i guess i should not directly display
"admin"
,
"admin"
in my code
.
So i thought to store this information as key in hst-config.properties.and then tried to read these keys from this file by this way.But unable to accomplish my task.private static String getPassword() { String retValue = System.getProperty("env.hippo.password"); return retValue; }and here below is my hst-config.propertiesenv.hippo.username=adminenv.hippo.password=adminbut unable to read values from these keys.Basically unable to load this hst-config.properties.
Please help!!
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.