This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Commit 4e999000 authored by Michael Breu's avatar Michael Breu 💬
Browse files

Update to V0.1.4: migration from java.util.Date to java.util.Instant

parent 2c2f2050
......@@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.codeability.sharing</groupId>
<artifactId>SharingPluginPlatformAPI</artifactId>
<version>0.1.3</version>
<version>0.1.4</version>
<name>SharingPluginPlatformAPI</name>
<description>CodeAbility Sharing Plugin Platform API</description>
<packaging>jar</packaging>
......
......@@ -76,10 +76,18 @@ public class SearchInputMetadataDTO {
return format;
}
/**
* sets the format
* @param format
*/
public void setFormat(String format) {
this.format = format;
}
/**
* checks for minimal meta data
* @return
*/
public boolean hasMetadataInput() {
return !(programmingLanguage == null
&& keyword == null
......
......@@ -13,12 +13,20 @@ public class SearchRequestDTO {
private SearchInputDTO query;
/**
* comfort constructor with selected initialization values
* @param userPrincipal
* @param query
*/
public SearchRequestDTO(UserPrincipal userPrincipal, SearchInputDTO query) {
super();
this.userPrincipal = userPrincipal;
this.query = query;
}
/**
* trivial constructor for JSON
*/
public SearchRequestDTO() {
// JSON
}
......
package org.codeability.sharing.plugins.api.search;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
......@@ -12,6 +12,12 @@ public class SearchResultDTO {
String action;
String commandName;
/**
* information about applicable plugins
* @param plugin the name of the plugin, just informative
* @param action the name of the action, just informative
* @param commandName the name of the command, displayed to the user
*/
public PluginActionInfo(String plugin, String action, String commandName) {
super();
this.plugin = plugin;
......@@ -77,9 +83,9 @@ public class SearchResultDTO {
}
/**
* clone constructor
* clone constructor.
*
* @param toClone
* @param toClone source of clone
*/
public SearchResultDTO(SearchResultDTO toClone) {
super();
......@@ -172,17 +178,17 @@ public class SearchResultDTO {
private String main_group;
private String sub_group;
private String url;
private Date last_activity_at;
private Instant last_activity_at;
public int getProject_id() {
return project_id;
}
public Date getLast_activity_at() {
public Instant getLast_activity_at() {
return last_activity_at;
}
public void setLast_activity_at(Date last_activity_at) {
public void setLast_activity_at(Instant last_activity_at) {
this.last_activity_at = last_activity_at;
}
......@@ -313,7 +319,7 @@ public class SearchResultDTO {
private String filename;
private String path;
private String commit_id;
private Date indexing_date;
private Instant indexing_date;
public String getFilename() {
return filename;
......@@ -339,11 +345,11 @@ public class SearchResultDTO {
this.commit_id = commit_id;
}
public Date getIndexing_date() {
public Instant getIndexing_date() {
return indexing_date;
}
public void setIndexing_date(Date indexing_date) {
public void setIndexing_date(Instant indexing_date) {
this.indexing_date = indexing_date;
}
......
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.codeability.sharing</groupId>
<artifactId>SharingPluginPlatformAPI</artifactId>
<version>0.1.4</version>
<name>SharingPluginPlatformAPI</name>
<description>CodeAbility Sharing Plugin Platform API</description>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Plugin versions -->
<maven-clean-plugin.version>3.1.0</maven-clean-plugin.version>
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
<maven-eclipse-plugin.version>2.10</maven-eclipse-plugin.version>
<maven-enforcer-plugin.version>3.0.0-M3</maven-enforcer-plugin.version>
<maven-failsafe-plugin.version>3.0.0-M4</maven-failsafe-plugin.version>
<maven-idea-plugin.version>2.2.1</maven-idea-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-surefire-plugin.version>3.0.0-M4</maven-surefire-plugin.version>
<maven-war-plugin.version>3.2.3</maven-war-plugin.version>
<maven-checkstyle.version>3.1.1</maven-checkstyle.version>
<checkstyle.version>8.32</checkstyle.version>
<spring-nohttp-checkstyle.version>0.0.4.RELEASE</spring-nohttp-checkstyle.version>
<frontend-maven-plugin.version>1.10.0</frontend-maven-plugin.version>
<git-commit-id-plugin.version>4.0.0</git-commit-id-plugin.version>
<jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
<jib-maven-plugin.version>2.4.0</jib-maven-plugin.version>
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
<properties-maven-plugin.version>1.0.0</properties-maven-plugin.version>
<sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
</properties>
<dependencies>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jaxb-annotations -->
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>2.10.4</version>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>target</id>
<name>Local target repository, to be promoted to git</name>
<url>file://${project.basedir}/target</url>
<layout>default</layout>
</repository>
</distributionManagement>
<build>
<defaultGoal>package</defaultGoal>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${maven-checkstyle.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>deploy</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>${maven-eclipse-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-idea-plugin</artifactId>
<version>${maven-idea-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<!-- unused <executions> <execution> <id>deploy-to-local-directory</id>
<phase>install</phase> <goals> <goal>copy-resources</goal> </goals> <configuration>
<outputDirectory>./target</outputDirectory> <resources> <resource> <directory>${project.build.directory}</directory>
<includes> <include>${project.build.finalName}.jar</include> </includes>
<filtering>false</filtering> </resource> </resources> </configuration> </execution>
</executions> -->
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<phase>deploy</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>${sonar-maven-plugin.version}</version>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
......@@ -3,7 +3,7 @@
<groupId>org.codeability.sharing</groupId>
<artifactId>SharingPluginPlatformAPI</artifactId>
<versioning>
<release>0.1.3</release>
<release>0.1.4</release>
<versions>
<version>0.0.1</version>
<version>0.0.2</version>
......@@ -13,7 +13,8 @@
<version>0.1.2</version>
<version>0.1.3-SNAPSHOT</version>
<version>0.1.3</version>
<version>0.1.4</version>
</versions>
<lastUpdated>20210601113927</lastUpdated>
<lastUpdated>20210622100527</lastUpdated>
</versioning>
</metadata>
afa4c80578308458ad4562dcc095e756
\ No newline at end of file
cf6877ab9dea502ca468e8e0c044ebcf
\ No newline at end of file
672a16496a1ed8972bdf4aaafa07442d8cfeb2e0
\ No newline at end of file
577b3834c35a4ac668f4e60ce9603893c9e499e4
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment