/*
* Copyright 2011 NCHOVY
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.krakenapps.siem.model;
import java.util.HashMap;
import java.util.Map;
import org.krakenapps.msgbus.Marshalable;
public class ManagedLogger implements Marshalable {
private String orgDomain;
private String fullName;
private Map<String, String> metadata;
private boolean isEnabled = true;
public ManagedLogger() {
metadata = new HashMap<String, String>();
}
public String getOrgDomain() {
return orgDomain;
}
public void setOrgDomain(String orgDomain) {
this.orgDomain = orgDomain;
}
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public Map<String, String> getMetadata() {
return metadata;
}
public void setMetadata(Map<String, String> metadata) {
this.metadata = metadata;
}
public boolean isEnabled() {
return isEnabled;
}
public void setEnabled(boolean isEnabled) {
this.isEnabled = isEnabled;
}
@Override
public Map<String, Object> marshal() {
Map<String, Object> m = new HashMap<String, Object>();
m.put("fullname", fullName);
m.put("metadata", metadata);
m.put("is_enabled", isEnabled);
return m;
}
@Override
public String toString() {
return "fullname=" + fullName + ", enabled=" + isEnabled;
}
}