public final class SetupCustomFields extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteCustomField(eu.lundegaard.liferay.db.setup.domain.CustomFields.Field customField,
String deleteMethod,
long companyId) |
static void |
deleteCustomFields(List<eu.lundegaard.liferay.db.setup.domain.CustomFields.Field> customFields,
String deleteMethod,
long companyId)
Method to delete the custom fields based on the deleteMethod.
|
static Serializable |
getAttributeFromString(int type,
String attribute) |
static void |
setupExpandoFields(List<eu.lundegaard.liferay.db.setup.domain.CustomFields.Field> fields,
long companyId)
Sets up custom expando fields for a site.
|
public static void setupExpandoFields(List<eu.lundegaard.liferay.db.setup.domain.CustomFields.Field> fields, long companyId)
fields - the list of custom fields to set upcompanyId - the company ID of the sitepublic static void deleteCustomField(eu.lundegaard.liferay.db.setup.domain.CustomFields.Field customField,
String deleteMethod,
long companyId)
public static void deleteCustomFields(List<eu.lundegaard.liferay.db.setup.domain.CustomFields.Field> customFields, String deleteMethod, long companyId)
If deleteMethod is "excludeListed", the method will delete all custom fields of the specified className in the list but the listed fields.
If deleteMethod is "onlyListed", the method will delete only the custom fields that are listed in the list.
customFields - List of custom fields to be deleteddeleteMethod - String value that specifies how to delete the fields. it
can take two values: "excludeListed" or "onlyListed"companyId - id of the companycom.liferay.portal.kernel.exception.SystemException - if system error occurspublic static Serializable getAttributeFromString(int type, String attribute)
Copyright © 2016–2023 Lundegaard a.s.. All rights reserved.