Skip to content

Commit

Permalink
Added new field dateTimesOfModification in the entry bean
Browse files Browse the repository at this point in the history
- fixed warning for gradle deprecation
  • Loading branch information
astrapi69 committed Aug 30, 2023
1 parent f0d599b commit 139c438
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ dependencies {
implementation("io.github.astrapi69:tree-api:$treeApiVersion")
implementation("io.github.astrapi69:jobj-cloner:$jobjClonerVersion")
implementation("org.kquiet:auto-browser:$autoBrowserVersion")
testImplementation("org.linguafranca.pwdb:KeePassJava2:$keePassJava2Version")

testImplementation("org.linguafranca.pwdb:KeePassJava2:$keePassJava2Version")

testImplementation("org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
testImplementation("io.github.astrapi69:test-object:$testObjectVersion")
testImplementation("org.junit.jupiter:junit-jupiter:$junitJupiterVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
package io.github.astrapi69.mystic.crypt.panel.dbtree;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
Expand Down Expand Up @@ -65,9 +65,14 @@ public class MysticCryptEntryModelBean
@Builder.Default
List<FileContentInfo> resources = new ArrayList<>();

/** The properties for this entry */
@Builder.Default
List<KeyValuePair<String, String>> properties = new ArrayList<>();

/** The set with the modification date times for this entry */
@Builder.Default
KeySetPair<String, OffsetDateTime> dateTimesOfModification = new KeySetPair<>();

public String getProperty(String name)
{
return KeyValuePair.toMap(properties).get(name);
Expand Down Expand Up @@ -97,13 +102,8 @@ public List<String> getPropertyNames()
return ListExtensions.toList(KeyValuePair.toMap(properties).keySet());
}

public KeySetPair<String, LocalDateTime> getKeySetPair()
{
return null;
}

public String getPath()
{
return "";
return getProperty("path");
}
}

0 comments on commit 139c438

Please sign in to comment.