com.liferay.portlet.journal.service.JournalStructureLocalServiceUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portlet.journal.service;
import aQute.bnd.annotation.ProviderType;
import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.util.ReferenceRegistry;
/**
* Provides the local service utility for JournalStructure. This utility wraps
* {@link com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl} and is the
* primary access point for service operations in application layer code running
* on the local server. Methods of this service will not have security checks
* based on the propagated JAAS credentials because this service can only be
* accessed from within the same VM.
*
* @author Brian Wing Shun Chan
* @see JournalStructureLocalService
* @see com.liferay.portlet.journal.service.base.JournalStructureLocalServiceBaseImpl
* @see com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl
* @deprecated As of 6.2.0, since Web Content Administration now uses the
Dynamic Data Mapping framework to handle structures
* @generated
*/
@ProviderType
public class JournalStructureLocalServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.journal.service.impl.JournalStructureLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
public static java.lang.String getBeanIdentifier() {
return getService().getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
public static void setBeanIdentifier(java.lang.String beanIdentifier) {
getService().setBeanIdentifier(beanIdentifier);
}
public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
com.liferay.portlet.journal.model.JournalStructure structure)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().addJournalStructure(structure);
}
public static com.liferay.portlet.journal.model.JournalStructure addStructure(
long userId, long groupId, java.lang.String structureId,
boolean autoStructureId, java.lang.String parentStructureId,
java.util.Map nameMap,
java.util.Map descriptionMap,
java.lang.String xsd,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addStructure(userId, groupId, structureId, autoStructureId,
parentStructureId, nameMap, descriptionMap, xsd, serviceContext);
}
public static void addStructureResources(
com.liferay.portlet.journal.model.JournalStructure structure,
boolean addGroupPermissions, boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService()
.addStructureResources(structure, addGroupPermissions,
addGuestPermissions);
}
public static void addStructureResources(
com.liferay.portlet.journal.model.JournalStructure structure,
java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService()
.addStructureResources(structure, groupPermissions, guestPermissions);
}
public static void addStructureResources(long groupId,
java.lang.String structureId, boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService()
.addStructureResources(groupId, structureId, addGroupPermissions,
addGuestPermissions);
}
public static void addStructureResources(long groupId,
java.lang.String structureId, java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService()
.addStructureResources(groupId, structureId, groupPermissions,
guestPermissions);
}
public static void checkNewLine(long groupId, java.lang.String structureId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService().checkNewLine(groupId, structureId);
}
public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
long userId, long groupId, java.lang.String oldStructureId,
java.lang.String newStructureId, boolean autoStructureId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.copyStructure(userId, groupId, oldStructureId,
newStructureId, autoStructureId);
}
public static com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
long id) throws com.liferay.portal.kernel.exception.SystemException {
return getService().createJournalStructure(id);
}
public static void deleteStructure(
com.liferay.portlet.journal.model.JournalStructure structure)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService().deleteStructure(structure);
}
public static void deleteStructure(long groupId,
java.lang.String structureId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService().deleteStructure(groupId, structureId);
}
public static void deleteStructures(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
getService().deleteStructures(groupId);
}
public static com.liferay.portlet.journal.model.JournalStructure fetchStructure(
long groupId, java.lang.String structureId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().fetchStructure(groupId, structureId);
}
public static java.util.List findAll()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().findAll();
}
public static com.liferay.portlet.journal.model.JournalStructure getStructure(
long groupId, java.lang.String structureId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().getStructure(groupId, structureId);
}
public static com.liferay.portlet.journal.model.JournalStructure getStructure(
long groupId, java.lang.String structureId,
boolean includeGlobalStructures)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.getStructure(groupId, structureId, includeGlobalStructures);
}
public static java.util.List getStructures()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getStructures();
}
public static java.util.List getStructures(
long groupId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getStructures(groupId);
}
public static java.util.List getStructures(
long groupId, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getStructures(groupId, start, end);
}
public static int getStructuresCount(long groupId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().getStructuresCount(groupId);
}
public static java.util.List search(
long companyId, long[] groupIds, java.lang.String keywords, int start,
int end, com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.search(companyId, groupIds, keywords, start, end, obc);
}
public static java.util.List search(
long companyId, long[] groupIds, java.lang.String structureId,
java.lang.String name, java.lang.String description,
boolean andOperator, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.search(companyId, groupIds, structureId, name, description,
andOperator, start, end, obc);
}
public static int searchCount(long companyId, long[] groupIds,
java.lang.String keywords)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().searchCount(companyId, groupIds, keywords);
}
public static int searchCount(long companyId, long[] groupIds,
java.lang.String structureId, java.lang.String name,
java.lang.String description, boolean andOperator)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.searchCount(companyId, groupIds, structureId, name,
description, andOperator);
}
public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
com.liferay.portlet.journal.model.JournalStructure structure)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().updateJournalStructure(structure);
}
public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
long groupId, java.lang.String structureId,
java.lang.String parentStructureId,
java.util.Map nameMap,
java.util.Map descriptionMap,
java.lang.String xsd,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateStructure(groupId, structureId, parentStructureId,
nameMap, descriptionMap, xsd, serviceContext);
}
public static JournalStructureLocalService getService() {
if (_service == null) {
_service = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName());
ReferenceRegistry.registerReference(JournalStructureLocalServiceUtil.class,
"_service");
}
return _service;
}
/**
* @deprecated As of 6.2.0
*/
public void setService(JournalStructureLocalService service) {
}
private static JournalStructureLocalService _service;
}