001
014
015 package com.liferay.portlet.expando.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026 import com.liferay.portal.service.BaseService;
027
028
039 @AccessControlled
040 @JSONWebService
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface ExpandoColumnService extends BaseService {
045
050 public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
051 long tableId, java.lang.String name, int type)
052 throws PortalException;
053
054 public com.liferay.portlet.expando.model.ExpandoColumn addColumn(
055 long tableId, java.lang.String name, int type,
056 java.lang.Object defaultData) throws PortalException;
057
058 public void deleteColumn(long columnId) throws PortalException;
059
060 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
061 public com.liferay.portlet.expando.model.ExpandoColumn fetchExpandoColumn(
062 long columnId) throws PortalException;
063
064
069 public java.lang.String getOSGiServiceIdentifier();
070
071 public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
072 long columnId, java.lang.String name, int type)
073 throws PortalException;
074
075 public com.liferay.portlet.expando.model.ExpandoColumn updateColumn(
076 long columnId, java.lang.String name, int type,
077 java.lang.Object defaultData) throws PortalException;
078
079 public com.liferay.portlet.expando.model.ExpandoColumn updateTypeSettings(
080 long columnId, java.lang.String typeSettings) throws PortalException;
081 }