Clover icon

sunshower-core

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

File ObjectIdentity.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart2.png
54% of files have more coverage

Code metrics

0
12
12
1
85
65
12
1
1
12
1

Classes

Class Line # Actions
ObjectIdentity 12 12 12
0.1666666716.7%
 

Contributing tests

This file is covered by 1 test. .

Source view

1    package io.sunshower.model.core.auth;
2   
3    import io.sunshower.common.Identifier;
4    import io.sunshower.model.core.Schemata;
5    import io.sunshower.persistence.core.DistributableEntity;
6    import io.sunshower.persistence.core.converters.IdentifierConverter;
7    import java.util.Set;
8    import javax.persistence.*;
9   
10    @Entity
11    @Table(name = "acl_object_identity", schema = Schemata.SUNSHOWER)
 
12    public class ObjectIdentity extends DistributableEntity {
13   
14    @Basic
15    @Convert(converter = IdentifierConverter.class)
16    @Column(name = "object_id_identity")
17    private Identifier reference;
18   
19    @Basic
20    @Column(name = "entries_inheriting")
21    private boolean inheriting;
22   
23    @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
24    @JoinColumn(name = "object_id_class")
25    private SecuredObject object;
26   
27    @ManyToOne
28    @JoinColumn(name = "parent_object")
29    private ObjectIdentity parent;
30   
31    @OneToMany(mappedBy = "parent", cascade = CascadeType.ALL)
32    private Set<ObjectIdentity> children;
33   
34    @JoinColumn(name = "owner_sid")
35    @OneToOne(fetch = FetchType.LAZY)
36    private SecurityIdentity owner;
37   
 
38  0 toggle public Identifier getReference() {
39  0 return reference;
40    }
41   
 
42  1 toggle public void setReference(Identifier reference) {
43  1 this.reference = reference;
44    }
45   
 
46  0 toggle public SecuredObject getObject() {
47  0 return object;
48    }
49   
 
50  1 toggle public void setObject(SecuredObject object) {
51  1 this.object = object;
52    }
53   
 
54  0 toggle public ObjectIdentity getParent() {
55  0 return parent;
56    }
57   
 
58  0 toggle public void setParent(ObjectIdentity parent) {
59  0 this.parent = parent;
60    }
61   
 
62  0 toggle public Set<ObjectIdentity> getChildren() {
63  0 return children;
64    }
65   
 
66  0 toggle public void setChildren(Set<ObjectIdentity> children) {
67  0 this.children = children;
68    }
69   
 
70  0 toggle public SecurityIdentity getOwner() {
71  0 return owner;
72    }
73   
 
74  0 toggle public void setOwner(SecurityIdentity owner) {
75  0 this.owner = owner;
76    }
77   
 
78  0 toggle public boolean isInheriting() {
79  0 return inheriting;
80    }
81   
 
82  0 toggle public void setInheriting(boolean inheriting) {
83  0 this.inheriting = inheriting;
84    }
85    }