This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<root available-locales="en_US" default-locale="en_US"> | |
<dynamic-element dataType="string" indexType="" name="activeIndex" readOnly="false" repeatable="false" required="false" showLabel="true" type="text" width="small"> | |
<meta-data locale="en_US"> | |
<entry name="label"> | |
<![CDATA[activeIndex]]> | |
</entry> | |
<entry name="predefinedValue"> | |
<![CDATA[0]]> | |
</entry> | |
<entry name="tip"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($imageWidth = $maxImageWidth.Data) | |
#set($imageHeight = $maxImageHeight.Data) | |
#set($imageWidthPx = $imageWidth + "px") | |
#set($imageHeightPx = $imageHeight + "px") | |
#set($interval = $timeInterval.Data) | |
#set($activeIndexValue = $activeIndex.Data) | |
<style type="text/css"> | |
.aui .carousel { | |
-webkit-user-select: none; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void deleteTrashEntry(final long classPK) | |
throws PortalException, SystemException { | |
EventLocalServiceUtil.deleteEvent(classPK); | |
} | |
public void restoreTrashEntry(final long userId, final long classPK) | |
throws PortalException, SystemException { | |
EventLocalServiceUtil.restoreEntryFromTrash(userId, classPK); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<Event> getEventsByGroupId( | |
final long groupId, final int start, final int end) | |
throws SystemException { | |
return getEventsByGroupId( | |
groupId, WorkflowConstants.STATUS_IN_TRASH, start, end); | |
} | |
@Override | |
public List<Event> getEventsByGroupId( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Event deleteEvent(final Event event) | |
throws SystemException { | |
// Trash | |
try { | |
trashEntryLocalService.deleteEntry( | |
Event.class.getName(), event.getEventId()); | |
} | |
catch (PortalException e) { | |
_log.error(e.getMessage(), e); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void restoreEntryFromTrash(final long userId, final long eventId) | |
throws PortalException, SystemException { | |
// Entry | |
TrashEntry trashEntry = | |
trashEntryLocalService.getEntry(Event.class.getName(), eventId); | |
updateStatus(eventId, trashEntry.getStatus(), userId); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Event moveEntryToTrash(final long userId, final long eventId) throws PortalException, SystemException { | |
Event event = eventPersistence.findByPrimaryKey(eventId); | |
updateStatus(event.getEventId(), WorkflowConstants.STATUS_IN_TRASH, userId); | |
return event; | |
} | |
public Event updateStatus(final long eventId, final int status, final long userId) throws SystemException, PortalException { | |
Event event = eventPersistence.findByPrimaryKey(eventId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void deleteEvent( | |
final ActionRequest request, final ActionResponse response) | |
throws Exception { | |
long eventId = ParamUtil.getLong(request, "eventId"); | |
String cmd = ParamUtil.getString(request, Constants.CMD); | |
ThemeDisplay themeDisplay = | |
(ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<portlet:actionURL name="deleteEvent" var="deleteURL"> | |
<portlet:param name="<%= Constants.CMD %>" value="<%= TrashUtil.isTrashEnabled(scopeGroupId) ? Constants.MOVE_TO_TRASH : Constants.DELETE %>" /> | |
<portlet:param name="eventId" value="<%= String.valueOf(eventId) %>" /> | |
<portlet:param name="redirect" value="<%= redirect %>" /> | |
</portlet:actionURL> | |
<liferay-ui:icon-delete | |
label="<%= true %>" | |
trash="<%= TrashUtil.isTrashEnabled(scopeGroupId) %>" | |
url="<%= deleteURL.toString() %>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- References --> | |
<reference package-path="com.liferay.portlet.trash" entity="TrashEntry" /> |
NewerOlder