Skip to Content
0
Former Member
Jun 03, 2009 at 03:43 AM

Problem updating rating of documents using IRepositoryServiceFactory

26 Views

Hi,

I am updating rating using the below code snippet.

IRepositoryServiceFactory repServiceFactory =ResourceFactory.getInstance().getServiceFactory();

IResourceFactory aResourceFactory = ResourceFactory.getInstance();

IResource aResource = aResourceFactory.getResource(rid, c);

IRepositoryService repositoryService=null;

repositoryService =repServiceFactory.getRepositoryService(aResource,IWcmConst.RATING_SERVICE);

But instance of IRepositoryServiceFactory (repServiceFactory) is getting initialized to null. How can I resolve this issue.

Thanks in advance.