@Override public com.liferay.dynamic.data.mapping.model.DDMStructure copyStructure( long userId, long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.copyStructure(userId, structureId, serviceContext); }
/** * Copies a structure, creating a new structure with all the values * extracted from the original one. The new structure supports a new name * and description. * * @param userId the primary key of the structure's creator/owner * @param structureId the primary key of the structure to be copied * @param nameMap the new structure's locales and localized names * @param descriptionMap the new structure's locales and localized descriptions * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the new structure */ @Override public com.liferay.dynamic.data.mapping.model.DDMStructure copyStructure( long userId, long structureId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return _ddmStructureLocalService.copyStructure(userId, structureId, nameMap, descriptionMap, serviceContext); }
public static com.liferay.dynamic.data.mapping.model.DDMStructure copyStructure( long userId, long structureId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService().copyStructure(userId, structureId, serviceContext); }
/** * Copies a structure, creating a new structure with all the values * extracted from the original one. The new structure supports a new name * and description. * * @param userId the primary key of the structure's creator/owner * @param structureId the primary key of the structure to be copied * @param nameMap the new structure's locales and localized names * @param descriptionMap the new structure's locales and localized descriptions * @param serviceContext the service context to be applied. Can set the UUID, creation date, modification date, guest permissions, and group permissions for the structure. * @return the new structure */ public static com.liferay.dynamic.data.mapping.model.DDMStructure copyStructure( long userId, long structureId, java.util.Map<java.util.Locale, String> nameMap, java.util.Map<java.util.Locale, String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException { return getService() .copyStructure(userId, structureId, nameMap, descriptionMap, serviceContext); }
@Override public DDMStructure copyStructure( long structureId, ServiceContext serviceContext) throws PortalException { DDMStructure structure = ddmStructurePersistence.findByPrimaryKey( structureId); _ddmStructureModelResourcePermission.check( getPermissionChecker(), structure, ActionKeys.VIEW); _ddmPermissionSupport.checkAddStructurePermission( getPermissionChecker(), serviceContext.getScopeGroupId(), structure.getClassNameId()); return ddmStructureLocalService.copyStructure( getUserId(), structureId, serviceContext); }
/** * Copies a structure, creating a new structure with all the values * extracted from the original one. The new structure supports a new name * and description. * * @param structureId the primary key of the structure to be copied * @param nameMap the new structure's locales and localized names * @param descriptionMap the new structure's locales and localized * descriptions * @param serviceContext the service context to be applied. Can set the * UUID, creation date, modification date, guest permissions, and * group permissions for the structure. * @return the new structure */ @Override public DDMStructure copyStructure( long structureId, Map<Locale, String> nameMap, Map<Locale, String> descriptionMap, ServiceContext serviceContext) throws PortalException { DDMStructure structure = ddmStructurePersistence.findByPrimaryKey( structureId); _ddmStructureModelResourcePermission.check( getPermissionChecker(), structure, ActionKeys.VIEW); _ddmPermissionSupport.checkAddStructurePermission( getPermissionChecker(), serviceContext.getScopeGroupId(), structure.getClassNameId()); return ddmStructureLocalService.copyStructure( getUserId(), structureId, nameMap, descriptionMap, serviceContext); }