Skip to content

Commit 781053f

Browse files
committed
Move util classes
- Create package for util classes and move them there
1 parent 028894b commit 781053f

20 files changed

+73
-68
lines changed

src/main/java/org/phoebus/channelfinder/CFResourceDescriptors.java renamed to src/main/java/org/phoebus/channelfinder/common/CFResourceDescriptors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.phoebus.channelfinder;
1+
package org.phoebus.channelfinder.common;
22

33
public class CFResourceDescriptors {
44

src/main/java/org/phoebus/channelfinder/epics/NTXmlUtil.java renamed to src/main/java/org/phoebus/channelfinder/common/NTXmlUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.phoebus.channelfinder.epics;
1+
package org.phoebus.channelfinder.common;
22

33
import static org.phoebus.channelfinder.service.ChannelFinderEpicsService.COLUMN_CHANNEL_NAME;
44
import static org.phoebus.channelfinder.service.ChannelFinderEpicsService.COLUMN_OWNER;

src/main/java/org/phoebus/channelfinder/TextUtil.java renamed to src/main/java/org/phoebus/channelfinder/common/TextUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.phoebus.channelfinder;
1+
package org.phoebus.channelfinder.common;
22

33
/**
44
* Utility class to assist in handling of text.

src/main/java/org/phoebus/channelfinder/configuration/ElasticConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import org.apache.http.message.BasicHeader;
4242
import org.elasticsearch.client.RestClient;
4343
import org.elasticsearch.client.RestClientBuilder;
44-
import org.phoebus.channelfinder.TextUtil;
44+
import org.phoebus.channelfinder.common.TextUtil;
4545
import org.phoebus.channelfinder.entity.Property;
4646
import org.phoebus.channelfinder.entity.Tag;
4747
import org.springframework.beans.factory.annotation.Value;

src/main/java/org/phoebus/channelfinder/respository/ChannelRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@
4949
import java.util.stream.Collectors;
5050
import java.util.stream.StreamSupport;
5151
import javax.annotation.PreDestroy;
52-
import org.phoebus.channelfinder.CFResourceDescriptors;
53-
import org.phoebus.channelfinder.TextUtil;
52+
import org.phoebus.channelfinder.common.CFResourceDescriptors;
53+
import org.phoebus.channelfinder.common.TextUtil;
5454
import org.phoebus.channelfinder.configuration.ElasticConfig;
5555
import org.phoebus.channelfinder.entity.Channel;
5656
import org.phoebus.channelfinder.entity.Property;

src/main/java/org/phoebus/channelfinder/respository/PropertyRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import java.util.logging.Level;
3232
import java.util.logging.Logger;
3333
import java.util.stream.StreamSupport;
34-
import org.phoebus.channelfinder.TextUtil;
34+
import org.phoebus.channelfinder.common.TextUtil;
3535
import org.phoebus.channelfinder.configuration.ElasticConfig;
3636
import org.phoebus.channelfinder.entity.Channel;
3737
import org.phoebus.channelfinder.entity.Property;

src/main/java/org/phoebus/channelfinder/respository/TagRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import java.util.logging.Level;
3333
import java.util.logging.Logger;
3434
import java.util.stream.StreamSupport;
35-
import org.phoebus.channelfinder.TextUtil;
35+
import org.phoebus.channelfinder.common.TextUtil;
3636
import org.phoebus.channelfinder.configuration.ElasticConfig;
3737
import org.phoebus.channelfinder.entity.Channel;
3838
import org.phoebus.channelfinder.entity.Tag;

src/main/java/org/phoebus/channelfinder/rest/controller/ChannelManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.phoebus.channelfinder.rest.controller;
22

3-
import static org.phoebus.channelfinder.CFResourceDescriptors.CHANNEL_RESOURCE_URI;
4-
import static org.phoebus.channelfinder.CFResourceDescriptors.SEARCH_PARAM_DESCRIPTION;
3+
import static org.phoebus.channelfinder.common.CFResourceDescriptors.CHANNEL_RESOURCE_URI;
4+
import static org.phoebus.channelfinder.common.CFResourceDescriptors.SEARCH_PARAM_DESCRIPTION;
55

66
import com.google.common.collect.FluentIterable;
77
import com.google.common.collect.Lists;
@@ -21,7 +21,7 @@
2121
import java.util.stream.Collectors;
2222
import java.util.stream.StreamSupport;
2323
import javax.servlet.ServletContext;
24-
import org.phoebus.channelfinder.TextUtil;
24+
import org.phoebus.channelfinder.common.TextUtil;
2525
import org.phoebus.channelfinder.entity.Channel;
2626
import org.phoebus.channelfinder.entity.Property;
2727
import org.phoebus.channelfinder.entity.SearchResult;

src/main/java/org/phoebus/channelfinder/rest/controller/ChannelProcessorManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.phoebus.channelfinder.rest.controller;
22

3-
import static org.phoebus.channelfinder.CFResourceDescriptors.CHANNEL_PROCESSOR_RESOURCE_URI;
4-
import static org.phoebus.channelfinder.CFResourceDescriptors.SEARCH_PARAM_DESCRIPTION;
3+
import static org.phoebus.channelfinder.common.CFResourceDescriptors.CHANNEL_PROCESSOR_RESOURCE_URI;
4+
import static org.phoebus.channelfinder.common.CFResourceDescriptors.SEARCH_PARAM_DESCRIPTION;
55

66
import io.swagger.v3.oas.annotations.Operation;
77
import io.swagger.v3.oas.annotations.Parameter;

src/main/java/org/phoebus/channelfinder/rest/controller/ChannelScroll.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package org.phoebus.channelfinder.rest.controller;
22

3-
import static org.phoebus.channelfinder.CFResourceDescriptors.SCROLL_RESOURCE_URI;
3+
import static org.phoebus.channelfinder.common.CFResourceDescriptors.SCROLL_RESOURCE_URI;
44

55
import co.elastic.clients.elasticsearch.ElasticsearchClient;
66
import co.elastic.clients.elasticsearch._types.FieldSort;
@@ -24,8 +24,8 @@
2424
import java.util.logging.Level;
2525
import java.util.logging.Logger;
2626
import java.util.stream.Collectors;
27-
import org.phoebus.channelfinder.CFResourceDescriptors;
28-
import org.phoebus.channelfinder.TextUtil;
27+
import org.phoebus.channelfinder.common.CFResourceDescriptors;
28+
import org.phoebus.channelfinder.common.TextUtil;
2929
import org.phoebus.channelfinder.configuration.ElasticConfig;
3030
import org.phoebus.channelfinder.entity.Channel;
3131
import org.phoebus.channelfinder.entity.Scroll;

0 commit comments

Comments
 (0)