org.springframework.data.rest.core.annotation.RestResource Java Examples
The following examples show how to use
org.springframework.data.rest.core.annotation.RestResource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EnvironmentRepository.java From galeb with Apache License 2.0 | 5 votes |
@RestResource(exported = false) @Query(value = "SELECT DISTINCT e FROM Environment as e " + "inner join e.virtualhosts as v " + "inner join v.virtualhostgroup as vp " + "inner join vp.rulesordered as ro " + "WHERE ro.id = :ruleorderedId") Set<Environment> findAllByRuleOrderedId(@Param("ruleorderedId") long ruleorderedId);
Example #2
Source File: EnvironmentRepository.java From galeb with Apache License 2.0 | 5 votes |
@RestResource(exported = false) @Query(value = "SELECT DISTINCT e FROM Environment as e " + "inner join e.virtualhosts as v " + "inner join v.virtualhostgroup as vp " + "WHERE vp.id = :vhgid") @PreAuthorize("@perm.allowView(null , #this)") List<Environment> findAllByVirtualhostgroupId(@Param("vhgid") long vhgid);
Example #3
Source File: DeliveryForecastDao.java From factory with MIT License | 4 votes |
@RestResource(path = "refNos", rel = "refNos") List<DeliveryForecastEntity> findByRefNoAndTimeBetween(String refNo, LocalDateTime from, LocalDateTime to);
Example #4
Source File: VirtualhostGroupRepository.java From galeb with Apache License 2.0 | 4 votes |
@Override @RestResource(exported = false) @PreAuthorize("@perm.allowSave(#virtualhostgroup, #this)") VirtualhostGroup save(@Param("virtualhostgroup") VirtualhostGroup virtualhostgroup);
Example #5
Source File: DemandAdjustmentDao.java From factory with MIT License | 4 votes |
@RestResource(exported = false) void deleteByCleanAfterGreaterThanEqual(LocalDate date);
Example #6
Source File: CommandRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) void deleteById(ID id);
Example #7
Source File: CommandRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) void delete(T entity);
Example #8
Source File: CommandRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) void deleteAll(Iterable<? extends T> entities);
Example #9
Source File: CommandRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) void deleteAll();
Example #10
Source File: ProjectionRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) <S extends T> S save(S entity);
Example #11
Source File: ProjectionRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) <S extends T> Iterable<S> saveAll(Iterable<S> entities);
Example #12
Source File: ProjectionRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) void deleteById(ID id);
Example #13
Source File: ProjectionRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) void delete(T entity);
Example #14
Source File: RequiredReviewDao.java From factory with MIT License | 4 votes |
@RestResource(exported = false) void deleteByCleanAfterGreaterThanEqual(LocalDate date);
Example #15
Source File: AccountRepository.java From galeb with Apache License 2.0 | 4 votes |
@Override @RestResource(exported = false) Account saveByPass(@Param("account") Account account);
Example #16
Source File: ProjectionRepository.java From factory with MIT License | 4 votes |
@Override @RestResource(exported = false) void deleteAll(Iterable<? extends T> entities);
Example #17
Source File: EnvironmentRepository.java From galeb with Apache License 2.0 | 4 votes |
@RestResource(exported = false) @Query(value = "SELECT DISTINCT e FROM Environment as e " + "inner join e.pools as p " + "inner join p.rules as r " + "WHERE r.id = :ruleId") Set<Environment> findAllByRuleId(@Param("ruleId") long ruleId);
Example #18
Source File: EnvironmentRepository.java From galeb with Apache License 2.0 | 4 votes |
@RestResource(exported = false) @Query(value = "SELECT DISTINCT e FROM Environment as e " + "inner join e.pools as p " + "inner join p.targets as t " + "WHERE t.id = :targetId") Set<Environment> findAllByTargetId(@Param("targetId") long targetId);
Example #19
Source File: VirtualHostRepository.java From galeb with Apache License 2.0 | 4 votes |
@RestResource(exported = false) @Query(value = FIND_ALL_BY_ENV_ID_SQL) List<VirtualHost> findAllByEnvironmentId(@Param("envId") Long envId);
Example #20
Source File: PackageMetadataRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@RestResource(exported = false) void deleteByRepositoryIdAndName(@Param("repositoryId") Long repositoryId, @Param("name") String name);
Example #21
Source File: PackageMetadataRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@RestResource(exported = false) PackageMetadata findByRepositoryNameAndNameAndVersion(@Param("repositoryName") String repositoryName, @Param("name") String name, @Param("version") String version);
Example #22
Source File: PackageMetadataRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@RestResource(exported = false) PackageMetadata findByRepositoryIdAndNameAndVersion(@Param("repositoryId") Long repositoryId, @Param("name") String name, @Param("version") String version);
Example #23
Source File: PackageMetadataRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@RestResource(exported = false) PackageMetadata findFirstByNameOrderByVersionDesc(@Param("name") String name);
Example #24
Source File: PackageMetadataRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@RestResource(exported = false) List<PackageMetadata> findByNameAndVersionOrderByApiVersionDesc(@Param("name") String name, @Param("version") String version);
Example #25
Source File: ReleaseRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@Transactional(readOnly = true) @RestResource(exported = false) List<Release> findByNameIgnoreCaseContaining(@Param("name") String name);
Example #26
Source File: ProductionDailyOutputDao.java From factory with MIT License | 4 votes |
@RestResource(path = "refNos", rel = "refNos") List<ProductionDailyOutputEntity> findByRefNoAndDateGreaterThanEqual(String refNo, LocalDate date);
Example #27
Source File: ReleaseRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@Transactional(readOnly = true) @RestResource(exported = false) List<Release> findByNameAndVersionBetweenOrderByNameAscVersionDesc(@Param("name") String name, @Param("from") int fromVersion, @Param("to") int toVersion);
Example #28
Source File: ReleaseRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@Transactional(readOnly = true) @RestResource(exported = false) List<Release> findByNameOrderByVersionDesc(@Param("name") String name);
Example #29
Source File: ProductMetadataRepo.java From yugastore-java with Apache License 2.0 | 4 votes |
@Query("SELECT * FROM cronos.products limit ?0 offset ?1") @RestResource(path = "products", rel = "products") public List<ProductMetadata> getProducts(@Param("limit") int limit, @Param("offset") int offset);
Example #30
Source File: ReleaseRepository.java From spring-cloud-skipper with Apache License 2.0 | 4 votes |
@Override @RestResource(exported = false) void delete(Release release);