public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
POST_CREATE_AGENDA_EVENT_EVENT |
static String |
POST_DELETE_AGENDA_EVENT_EVENT |
static String |
POST_EVENT_RESPONSE_SENT |
static String |
POST_UPDATE_AGENDA_EVENT_EVENT |
| Modifier and Type | Method and Description |
|---|---|
static void |
addUserSpacesIdentities(org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
String username,
List<Long> identityIds) |
static void |
broadcastEvent(org.exoplatform.services.listener.ListenerService listenerService,
String eventName,
Object source,
Object data) |
static boolean |
canAccessCalendar(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long ownerId,
long userIdentityId) |
static boolean |
canEditCalendar(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long ownerId,
long userIdentityId) |
static boolean |
checkAclByCalendarOwner(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long ownerId,
String username,
boolean readonly) |
static List<Long> |
getCalendarOwnersOfUser(org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.identity.model.Identity userIdentity) |
static net.fortuna.ical4j.model.Recur |
getICalendarRecur(org.exoplatform.agenda.model.EventRecurrence recurrence) |
static net.fortuna.ical4j.model.TimeZone |
getICalTimeZone(ZoneId zoneId) |
static org.exoplatform.social.core.identity.model.Identity |
getIdentityById(org.exoplatform.social.core.manager.IdentityManager identityManager,
long identityId) |
static org.exoplatform.social.core.identity.model.Identity |
getIdentityById(org.exoplatform.social.core.manager.IdentityManager identityManager,
String identityId) |
static long |
getIdentityIdByUsername(org.exoplatform.social.core.manager.IdentityManager identityManager,
String username) |
static List<org.exoplatform.agenda.model.Event> |
getOccurrences(org.exoplatform.agenda.model.Event event,
LocalDate from,
LocalDate to,
int limit) |
static List<String> |
getSpaceMembersBySpaceName(String spaceName,
org.exoplatform.social.core.space.spi.SpaceService spaceService) |
static boolean |
isEventAttendee(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long identityId,
List<org.exoplatform.agenda.model.EventAttendee> eventAttendees) |
static ZonedDateTime |
toDateTime(String dateTimeString,
ZoneId userTimeZone) |
public static final String POST_CREATE_AGENDA_EVENT_EVENT
public static final String POST_UPDATE_AGENDA_EVENT_EVENT
public static final String POST_DELETE_AGENDA_EVENT_EVENT
public static final String POST_EVENT_RESPONSE_SENT
public static List<Long> getCalendarOwnersOfUser(org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.identity.model.Identity userIdentity)
public static void addUserSpacesIdentities(org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
String username,
List<Long> identityIds)
throws Exception
Exceptionpublic static List<org.exoplatform.agenda.model.Event> getOccurrences(org.exoplatform.agenda.model.Event event, LocalDate from, LocalDate to, int limit)
public static net.fortuna.ical4j.model.Recur getICalendarRecur(org.exoplatform.agenda.model.EventRecurrence recurrence)
public static boolean checkAclByCalendarOwner(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long ownerId,
String username,
boolean readonly)
throws IllegalAccessException
identityManager - IdentityManager service instancespaceService - SpaceService service instanceownerId - calendar owner Identity technical identifierusername - name of user accessing calendar datareadonly - whether the access is to read or to writeIllegalAccessException - when the user ACL failspublic static boolean canEditCalendar(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long ownerId,
long userIdentityId)
identityManager - IdentityManager service instancespaceService - SpaceService service instanceownerId - calendar owner Identity technical identifieruserIdentityId - Identity identifier of user accessing
calendar datapublic static boolean canAccessCalendar(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long ownerId,
long userIdentityId)
identityManager - IdentityManager service instancespaceService - SpaceService service instanceownerId - calendar owner Identity technical identifieruserIdentityId - Identity identifier of user accessing
calendar datapublic static void broadcastEvent(org.exoplatform.services.listener.ListenerService listenerService,
String eventName,
Object source,
Object data)
public static org.exoplatform.social.core.identity.model.Identity getIdentityById(org.exoplatform.social.core.manager.IdentityManager identityManager,
long identityId)
public static org.exoplatform.social.core.identity.model.Identity getIdentityById(org.exoplatform.social.core.manager.IdentityManager identityManager,
String identityId)
public static long getIdentityIdByUsername(org.exoplatform.social.core.manager.IdentityManager identityManager,
String username)
public static List<String> getSpaceMembersBySpaceName(String spaceName, org.exoplatform.social.core.space.spi.SpaceService spaceService)
public static boolean isEventAttendee(org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
long identityId,
List<org.exoplatform.agenda.model.EventAttendee> eventAttendees)
public static net.fortuna.ical4j.model.TimeZone getICalTimeZone(ZoneId zoneId)
public static ZonedDateTime toDateTime(String dateTimeString, ZoneId userTimeZone)
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.