Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
new package based on v.1.1.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
Frode Sjovatsen committed Aug 25, 2017
1 parent 527e422 commit eda2a02
Show file tree
Hide file tree
Showing 37 changed files with 159 additions and 11 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ sourceCompatibility = 1.8

jar {
baseName = 'fint-utdanning-model-java'
version = '1.1.0-rc.1.3'
version = '1.1.0-rc.1.4'
}

repositories {
Expand All @@ -24,7 +24,7 @@ repositories {

apply from: 'https://raw.githubusercontent.com/FINTlibs/fint-buildscripts/v1.0.14/dependencies.gradle'
dependencies {
compile('no.fint:fint-felles-model-java:1.1.0-rc.1.3')
compile('no.fint:fint-felles-model-java:1.1.0-rc.1.4')

compileOnly("org.projectlombok:lombok:${lombokVersion}")
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/no/fint/model/utdanning/Medlemskap.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning;

import lombok.AllArgsConstructor;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/no/fint/model/utdanning/UtdanningActions.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.basisklasser;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.basisklasser;

import lombok.AllArgsConstructor;
Expand All @@ -12,7 +14,7 @@
@EqualsAndHashCode
public abstract class Gruppe {
private String beskrivelse;
private Identifikator systemId;
private String navn;
private Identifikator systemId;
}

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.basisklasser;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.basisklasser;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.basisklasser;

import lombok.Data;
Expand All @@ -8,6 +10,7 @@
public class Undervisningsforhold extends Utdanningsforhold {
public enum Relasjonsnavn {
ARBEIDSFORHOLD,
TIME,
MEDLEMSKAP
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.basisklasser;

import lombok.AllArgsConstructor;
Expand All @@ -11,7 +13,7 @@
@NoArgsConstructor
@EqualsAndHashCode
public abstract class Utdanningsforhold {
private Identifikator systemId;
private String kommentar;
private Identifikator systemId;
}

2 changes: 2 additions & 0 deletions src/main/java/no/fint/model/utdanning/gruppe/Basisgruppe.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/no/fint/model/utdanning/gruppe/Fag.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/no/fint/model/utdanning/gruppe/Trinn.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand All @@ -10,6 +12,7 @@
public class Undervisningsgruppe extends Kodegruppe {
public enum Relasjonsnavn {
FAG,
TIME,
KODE,
MEDLEMSKAP
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.gruppe;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kodeverk;

import lombok.Data;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/no/fint/model/utdanning/kodeverk/Grepkode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kodeverk;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kodeverk;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kodeverk;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kodeverk;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kodeverk;

import lombok.Data;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/no/fint/model/utdanning/kodeverk/Vigokode.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kodeverk;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kompleksedatatyper;

import lombok.AllArgsConstructor;
Expand All @@ -12,7 +14,7 @@
@EqualsAndHashCode
public class Fravar {
private boolean erFravaretGyldig;
private String kommentar;
private Periode gjelderPeriode;
private String kommentar;
}

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kompleksedatatyper;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kompleksedatatyper;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.kompleksedatatyper;

import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.organisasjon;

import java.util.Arrays;
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/no/fint/model/utdanning/organisasjon/Skole.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.organisasjon;

import lombok.Data;
Expand All @@ -9,15 +11,15 @@
@EqualsAndHashCode(callSuper = false)
public class Skole extends Enhet {
public enum Relasjonsnavn {
SKOLEEIERTYPE,
ORGANISASJON,
SKOLEEIERTYPE,
UTDANNINGSPROGRAM
}

private Identifikator skolenummer;
private String domenenavn;
private String juridiskNavn;
private String navn;
private Identifikator skolenummer;
private Identifikator systemId;
}

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.ressurser;

import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.ressurser;

import lombok.AllArgsConstructor;
Expand All @@ -13,14 +15,13 @@
@EqualsAndHashCode
public class Elevressurs {
public enum Relasjonsnavn {
FORESATT,
PERSON,
ELEVFORHOLD
}

private Kontaktinformasjon kontaktinformasjon;
private Identifikator elevnummer;
private Identifikator brukernavn;
private Identifikator elevnummer;
private Kontaktinformasjon kontaktinformasjon;
private Identifikator systemId;
}

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.ressurser;

import java.util.Arrays;
Expand All @@ -10,7 +12,10 @@ public enum RessurserActions {
UPDATE_ELEVFORHOLD,
GET_ELEVRESSURS,
GET_ALL_ELEVRESSURS,
UPDATE_ELEVRESSURS;
UPDATE_ELEVRESSURS,
GET_ROM,
GET_ALL_ROM,
UPDATE_ROM;


/**
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/no/fint/model/utdanning/ressurser/Rom.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.ressurser;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import no.fint.model.felles.kompleksedatatyper.Identifikator;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class Rom {
public enum Relasjonsnavn {
TIME
}

private String navn;
private Identifikator systemId;
}

28 changes: 28 additions & 0 deletions src/main/java/no/fint/model/utdanning/timeplan/Time.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.timeplan;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import no.fint.model.felles.kompleksedatatyper.Identifikator;
import no.fint.model.felles.kompleksedatatyper.Periode;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
public class Time {
public enum Relasjonsnavn {
UNDERVISNINGSGRUPPE,
UNDERVISNINGSFORHOLD,
ROM
}

private String beskrivelse;
private Identifikator systemId;
private String tittel;
private Periode varighet;
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Built from tag v1.1.0-rc2

package no.fint.model.utdanning.timeplan;

import java.util.Arrays;
import java.util.List;

public enum TimeplanActions {

GET_TIME,
GET_ALL_TIME,
UPDATE_TIME;


/**
* Gets a list of all enums as string
*
* @return A string list of all enums
*/
public static List<String> getActions() {
return Arrays.asList(
Arrays.stream(TimeplanActions.class.getEnumConstants()).map(Enum::name).toArray(String[]::new)
);
}

}

0 comments on commit eda2a02

Please sign in to comment.