Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CentralRepoOrganization.java
Go to the documentation of this file.
1 /*
2  * Central Repository
3  *
4  * Copyright 2015-2017 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.centralrepository.datamodel;
20 
25 
26  private int orgID;
27  private String name;
28  private String pocName;
29  private String pocEmail;
30  private String pocPhone;
31 
33  int orgID,
34  String name,
35  String pocName,
36  String pocEmail,
37  String pocPhone) {
38  this.orgID = orgID;
39  this.name = name;
40  this.pocName = pocName;
41  this.pocEmail = pocEmail;
42  this.pocPhone = pocPhone;
43  }
44 
46  String name,
47  String pocName,
48  String pocEmail,
49  String pocPhone) {
50  this(-1, name, pocName, pocEmail, pocPhone);
51  }
52 
54  String name) {
55  this(-1, name, "", "", "");
56  }
57 
59  // TODO: when we allow the user to configure/specify the default organization
60  // this will return it.
61  return null;
62  }
63 
64  @Override
65  public String toString() {
66  StringBuilder str = new StringBuilder();
67  str.append("(");
68  str.append("orgID=").append(Integer.toString(getOrgID()));
69  str.append("name=").append(getName());
70  str.append("pocName=").append(getPocName());
71  str.append("pocEmail=").append(getPocEmail());
72  str.append("pocPhone=").append(getPocPhone());
73  str.append(")");
74  return str.toString();
75  }
76 
80  public int getOrgID() {
81  return orgID;
82  }
83 
87  void setOrgID(int orgID) {
88  this.orgID = orgID;
89  }
90 
94  public String getName() {
95  return name;
96  }
97 
101  public void setName(String name) {
102  this.name = name;
103  }
104 
108  public String getPocName() {
109  return pocName;
110  }
111 
115  public void setPocName(String pocName) {
116  this.pocName = pocName;
117  }
118 
122  public String getPocEmail() {
123  return pocEmail;
124  }
125 
129  public void setPocEmail(String pocEmail) {
130  this.pocEmail = pocEmail;
131  }
132 
136  public String getPocPhone() {
137  return pocPhone;
138  }
139 
143  public void setPocPhone(String pocPhone) {
144  this.pocPhone = pocPhone;
145  }
146 }
CentralRepoOrganization(String name, String pocName, String pocEmail, String pocPhone)

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.