Fórum

Calendar Scope

Hiran Chaudhuri, modificado 12 Anos atrás.

Calendar Scope

Regular Member Postagens: 188 Data de Entrada: 01/09/10 Postagens Recentes
According to the documentation it is possible to have user, organization and community based events. The question for me is how to set this up, which does not belong to this forum.

But once I figure out how this is done, how would I create events in those calendars?
I saw the CalEventLocalServiceUtil class that allows me to create events. But where would you specify which calendar scope to apply?
Tarkan Çorak, modificado 12 Anos atrás.

RE: Calendar Scope

Regular Member Postagens: 141 Data de Entrada: 07/10/08 Postagens Recentes
Hi Hiran,

The Scope Group Id will be defined within the ServiceContext object. For instance:

ServiceContext serviceContext = new ServiceContext();
serviceContext.setAddCommunityPermissions(true);
serviceContext.setAddGuestPermissions(true);
serviceContext.setCompanyId(user.getCompanyId());
serviceContext.setScopeGroupId(group.getGroupId());