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.mapping.service.impl.DDMStructureVersionServiceImpl.java
License:Open Source License
@Override public List<DDMStructureVersion> getStructureVersions(long structureId, int start, int end, OrderByComparator<DDMStructureVersion> orderByComparator) throws PortalException { DDMStructurePermission.check(getPermissionChecker(), structureId, ActionKeys.VIEW); return ddmStructureVersionLocalService.getStructureVersions(structureId, start, end, orderByComparator); }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMStructureVersionServiceImpl.java
License:Open Source License
@Override public int getStructureVersionsCount(long structureId) throws PortalException { DDMStructurePermission.check(getPermissionChecker(), structureId, ActionKeys.VIEW); return ddmStructureVersionLocalService.getStructureVersionsCount(structureId); }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateServiceImpl.java
License:Open Source License
/** * Returns the template matching the group and template key. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for template's * related model/*from w w w .j a v a 2 s. c om*/ * @param templateKey the unique string identifying the template * @return the matching template, or <code>null</code> if a matching * template could not be found */ @Override public DDMTemplate fetchTemplate(long groupId, long classNameId, String templateKey) throws PortalException { DDMTemplate ddmTemplate = ddmTemplateLocalService.fetchTemplate(groupId, classNameId, templateKey); if (ddmTemplate != null) { DDMTemplatePermission.check(getPermissionChecker(), ddmTemplate, ActionKeys.VIEW); } return ddmTemplate; }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateServiceImpl.java
License:Open Source License
/** * Returns the template with the ID./* ww w.j av a 2 s .c o m*/ * * @param templateId the primary key of the template * @return the template with the ID */ @Override public DDMTemplate getTemplate(long templateId) throws PortalException { DDMTemplatePermission.check(getPermissionChecker(), templateId, ActionKeys.VIEW); return ddmTemplatePersistence.findByPrimaryKey(templateId); }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateServiceImpl.java
License:Open Source License
/** * Returns the template matching the group and template key. * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for template's * related model// ww w . ja va2 s .c om * @param templateKey the unique string identifying the template * @return the matching template */ @Override public DDMTemplate getTemplate(long groupId, long classNameId, String templateKey) throws PortalException { DDMTemplate ddmTemplate = ddmTemplateLocalService.getTemplate(groupId, classNameId, templateKey); DDMTemplatePermission.check(getPermissionChecker(), ddmTemplate, ActionKeys.VIEW); return ddmTemplate; }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateServiceImpl.java
License:Open Source License
/** * Returns the template matching the group and template key, optionally * searching ancestor sites (that have sharing enabled) and global scoped * sites.//from ww w . j av a 2 s . c om * * <p> * This method first searches in the group. If the template is still not * found and <code>includeAncestorTemplates</code> is set to * <code>true</code>, this method searches the group's ancestor sites (that * have sharing enabled) and lastly searches global scoped sites. * </p> * * @param groupId the primary key of the group * @param classNameId the primary key of the class name for template's * related model * @param templateKey the unique string identifying the template * @param includeAncestorTemplates whether to include ancestor sites (that * have sharing enabled) and include global scoped sites in the * search * @return the matching template */ @Override public DDMTemplate getTemplate(long groupId, long classNameId, String templateKey, boolean includeAncestorTemplates) throws PortalException { DDMTemplate ddmTemplate = ddmTemplateLocalService.getTemplate(groupId, classNameId, templateKey, includeAncestorTemplates); DDMTemplatePermission.check(getPermissionChecker(), ddmTemplate, ActionKeys.VIEW); return ddmTemplate; }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateVersionServiceImpl.java
License:Open Source License
@Override public DDMTemplateVersion getLatestTemplateVersion(long templateId) throws PortalException { DDMTemplatePermission.check(getPermissionChecker(), templateId, ActionKeys.VIEW); return ddmTemplateVersionLocalService.getLatestTemplateVersion(templateId); }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateVersionServiceImpl.java
License:Open Source License
@Override public DDMTemplateVersion getTemplateVersion(long templateVersionId) throws PortalException { DDMTemplateVersion templateVersion = ddmTemplateVersionLocalService.getTemplateVersion(templateVersionId); DDMTemplatePermission.check(getPermissionChecker(), templateVersion.getTemplateId(), ActionKeys.VIEW); return templateVersion; }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateVersionServiceImpl.java
License:Open Source License
@Override public List<DDMTemplateVersion> getTemplateVersions(long templateId, int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator) throws PortalException { DDMTemplatePermission.check(getPermissionChecker(), templateId, ActionKeys.VIEW); return ddmTemplateVersionLocalService.getTemplateVersions(templateId, start, end, orderByComparator); }
From source file:com.liferay.dynamic.data.mapping.service.impl.DDMTemplateVersionServiceImpl.java
License:Open Source License
@Override public int getTemplateVersionsCount(long templateId) throws PortalException { DDMTemplatePermission.check(getPermissionChecker(), templateId, ActionKeys.VIEW); return ddmTemplateVersionLocalService.getTemplateVersionsCount(templateId); }