List of usage examples for com.liferay.portal.kernel.security.permission ActionKeys VIEW
String VIEW
To view the source code for com.liferay.portal.kernel.security.permission ActionKeys VIEW.
Click Source Link
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordSetVersionServiceImpl.java
License:Open Source License
@Override public List<DDLRecordSetVersion> getRecordSetVersions(long recordSetId, int start, int end, OrderByComparator<DDLRecordSetVersion> orderByComparator) throws PortalException { DDLRecordSetPermission.check(getPermissionChecker(), recordSetId, ActionKeys.VIEW); return ddlRecordSetVersionLocalService.getRecordSetVersions(recordSetId, start, end, orderByComparator); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordSetVersionServiceImpl.java
License:Open Source License
@Override public int getRecordSetVersionsCount(long recordSetId) throws PortalException { DDLRecordSetPermission.check(getPermissionChecker(), recordSetId, ActionKeys.VIEW); return ddlRecordSetVersionLocalService.getRecordSetVersionsCount(recordSetId); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordVersionServiceImpl.java
License:Open Source License
/** * Returns the record version matching the ID. * * @param recordVersionId the primary key of the record version * @return the record version with the ID * @throws PortalException if the matching record set could not be found or * if the user did not have the required permission to access the * record set/*from www . j ava2s.co m*/ */ @Override public DDLRecordVersion getRecordVersion(long recordVersionId) throws PortalException { DDLRecordVersion recordVersion = ddlRecordVersionLocalService.getRecordVersion(recordVersionId); DDLRecordPermission.check(getPermissionChecker(), recordVersion.getRecordId(), ActionKeys.VIEW); return recordVersion; }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordVersionServiceImpl.java
License:Open Source License
/** * Returns a record version matching the record and version. * * @param recordId the primary key of the record * @param version the version of the record to return * @return the record version macthing the record primary key and version * @throws PortalException if the matching record set is not found or if the * user do not have the required permission to access the record set *///w ww.ja va 2 s . c o m @Override public DDLRecordVersion getRecordVersion(long recordId, String version) throws PortalException { DDLRecordPermission.check(getPermissionChecker(), recordId, ActionKeys.VIEW); return ddlRecordVersionPersistence.findByR_V(recordId, version); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordVersionServiceImpl.java
License:Open Source License
/** * Returns all the record versions matching the record. * * @param recordId the primary key of the record * @return the matching record versions/*w w w .j a va 2 s .c o m*/ * @throws PortalException if a portal exception occurred */ @Override public List<DDLRecordVersion> getRecordVersions(long recordId) throws PortalException { DDLRecordPermission.check(getPermissionChecker(), recordId, ActionKeys.VIEW); return ddlRecordVersionPersistence.findByRecordId(recordId); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordVersionServiceImpl.java
License:Open Source License
/** * Returns an ordered range of record versions matching the record. * * <p>//from w w w. jav a2 s.co m * Useful when paginating results. Returns a maximum of <code>end - * start</code> instances. <code>start</code> and <code>end</code> are not * primary keys, they are indexes in the result set. Thus, <code>0</code> * refers to the first result in the set. Setting both <code>start</code> * and <code>end</code> to <code>QueryUtil.ALL_POS</code> will return the * full result set. * </p> * * @param recordId the primary key of the record * @param start the lower bound of the range of record versions to return * @param end the upper bound of the range of record versions to return * (not inclusive) * @param orderByComparator the comparator used to order the record * versions * @return the range of matching record versions ordered by the comparator * @throws PortalException if a portal exception occurred */ @Override public List<DDLRecordVersion> getRecordVersions(long recordId, int start, int end, OrderByComparator<DDLRecordVersion> orderByComparator) throws PortalException { DDLRecordPermission.check(getPermissionChecker(), recordId, ActionKeys.VIEW); return ddlRecordVersionPersistence.findByRecordId(recordId, start, end, orderByComparator); }
From source file:com.liferay.dynamic.data.lists.service.impl.DDLRecordVersionServiceImpl.java
License:Open Source License
/** * Returns the number of record versions matching the record. * * @param recordId the primary key of the record * @return the number of matching record versions * @throws PortalException if a portal exception occurred *///from w ww . j a va 2s . co m @Override public int getRecordVersionsCount(long recordId) throws PortalException { DDLRecordPermission.check(getPermissionChecker(), recordId, ActionKeys.VIEW); return ddlRecordVersionPersistence.countByRecordId(recordId); }
From source file:com.liferay.dynamic.data.lists.web.internal.display.context.DDLDisplayContext.java
License:Open Source License
protected boolean hasViewPermission() { if (_hasViewPermission != null) { return _hasViewPermission; }/*from w w w . j av a 2s .co m*/ _hasViewPermission = true; if (_recordSet != null) { _hasViewPermission = DDLRecordSetPermission.contains(getPermissionChecker(), _recordSet, ActionKeys.VIEW); } return _hasViewPermission; }
From source file:com.liferay.dynamic.data.mapping.form.web.internal.asset.DDMFormAssetRenderer.java
License:Open Source License
@Override public boolean hasViewPermission(PermissionChecker permissionChecker) { return DDMFormInstancePermission.contains(permissionChecker, _formInstance, ActionKeys.VIEW); }
From source file:com.liferay.dynamic.data.mapping.form.web.internal.display.context.DDMFormAdminDisplayContext.java
License:Open Source License
public boolean isShowCopyURLFormInstanceIcon(DDMFormInstance formInstance) { return DDMFormInstancePermission.contains(formAdminRequestHelper.getPermissionChecker(), formInstance, ActionKeys.VIEW); }