Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Store IContent to the repository in a ServiceInitalizer

In a service initializer, can I put a file into the repository?
Seems the IRepositoryInitializerContext doesn't offer such method, is
there any other way to store content?

0 votes



2 answers

Permanent link
huxd@cn.ibm.com wrote:

In a service initializer, can I put a file into the repository?
Seems the IRepositoryInitializerContext doesn't offer such method, is
there any other way to store content?

I don't think there is a way to store Content in the service initializer.

One approach that could solve your problem is to write your service
method that accesses the content to detect when the content is being
accessed for the first time. It would then store the content and reset
whatever flag you used to indicate it was the first access attempt.


Chris

0 votes


Permanent link
Thanks Chris!

What you suggested sounds like a good idea, I will try it.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,922

Question asked: Nov 01 '07, 7:28 a.m.

Question was seen: 7,502 times

Last updated: Nov 01 '07, 7:28 a.m.

Confirmation Cancel Confirm