Clover icon

sunshower-core

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

File SecuredObject.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart5.png
36% of files have more coverage

Code metrics

0
3
4
1
32
25
4
1.33
0.75
4
1

Classes

Class Line # Actions
SecuredObject 13 3 4
0.4285714342.9%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    package io.sunshower.model.core.auth;
2   
3    import io.sunshower.model.core.Schemata;
4    import io.sunshower.persistence.core.DistributableEntity;
5    import io.sunshower.persistence.core.converters.ClassConverter;
6    import javax.persistence.Column;
7    import javax.persistence.Convert;
8    import javax.persistence.Entity;
9    import javax.persistence.Table;
10   
11    @Entity
12    @Table(name = "acl_class", schema = Schemata.SUNSHOWER)
 
13    public class SecuredObject extends DistributableEntity {
14   
15    @Column(name = "class")
16    @Convert(converter = ClassConverter.class)
17    private Class<?> type;
18   
 
19  1 toggle public SecuredObject() {}
20   
 
21  1 toggle public SecuredObject(final Class<?> type) {
22  1 this.type = type;
23    }
24   
 
25  0 toggle public Class<?> getType() {
26  0 return type;
27    }
28   
 
29  0 toggle public void setType(Class<?> type) {
30  0 this.type = type;
31    }
32    }