當前位置: 首頁>>代碼示例>>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類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的org.springframework.data.rest.core.annotation.RestResource類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。