|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.portlets.calendar.business.EventAPIImpl
public class EventAPIImpl
| Constructor Summary | |
|---|---|
EventAPIImpl()
|
|
| Method Summary | |
|---|---|
java.lang.String |
createVCalendarInfo(Event event,
java.util.Date recurrenceStartDate,
java.util.Date recurrenceEndDate,
Host host)
This method receive an Event and return the iCal format of the event. |
Event |
disconnectEvent(Event event,
com.liferay.portal.model.User user,
java.util.Date startDate,
java.util.Date endDate)
Disconnects an event from the recurrence WILL COMMIT YOUR TRANSACTION IF YOU HAVE ONE |
java.util.List<Event> |
find(java.util.Date fromDate,
java.util.Date endDate,
java.lang.String[] tags,
java.lang.String[] keywords,
java.util.List<Category> categories,
boolean liveOnly,
boolean includeArchived,
int offset,
int limit,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves a list of event filtering by the given parameters, also filtering by the events that the given user is able to see, or if the given user is null it filters by all the events marked for frontend visibility |
Event |
find(java.lang.String id,
boolean live,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves an event based on its identifier, |
java.util.List<Event> |
find(java.lang.String hostId,
java.util.Date fromDate,
java.util.Date endDate,
java.lang.String[] tags,
java.lang.String[] keywords,
java.util.List<Category> categories,
boolean liveOnly,
boolean includeArchived,
int offset,
int limit,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Retrieves a list of event filtering by the given parameters, also filtering by the events that the given user is able to see, or if the given user is null it filters by all the events marked for frontend visibility |
Event |
findbyInode(java.lang.String inode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Search for an specific event by inode also checks that the given user has permissions |
java.util.List<Event> |
findRelatedEvents(Event baseEvent,
java.util.Date fromDate,
java.util.Date toDate,
boolean live,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method retrieves the related events based on the baseEvent categories and tags |
Structure |
getBuildingStructure()
Retrieves the content structure used by events |
java.util.List<Category> |
getCategories(Event ev,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This method retrieves the list of categories associated to the given event |
Structure |
getEventStructure()
Retrieves the content structure used by events |
Structure |
getFacilityStructure()
Retrieves the content structure used by events |
java.util.List<Contentlet> |
getRelatedContent(Event ev,
Relationship rel,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Associates the given list of contentlets using the relationship |
void |
setCategories(Event ev,
java.util.List<Category> cats,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
This methods removes all the categories the user is able to remove from the event and then associates the categories passed as paramater |
void |
setRelatedContent(Event ev,
Relationship rel,
java.util.List<Contentlet> related,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
Associates the given list of contentlets using the relationship this methods removes old associated content and reset the relatioships based on the list of content passed as parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventAPIImpl()
| Method Detail |
|---|
public java.util.List<Event> find(java.util.Date fromDate,
java.util.Date endDate,
java.lang.String[] tags,
java.lang.String[] keywords,
java.util.List<Category> categories,
boolean liveOnly,
boolean includeArchived,
int offset,
int limit,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
find in interface EventAPIfromDate - endDate - tags - keyword - categories - liveOnly - user -
DotDataException
DotSecurityException
public java.util.List<Event> find(java.lang.String hostId,
java.util.Date fromDate,
java.util.Date endDate,
java.lang.String[] tags,
java.lang.String[] keywords,
java.util.List<Category> categories,
boolean liveOnly,
boolean includeArchived,
int offset,
int limit,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
find in interface EventAPIhostId - fromDate - endDate - tags - keyword - categories - liveOnly - user -
DotDataException
DotSecurityException
public Event find(java.lang.String id,
boolean live,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
find in interface EventAPIid - Identifier of the event to findlive - true if you want to find the live version of it, false if you
want the working version
DotDataException
DotSecurityException - If the user doesn't have permissions to see this event
public Event findbyInode(java.lang.String inode,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
EventAPI
findbyInode in interface EventAPIDotDataException
DotSecurityException
public java.util.List<Event> findRelatedEvents(Event baseEvent,
java.util.Date fromDate,
java.util.Date toDate,
boolean live,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
EventAPI
findRelatedEvents in interface EventAPIDotDataException
DotSecurityException - This exception is thrown if the user doesn't have permission
consult the baseEvent
public java.util.List<Category> getCategories(Event ev,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotSecurityException,
DotDataException
EventAPI
getCategories in interface EventAPIDotSecurityException
DotDataException
public void setCategories(Event ev,
java.util.List<Category> cats,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
setCategories in interface EventAPIDotDataException
DotSecurityException
public java.util.List<Contentlet> getRelatedContent(Event ev,
Relationship rel,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
EventAPI
getRelatedContent in interface EventAPIuser - The user is checked to see if he has the required permissions
to modify the event relationship
DotDataException
DotSecurityException
public void setRelatedContent(Event ev,
Relationship rel,
java.util.List<Contentlet> related,
com.liferay.portal.model.User user,
boolean respectFrontendRoles)
throws DotDataException,
DotSecurityException
EventAPI
setRelatedContent in interface EventAPIrelated - The order in the list mattersuser - The user is checked to see if he has the required permissions
to modify the event relationship
DotDataException
DotSecurityException
public Structure getBuildingStructure()
throws DotDataException
EventAPI
getBuildingStructure in interface EventAPIDotDataException
public Structure getEventStructure()
throws DotDataException
EventAPI
getEventStructure in interface EventAPIDotDataException
public Structure getFacilityStructure()
throws DotDataException
EventAPI
getFacilityStructure in interface EventAPIDotDataException
public java.lang.String createVCalendarInfo(Event event,
java.util.Date recurrenceStartDate,
java.util.Date recurrenceEndDate,
Host host)
EventAPI
createVCalendarInfo in interface EventAPIevent - The event to be transformed in the iCal format.
public Event disconnectEvent(Event event,
com.liferay.portal.model.User user,
java.util.Date startDate,
java.util.Date endDate)
throws DotDataException,
DotSecurityException
EventAPI
disconnectEvent in interface EventAPIevent - The base event of the recurrencestartDate - The startDate of the event to disconnectendDate - The endDate of the event to disconnect
DotDataException
DotSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||