-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New methods retrieveCurrentSessions + retrievePersonsForSession + bea…
…ns + integration tests
- Loading branch information
Showing
5 changed files
with
203 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package uk.ac.diamond.ispyb.api; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder; | ||
|
||
import java.sql.Timestamp; | ||
|
||
public class Session { | ||
private String session; | ||
private Timestamp startDate; | ||
private Timestamp endDate; | ||
|
||
public String getSession() { | ||
return session; | ||
} | ||
|
||
public void setSession(String session) { | ||
this.session = session; | ||
} | ||
|
||
public Timestamp getStartDate() { | ||
return startDate; | ||
} | ||
|
||
public void setStartDate(Timestamp startDate) { | ||
this.startDate = startDate; | ||
} | ||
|
||
public Timestamp getEndDate() { | ||
return endDate; | ||
} | ||
|
||
public void setEndDate(Timestamp endDate) { | ||
this.endDate = endDate; | ||
} | ||
|
||
@Override | ||
public String toString(){ | ||
return ReflectionToStringBuilder.toString(this); | ||
} | ||
|
||
@Override | ||
public int hashCode(){ | ||
return HashCodeBuilder.reflectionHashCode(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object that){ | ||
return EqualsBuilder.reflectionEquals(this, that); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package uk.ac.diamond.ispyb.api; | ||
|
||
import org.apache.commons.lang3.builder.EqualsBuilder; | ||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.apache.commons.lang3.builder.ReflectionToStringBuilder; | ||
|
||
public class SessionPerson { | ||
private String title; | ||
private String givenName; | ||
private String familyName; | ||
private String login; | ||
private String role; | ||
private Integer remote; | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getGivenName() { | ||
return givenName; | ||
} | ||
|
||
public void setGivenName(String givenName) { | ||
this.givenName = givenName; | ||
} | ||
|
||
public String getFamilyName() { | ||
return familyName; | ||
} | ||
|
||
public void setFamilyName(String familyName) { | ||
this.familyName = familyName; | ||
} | ||
|
||
public String getLogin() { | ||
return login; | ||
} | ||
|
||
public void setLogin(String login) { | ||
this.login = login; | ||
} | ||
|
||
public String getRole() { | ||
return role; | ||
} | ||
|
||
public void setRole(String role) { | ||
this.role = role; | ||
} | ||
|
||
public Integer getRemote() { | ||
return remote; | ||
} | ||
|
||
public void setRemote(Integer remote) { | ||
this.remote = remote; | ||
} | ||
|
||
@Override | ||
public String toString(){ | ||
return ReflectionToStringBuilder.toString(this); | ||
} | ||
|
||
@Override | ||
public int hashCode(){ | ||
return HashCodeBuilder.reflectionHashCode(this); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object that){ | ||
return EqualsBuilder.reflectionEquals(this, that); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters