当前位置: 首页>>代码示例>>Java>>正文


Java RestResource类代码示例

本文整理汇总了Java中org.springframework.data.rest.core.annotation.RestResource的典型用法代码示例。如果您正苦于以下问题:Java RestResource类的具体用法?Java RestResource怎么用?Java RestResource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

RestResource类属于org.springframework.data.rest.core.annotation包,在下文中一共展示了RestResource类的31个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1:

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(path = "by-tool-item-and-associated-item-and-evaluated-item-ids", rel = "by-tool-item-and-associated-item-and-evaluated-item-ids")
@PreAuthorize("hasAnyRole('ROLE_EVALUATOR', 'ROLE_EVALUEE')")
@Query("select resource from Evaluation resource where " +
        "resource.evaluatedItemId = :evaluatedItemId " +
        "and resource.toolItemRubricAssociation.toolId = :toolId " +
        "and resource.toolItemRubricAssociation.itemId = :itemId " +
        "and (" + EVALUATOR_CONSTRAINT + " or " + EVALUEE_CONSTRAINT + ")")
List<Evaluation> findByToolIdAndAssociationItemIdAndEvaluatedItemId(@Param("toolId") String toolId,
        @Param("itemId") String itemId, @Param("evaluatedItemId") String evaluatedItemId);
 
开发者ID:sakaiproject,项目名称:sakai,代码行数:10,代码来源:EvaluationRepository.java


示例2: save

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Override
@RestResource(exported = false)
Deployer save(Deployer deployer);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:DeployerRepository.java


示例3: delete

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Override
@RestResource(exported = false)
void delete(String s);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:DeployerRepository.java


示例4: deleteAll

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Override
@RestResource(exported = false)
void deleteAll();
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:DeployerRepository.java


示例5: save

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Override
@RestResource(exported = false)
Repository save(Repository repository);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:RepositoryRepository.java


示例6: delete

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Override
@RestResource(exported = false)
void delete(Long id);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:RepositoryRepository.java


示例7: save

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Override
@RestResource(exported = false)
Release save(Release release);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:ReleaseRepository.java


示例8: findByNameOrderByVersionDesc

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Transactional(readOnly = true)
@RestResource(exported = false)
List<Release> findByNameOrderByVersionDesc(@Param("name") String name);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:ReleaseRepository.java


示例9:

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Transactional(readOnly = true)
@RestResource(exported = false)
List<Release> findByNameAndVersionBetweenOrderByNameAscVersionDesc(@Param("name") String name,
		@Param("from") int fromVersion, @Param("to") int toVersion);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:5,代码来源:ReleaseRepository.java


示例10: findTopByNameOrderByVersionDesc

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Transactional(readOnly = true)
@RestResource(exported = false)
Release findTopByNameOrderByVersionDesc(@Param("name") String name);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:ReleaseRepository.java


示例11: findByNameIgnoreCaseContaining

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@Transactional(readOnly = true)
@RestResource(exported = false)
List<Release> findByNameIgnoreCaseContaining(@Param("name") String name);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:ReleaseRepository.java


示例12:

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(exported = false)
List<PackageMetadata> findByNameAndVersionOrderByApiVersionDesc(@Param("name") String name,
		@Param("version") String version);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:PackageMetadataRepository.java


示例13: findFirstByNameOrderByVersionDesc

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(exported = false)
PackageMetadata findFirstByNameOrderByVersionDesc(@Param("name") String name);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:3,代码来源:PackageMetadataRepository.java


示例14: findByRepositoryIdAndNameAndVersion

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(exported = false)
PackageMetadata findByRepositoryIdAndNameAndVersion(@Param("repositoryId") Long repositoryId,
		@Param("name") String name,
		@Param("version") String version);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:5,代码来源:PackageMetadataRepository.java


示例15: findByRepositoryNameAndNameAndVersion

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(exported = false)
PackageMetadata findByRepositoryNameAndNameAndVersion(@Param("repositoryName") String repositoryName,
		@Param("name") String name,
		@Param("version") String version);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:5,代码来源:PackageMetadataRepository.java


示例16: deleteByRepositoryIdAndName

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(exported = false)
void deleteByRepositoryIdAndName(@Param("repositoryId") Long repositoryId,
		@Param("name") String name);
 
开发者ID:spring-cloud,项目名称:spring-cloud-skipper,代码行数:4,代码来源:PackageMetadataRepository.java


示例17: findByUserName

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource
Account findByUserName(@Param("userName") String userName);
 
开发者ID:Ex-TMA,项目名称:account-module,代码行数:3,代码来源:AccountRepository.java


示例18: findByState

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource
Page<Account> findByState(@Param("state") AccountState state, Pageable p);
 
开发者ID:Ex-TMA,项目名称:account-module,代码行数:3,代码来源:AccountRepository.java


示例19: findByName

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource
Page<Account> findByName(@Param("name") String name, Pageable p);
 
开发者ID:Ex-TMA,项目名称:account-module,代码行数:3,代码来源:AccountRepository.java


示例20: findByEmail

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource
Account findByEmail(@Param("email") String email);
 
开发者ID:Ex-TMA,项目名称:account-module,代码行数:3,代码来源:AccountRepository.java


示例21: findByAccesses

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource
Page<Account> findByAccesses(@Param("accesses") Collection<Access> accesses, Pageable p);
 
开发者ID:Ex-TMA,项目名称:account-module,代码行数:3,代码来源:AccountRepository.java


示例22: findFirstByName

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "byName", description = @Description("Find by name"))
public Restaurant findFirstByName(@Param("name") String name);
 
开发者ID:xiayank,项目名称:food-ordering-system,代码行数:3,代码来源:restaurantRepository.java


示例23: findAllByRestaurantId

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "byRestaurantId")
List<MenuItem> findAllByRestaurantId(@Param("restaurantId") String restaurantId);
 
开发者ID:xiayank,项目名称:food-ordering-system,代码行数:3,代码来源:menuItemRepository.java


示例24: findOrderById

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "by-id", description = @Description("Find order by id"))
Order findOrderById(@Param("id") String id);
 
开发者ID:xiayank,项目名称:food-ordering-system,代码行数:3,代码来源:OrderRepository.java


示例25: save

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "save", description = @Description("Save order"))
Order save(@Param("order") Order order);
 
开发者ID:xiayank,项目名称:food-ordering-system,代码行数:3,代码来源:OrderRepository.java


示例26: findPaymentById

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "by-id", description = @Description("find payment by id"))
Payment findPaymentById(@Param("id") String id);
 
开发者ID:xiayank,项目名称:food-ordering-system,代码行数:3,代码来源:PaymentRepository.java


示例27: findByAddressLocationNear

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "by-location")
Page<Store> findByAddressLocationNear(Point location, Distance distance, Pageable pageable);
 
开发者ID:Just-Fun,项目名称:spring-data-examples,代码行数:3,代码来源:StoreRepository.java


示例28: findByName

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(exported = false)
List<Customer> findByName(@Param("name") String name);
 
开发者ID:jcmellado,项目名称:sdre,代码行数:3,代码来源:CustomerRepository.java


示例29: findAllByRestaurantId

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "by-rid", description = @Description("Get all menuitems by restaurant id"))
public List<MenuItem> findAllByRestaurantId(String rid);
 
开发者ID:youhusky,项目名称:Food_Ordering_System,代码行数:3,代码来源:MenuItemRepository.java


示例30: findByName

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "by-name", description = @Description("Get menuitem by item name"))
public MenuItem findByName(@Param("name") String name);
 
开发者ID:youhusky,项目名称:Food_Ordering_System,代码行数:3,代码来源:MenuItemRepository.java


示例31: findFirstByName

import org.springframework.data.rest.core.annotation.RestResource; //导入依赖的package包/类
@RestResource(rel = "by-name", description = @Description("Find by name"))
public Restaurant findFirstByName(@Param("name") String name);
 
开发者ID:youhusky,项目名称:Food_Ordering_System,代码行数:3,代码来源:RestaurantRepository.java



注:本文中的org.springframework.data.rest.core.annotation.RestResource类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。