本文整理匯總了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);
示例2: save
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Override
@RestResource(exported = false)
Deployer save(Deployer deployer);
示例3: delete
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Override
@RestResource(exported = false)
void delete(String s);
示例4: deleteAll
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Override
@RestResource(exported = false)
void deleteAll();
示例5: save
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Override
@RestResource(exported = false)
Repository save(Repository repository);
示例6: delete
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Override
@RestResource(exported = false)
void delete(Long id);
示例7: save
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Override
@RestResource(exported = false)
Release save(Release release);
示例8: findByNameOrderByVersionDesc
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Transactional(readOnly = true)
@RestResource(exported = false)
List<Release> findByNameOrderByVersionDesc(@Param("name") String name);
示例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);
示例10: findTopByNameOrderByVersionDesc
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Transactional(readOnly = true)
@RestResource(exported = false)
Release findTopByNameOrderByVersionDesc(@Param("name") String name);
示例11: findByNameIgnoreCaseContaining
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@Transactional(readOnly = true)
@RestResource(exported = false)
List<Release> findByNameIgnoreCaseContaining(@Param("name") String name);
示例12:
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@RestResource(exported = false)
List<PackageMetadata> findByNameAndVersionOrderByApiVersionDesc(@Param("name") String name,
@Param("version") String version);
示例13: findFirstByNameOrderByVersionDesc
import org.springframework.data.rest.core.annotation.RestResource; //導入依賴的package包/類
@RestResource(exported = false)
PackageMetadata findFirstByNameOrderByVersionDesc(@Param("name") String name);
示例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);
示例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);