Re: JobManager.getJob()

2015-12-09 Thread Carsten Ziegeler
Carsten Ziegeler wrote > Roll, Kevin wrote >> JobManager.getJob() claims to find a job, "either scheduled or active". >> However, this method just calls findJobs() internally, which does not claim >> to look at scheduled jobs, and doesn't appear to do so. It seems to be >> necessary to also

Re: JobManager.getJob()

2015-12-09 Thread Carsten Ziegeler
Roll, Kevin wrote > JobManager.getJob() claims to find a job, "either scheduled or active". > However, this method just calls findJobs() internally, which does not claim > to look at scheduled jobs, and doesn't appear to do so. It seems to be > necessary to also call

RE: Get field from model in JSON view

2015-12-09 Thread Stefan Seifert
hello guillaume. the default json view of sling is 1:1 the content of the repository. normally it makes no sense to store "computed values" in the repository, because it is redundant. the best solution would be to create your own json view for the resource type, e.g. a servlet or a sightly/jsp