|
Thanks for response. I know about this service and I'm using it, but in my case it is inapplicable. One of the calls to this service is coming from repository initialization. But repository is initialized when first login is performed. If nobody login, repository will never be opened and never initialized. In my application I have asynchronous service, which is calling via QuartzEventListener on some time interval, and this service is expecting repository to be initialized. So, I'm running it after repository is initialized. But when nuxeo starts and no one is logging everything is sleeping, so my service will never be run. That is the reason why I begin to search for proper event from nuxeo system to perform my own repository initialization. I did it, but I'm not sure this is the right way. Regards, Stefan think that you're searching for the content template service (nuxeo-platform-content-template-manager).For a quick start, you can have a look to http://maven.nuxeo.com/apidocs/org/nuxeo/ecm/platform/content/template/service/package-summary.html here is an example of contribution <?xml version="1.0"?> <component name="com.nuxeo.newswave.content.contrib"> <require>org.nuxeo.ecm.platform.content.template.service.ContentTemplateService.defaultContrib</require> <extension target="org.nuxeo.ecm.platform.content.template.service.ContentTemplateService" point="factoryBinding"> <factoryBinding name="RootFactory" factoryName="SimpleTemplateFactory" targetType="Root"> <acl> <ace principal="Administrator" permission="Everything" granted="true" /> <ace principal="administrators" permission="Everything" granted="true" /> <ace principal="seniors" permission="ReadWrite" granted="true" /> <ace principal="editors" permission="ReadWrite" granted="true" /> <ace principal="subs" permission="ReadWrite" granted="true" /> </acl> <template> <templateItem typeName="Workspace" id="archives" title="Archives" description="CWS Archives Directory"> <acl> <ace principal="Guest" permission="Read" granted="true"/> </acl> </templateItem> </template> </factoryBinding> </extension> </component> -- Posted by "slacoin" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2485#6784> _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm |
_______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
