List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys UPDATE
String UPDATE
To view the source code for com.liferay.portal.kernel.security.permission ActionKeys UPDATE.
Click Source Link
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordSetServiceImpl.java
License:Open Source License
/** * Updates the number of minimum rows to display for the record set. Useful * when the record set is being displayed in spreadsheet. * * @param recordSetId the primary key of the record set * @param minDisplayRows the record set's minimum number of rows to be * displayed in spreadsheet view * @param serviceContext the service context to be applied. This can set * the record set modified date. * @return the record set/* w w w. j a v a 2s. c om*/ * @throws PortalException if a portal exception occurred */ @Override public DDLRecordSet updateMinDisplayRows(long recordSetId, int minDisplayRows, ServiceContext serviceContext) throws PortalException { DDLRecordSetPermission.check(getPermissionChecker(), recordSetId, ActionKeys.UPDATE); return ddlRecordSetLocalService.updateMinDisplayRows(recordSetId, minDisplayRows, serviceContext); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordSetServiceImpl.java
License:Open Source License
/** * Updates the the record set's settings. * * @param recordSetId the primary key of the record set * @param settingsDDMFormValues the record set's settings. For more * information see <code>DDMFormValues</code> in the * <code>dynamic.data.mapping.api</code> module. * @return the record set/* ww w. j ava 2 s . c om*/ * @throws PortalException if a portal exception occurred */ @Override public DDLRecordSet updateRecordSet(long recordSetId, DDMFormValues settingsDDMFormValues) throws PortalException { DDLRecordSetPermission.check(getPermissionChecker(), recordSetId, ActionKeys.UPDATE); return ddlRecordSetLocalService.updateRecordSet(recordSetId, settingsDDMFormValues); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordSetServiceImpl.java
License:Open Source License
/** * Updates the DDM structure, name, description, and minimum number of * display rows for the record set matching the record set ID. * * @param recordSetId the primary key of the record set * @param ddmStructureId the primary key of the record set's DDM structure * @param nameMap the record set's locales and localized names * @param descriptionMap the record set's locales and localized * descriptions//from w w w. java 2s .c om * @param minDisplayRows the record set's minimum number of rows to be * displayed in spreadsheet view. * @param serviceContext the service context to be applied. Can set the * record set modified date. * @return the record set * @throws PortalException if a portal exception occurred */ @Override public DDLRecordSet updateRecordSet(long recordSetId, long ddmStructureId, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, int minDisplayRows, ServiceContext serviceContext) throws PortalException { DDLRecordSetPermission.check(getPermissionChecker(), recordSetId, ActionKeys.UPDATE); return ddlRecordSetLocalService.updateRecordSet(recordSetId, ddmStructureId, nameMap, descriptionMap, minDisplayRows, serviceContext); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordSetServiceImpl.java
License:Open Source License
/** * Updates the DDM structure, name, description, and minimum number of * display rows for the record set matching the group ID and record set key. * * @param groupId the primary key of the record set's group * @param ddmStructureId the primary key of the record set's DDM structure * @param recordSetKey the record set's mnemonic primary key * @param nameMap the record set's locales and localized names * @param descriptionMap the record set's locales and localized * descriptions/*from ww w . j av a2 s . c o m*/ * @param minDisplayRows the record set's minimum number of rows to be * displayed in spreadsheet view * @param serviceContext the service context to be applied. This can set * the record set modified date. * @return the record set * @throws PortalException if a portal exception occurred */ @Override public DDLRecordSet updateRecordSet(long groupId, long ddmStructureId, String recordSetKey, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, int minDisplayRows, ServiceContext serviceContext) throws PortalException { DDLRecordSetPermission.check(getPermissionChecker(), groupId, recordSetKey, ActionKeys.UPDATE); return ddlRecordSetLocalService.updateRecordSet(groupId, ddmStructureId, recordSetKey, nameMap, descriptionMap, minDisplayRows, serviceContext); }
From source file:com.liferay.dynamic.data.lists.web.asset.DDLRecordAssetRenderer.java
License:Open Source License
@Override public boolean hasEditPermission(PermissionChecker permissionChecker) { return DDLRecordSetPermission.contains(permissionChecker, _recordSet, ActionKeys.UPDATE); }
From source file:com.liferay.dynamic.data.lists.web.internal.display.context.DDLDisplayContext.java
License:Open Source License
public boolean isShowEditDisplayDDMTemplateIcon() throws PortalException { if (_hasEditDisplayDDMTemplatePermission != null) { return _hasEditDisplayDDMTemplatePermission; }//from w w w.ja v a 2 s. c o m _hasEditDisplayDDMTemplatePermission = Boolean.FALSE; DDMTemplate displayDDMTemplate = fetchDisplayDDMTemplate(); if (displayDDMTemplate == null) { return _hasEditDisplayDDMTemplatePermission; } _hasEditDisplayDDMTemplatePermission = DDMTemplatePermission.contains(getPermissionChecker(), getScopeGroupId(), getDisplayDDMTemplateId(), DDLPortletKeys.DYNAMIC_DATA_LISTS, ActionKeys.UPDATE); return _hasEditDisplayDDMTemplatePermission; }
From source file:com.liferay.dynamic.data.lists.web.internal.display.context.DDLDisplayContext.java
License:Open Source License
public boolean isShowEditFormDDMTemplateIcon() throws PortalException { if (_hasEditFormDDMTemplatePermission != null) { return _hasEditFormDDMTemplatePermission; }//ww w. j a va 2 s.c om _hasEditFormDDMTemplatePermission = Boolean.FALSE; if (getFormDDMTemplateId() == 0) { return _hasEditFormDDMTemplatePermission; } _hasEditFormDDMTemplatePermission = DDMTemplatePermission.contains(getPermissionChecker(), getScopeGroupId(), getFormDDMTemplateId(), DDLPortletKeys.DYNAMIC_DATA_LISTS, ActionKeys.UPDATE); return _hasEditFormDDMTemplatePermission; }
From source file:com.liferay.dynamic.data.lists.web.internal.display.context.DDLDisplayContext.java
License:Open Source License
public boolean isShowEditRecordSetIcon() { DDLRecordSet recordSet = getRecordSet(); if (recordSet == null) { return false; }/*w w w. j a v a 2 s . co m*/ return DDLRecordSetPermission.contains(getPermissionChecker(), recordSet, ActionKeys.UPDATE); }
From source file:com.liferay.dynamic.data.mapping.data.provider.web.internal.display.context.DDMDataProviderDisplayContext.java
License:Open Source License
public boolean isShowEditDataProviderIcon(DDMDataProviderInstance dataProviderInstance) throws PortalException { return DDMDataProviderInstancePermission.contains(_ddmDataProviderRequestHelper.getPermissionChecker(), dataProviderInstance, ActionKeys.UPDATE); }
From source file:com.liferay.dynamic.data.mapping.form.web.internal.display.context.DDMFormAdminDisplayContext.java
License:Open Source License
public boolean isShowEditFormInstanceIcon(DDMFormInstance formInstance) { return DDMFormInstancePermission.contains(formAdminRequestHelper.getPermissionChecker(), formInstance, ActionKeys.UPDATE); }