Class ObjectDefinitionServiceUtil

java.lang.Object
com.liferay.object.service.ObjectDefinitionServiceUtil

public class ObjectDefinitionServiceUtil extends Object
Provides the remote service utility for ObjectDefinition. This utility wraps com.liferay.object.service.impl.ObjectDefinitionServiceImpl and is an access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
See Also:
Generated:
  • Constructor Details

    • ObjectDefinitionServiceUtil

      public ObjectDefinitionServiceUtil()
  • Method Details

    • addCustomObjectDefinition

      public static ObjectDefinition addCustomObjectDefinition(long objectFolderId, String className, boolean enableComments, boolean enableFriendlyURLCustomization, boolean enableIndexSearch, boolean enableLocalization, boolean enableObjectEntryDraft, Map<Locale,String> labelMap, String name, String panelAppOrder, String panelCategoryKey, Map<Locale,String> pluralLabelMap, boolean portlet, String scope, String storageType, List<ObjectField> objectFields) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addObjectDefinition

      public static ObjectDefinition addObjectDefinition(String externalReferenceCode, long objectFolderId, boolean modifiable, String scope, boolean system) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addSystemObjectDefinition

      public static ObjectDefinition addSystemObjectDefinition(String externalReferenceCode, long userId, long objectFolderId, boolean enableComments, boolean enableFriendlyURLCustomization, boolean enableIndexSearch, boolean enableLocalization, Map<Locale,String> labelMap, String name, String panelAppOrder, String panelCategoryKey, Map<Locale,String> pluralLabelMap, boolean portlet, String scope, List<ObjectField> objectFields) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteObjectDefinition

      public static ObjectDefinition deleteObjectDefinition(long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchObjectDefinitionByExternalReferenceCode

      public static ObjectDefinition fetchObjectDefinitionByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectDefinition

      public static ObjectDefinition getObjectDefinition(long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectDefinitionByExternalReferenceCode

      public static ObjectDefinition getObjectDefinitionByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectDefinitions

      public static List<ObjectDefinition> getObjectDefinitions(int start, int end)
    • getObjectDefinitions

      public static List<ObjectDefinition> getObjectDefinitions(long companyId, int start, int end)
    • getObjectDefinitionsCount

      public static int getObjectDefinitionsCount() throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getObjectDefinitionsCount

      public static int getObjectDefinitionsCount(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • publishCustomObjectDefinition

      public static ObjectDefinition publishCustomObjectDefinition(long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • publishSystemObjectDefinition

      public static ObjectDefinition publishSystemObjectDefinition(long objectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCustomObjectDefinition

      public static ObjectDefinition updateCustomObjectDefinition(String externalReferenceCode, long objectDefinitionId, long accountEntryRestrictedObjectFieldId, long descriptionObjectFieldId, long objectFolderId, long titleObjectFieldId, boolean accountEntryRestricted, boolean active, String className, boolean enableCategorization, boolean enableComments, boolean enableFriendlyURLCustomization, boolean enableIndexSearch, boolean enableLocalization, boolean enableObjectEntryDraft, boolean enableObjectEntryHistory, Map<Locale,String> labelMap, String name, String panelAppOrder, String panelCategoryKey, boolean portlet, Map<Locale,String> pluralLabelMap, String scope, int status) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateExternalReferenceCode

      public static ObjectDefinition updateExternalReferenceCode(long objectDefinitionId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateRootObjectDefinitionId

      public static ObjectDefinition updateRootObjectDefinitionId(long objectDefinitionId, long rootObjectDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateSystemObjectDefinition

      public static ObjectDefinition updateSystemObjectDefinition(String externalReferenceCode, long objectDefinitionId, long objectFolderId, long titleObjectFieldId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateTitleObjectFieldId

      public static ObjectDefinition updateTitleObjectFieldId(long objectDefinitionId, long titleObjectFieldId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static ObjectDefinitionService getService()