001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.tags.service.impl;
022:
023: import com.liferay.portal.PortalException;
024: import com.liferay.portal.SystemException;
025: import com.liferay.portal.kernel.json.JSONArrayWrapper;
026: import com.liferay.portlet.tags.model.TagsEntry;
027: import com.liferay.portlet.tags.service.base.TagsEntryServiceBaseImpl;
028:
029: import java.util.List;
030:
031: /**
032: * <a href="TagsEntryServiceImpl.java.html"><b><i>View Source</i></b></a>
033: *
034: * @author Brian Wing Shun Chan
035: *
036: */
037: public class TagsEntryServiceImpl extends TagsEntryServiceBaseImpl {
038:
039: public TagsEntry addEntry(String name) throws PortalException,
040: SystemException {
041:
042: return tagsEntryLocalService.addEntry(getUserId(), name);
043: }
044:
045: public TagsEntry addEntry(String name, String[] properties)
046: throws PortalException, SystemException {
047:
048: return tagsEntryLocalService.addEntry(getUserId(), name,
049: properties);
050: }
051:
052: public void deleteEntry(long entryId) throws PortalException,
053: SystemException {
054:
055: tagsEntryLocalService.deleteEntry(entryId);
056: }
057:
058: public List getEntries(String className, long classPK)
059: throws PortalException, SystemException {
060:
061: return tagsEntryLocalService.getEntries(className, classPK);
062: }
063:
064: public List search(long companyId, String name, String[] properties)
065: throws SystemException {
066:
067: return tagsEntryLocalService
068: .search(companyId, name, properties);
069: }
070:
071: public List search(long companyId, String name,
072: String[] properties, int begin, int end)
073: throws SystemException {
074:
075: return tagsEntryLocalService.search(companyId, name,
076: properties, begin, end);
077: }
078:
079: public JSONArrayWrapper searchAutocomplete(long companyId,
080: String name, String[] properties, int begin, int end)
081: throws SystemException {
082:
083: return tagsEntryLocalService.searchAutocomplete(companyId,
084: name, properties, begin, end);
085: }
086:
087: public int searchCount(long companyId, String name,
088: String[] properties) throws SystemException {
089:
090: return tagsEntryLocalService.searchCount(companyId, name,
091: properties);
092: }
093:
094: public TagsEntry updateEntry(long entryId, String name)
095: throws PortalException, SystemException {
096:
097: return tagsEntryLocalService.updateEntry(entryId, name);
098: }
099:
100: public TagsEntry updateEntry(long entryId, String name,
101: String[] properties) throws PortalException,
102: SystemException {
103:
104: return tagsEntryLocalService.updateEntry(getUserId(), entryId,
105: name, properties);
106: }
107:
108: }
|