Clover icon

sunshower-core

  1. Project Clover database Fri Apr 6 2018 03:27:42 UTC
  2. Package io.sunshower.model.core.auth

File Session.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart7.png
24% of files have more coverage

Code metrics

0
8
8
1
61
46
8
1
1
8
1

Classes

Class Line # Actions
Session 13 8 8
0.62562.5%
 

Contributing tests

This file is covered by 3 tests. .

Source view

1    package io.sunshower.model.core.auth;
2   
3    import io.sunshower.common.Identifier;
4    import io.sunshower.common.rs.ClassAdapter;
5    import io.sunshower.persist.internal.jaxb.IdentifierAdapter;
6    import javax.xml.bind.annotation.XmlAttribute;
7    import javax.xml.bind.annotation.XmlElement;
8    import javax.xml.bind.annotation.XmlRootElement;
9    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
10   
11    /** Created by haswell on 2/20/17. */
12    @XmlRootElement
 
13    public class Session<T> {
14   
15    @XmlAttribute
16    @XmlJavaTypeAdapter(IdentifierAdapter.class)
17    private Identifier id;
18   
19    @XmlAttribute(name = "target-id")
20    @XmlJavaTypeAdapter(IdentifierAdapter.class)
21    private Identifier targetId;
22   
23    @XmlAttribute(name = "session-id")
24    private String sessionId;
25   
26    @XmlElement(name = "target-type")
27    @XmlJavaTypeAdapter(ClassAdapter.class)
28    private Class<T> targetType;
29   
 
30  0 toggle public Identifier getId() {
31  0 return id;
32    }
33   
 
34  2 toggle public void setId(Identifier id) {
35  2 this.id = id;
36    }
37   
 
38  0 toggle public Identifier getTargetId() {
39  0 return targetId;
40    }
41   
 
42  0 toggle public void setTargetId(Identifier targetId) {
43  0 this.targetId = targetId;
44    }
45   
 
46  1 toggle public String getSessionId() {
47  1 return sessionId;
48    }
49   
 
50  1 toggle public void setSessionId(String sessionId) {
51  1 this.sessionId = sessionId;
52    }
53   
 
54  1 toggle public Class<T> getTargetType() {
55  1 return targetType;
56    }
57   
 
58  1 toggle public void setTargetType(Class<T> targetType) {
59  1 this.targetType = targetType;
60    }
61    }