Skip to content

Commit

Permalink
Provide JSON-LD mapping for PasswordChangeDto.
Browse files Browse the repository at this point in the history
  • Loading branch information
ledsoft committed Jul 18, 2024
1 parent de199dc commit efeb670
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/cz/cvut/kbss/termit/dto/PasswordChangeDto.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
package cz.cvut.kbss.termit.dto;

import cz.cvut.kbss.jopa.model.annotations.Id;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
import cz.cvut.kbss.jopa.vocabulary.DC;
import cz.cvut.kbss.termit.util.Vocabulary;

import java.io.Serializable;
import java.net.URI;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;

@OWLClass(iri = Vocabulary.ONTOLOGY_IRI_TERMIT + "/password-change")
public class PasswordChangeDto implements Serializable {
@Id
private URI uri;

@OWLDataProperty(iri = DC.Terms.IDENTIFIER)
private String token;

@OWLDataProperty(iri = Vocabulary.s_p_ma_heslo)
private String newPassword;

public URI getUri() {
Expand Down

0 comments on commit efeb670

Please sign in to comment.