
com.threatconnect.sdk.client.writer.AbstractIndicatorWriterAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
The ThreatConnect Java SDK. Used to communicate with teh ThreatConnect Threat Intelligence Platform
The newest version!
package com.threatconnect.sdk.client.writer;
import com.threatconnect.sdk.client.AbstractClientAdapter;
import com.threatconnect.sdk.client.UrlTypeable;
import com.threatconnect.sdk.client.response.WriteListResponse;
import com.threatconnect.sdk.client.writer.associate.*;
import com.threatconnect.sdk.conn.Connection;
import com.threatconnect.sdk.exception.FailedResponseException;
import com.threatconnect.sdk.server.entity.Attribute;
import com.threatconnect.sdk.server.entity.Indicator;
import com.threatconnect.sdk.server.response.entity.ApiEntitySingleResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;
/**
* AbstractIndicatorWriterAdapter is the primary writer adapter for all Indicator level objects.
* It uses the {@link com.threatconnect.sdk.conn.Connection} object to execute requests against the {@link com.threatconnect.sdk.conn.AbstractRequestExecutor} object.
* The responsibility of this class is to encapsulate all the low level ThreatConnect API calls
* specifically targeted at data under the Indicator T type.
*
*
* @author dtineo
* @param Parameter
*/
public abstract class AbstractIndicatorWriterAdapter
extends AbstractBaseWriterAdapter
implements UrlTypeable, GroupAssociateWritable, IndicatorAssociateWritable
, AttributeAssociateWritable, TagAssociateWritable
, SecurityLabelAssociateWritable, VictimAssetAssociateWritable
, VictimAssociateWritable {
// composite pattern
private AbstractAttributeAssociateWriterAdapter attribWriter;
private AbstractGroupAssociateWriterAdapter groupAssocWriter;
private AbstractIndicatorAssociateWriterAdapter indAssocWriter;
private AbstractSecurityLabelAssociateWriterAdapter secLabelAssocWriter;
private AbstractTagAssociateWriterAdapter tagAssocWriter;
private AbstractVictimAssetAssociateWriterAdapter victimAssetAssocWriter;
private AbstractVictimAssociateWriterAdapter victimAssocWriter;
/**
* Package level constructor. Use the {@link WriterAdapterFactory} to access this object.
* @param conn Primary connection object to the ThreatConnect API
* @param singleType Single type
*
* @see WriterAdapterFactory
*/
protected AbstractIndicatorWriterAdapter(Connection conn
, Class extends ApiEntitySingleResponse> singleType ) {
super(conn, singleType );
initComposite();
}
private void initComposite() {
attribWriter = new AbstractAttributeAssociateWriterAdapter(
AbstractIndicatorWriterAdapter.this.getConn()
, AbstractIndicatorWriterAdapter.this.singleType
) {
@Override
protected String getUrlBasePrefix() {
return AbstractIndicatorWriterAdapter.this.getUrlBasePrefix();
}
@Override
public String getId(T item) {
return AbstractIndicatorWriterAdapter.this.getId(item);
}
@Override
public String getUrlType()
{
return AbstractIndicatorWriterAdapter.this.getUrlType();
}
};
groupAssocWriter = new AbstractGroupAssociateWriterAdapter(
AbstractIndicatorWriterAdapter.this.getConn()
, AbstractIndicatorWriterAdapter.this.singleType
) {
@Override
protected String getUrlBasePrefix() {
return AbstractIndicatorWriterAdapter.this.getUrlBasePrefix();
}
@Override
public String getId(T item) {
return AbstractIndicatorWriterAdapter.this.getId(item);
}
@Override
public String getUrlType()
{
return AbstractIndicatorWriterAdapter.this.getUrlType();
}
};
indAssocWriter = new AbstractIndicatorAssociateWriterAdapter(
AbstractIndicatorWriterAdapter.this.getConn()
, AbstractIndicatorWriterAdapter.this.singleType
) {
@Override
protected String getUrlBasePrefix() {
return AbstractIndicatorWriterAdapter.this.getUrlBasePrefix();
}
@Override
public String getUrlType() {
return AbstractIndicatorWriterAdapter.this.getUrlType();
}
@Override
public String getId(T item) {
return AbstractIndicatorWriterAdapter.this.getId(item);
}
};
secLabelAssocWriter = new AbstractSecurityLabelAssociateWriterAdapter(
AbstractIndicatorWriterAdapter.this.getConn()
, AbstractIndicatorWriterAdapter.this.singleType
) {
@Override
protected String getUrlBasePrefix() {
return AbstractIndicatorWriterAdapter.this.getUrlBasePrefix();
}
@Override
public String getId(T item) {
return AbstractIndicatorWriterAdapter.this.getId(item);
}
@Override
public String getUrlType() {
return AbstractIndicatorWriterAdapter.this.getUrlType();
}
};
tagAssocWriter = new AbstractTagAssociateWriterAdapter(
AbstractIndicatorWriterAdapter.this.getConn()
, AbstractIndicatorWriterAdapter.this.singleType
) {
@Override
protected String getUrlBasePrefix() {
return AbstractIndicatorWriterAdapter.this.getUrlBasePrefix();
}
@Override
public String getUrlType() {
return AbstractIndicatorWriterAdapter.this.getUrlType();
}
@Override
public String getId(T item) {
return AbstractIndicatorWriterAdapter.this.getId(item);
}
};
victimAssetAssocWriter = new AbstractVictimAssetAssociateWriterAdapter(
AbstractIndicatorWriterAdapter.this.getConn()
, AbstractIndicatorWriterAdapter.this.singleType
) {
@Override
protected String getUrlBasePrefix() {
return AbstractIndicatorWriterAdapter.this.getUrlBasePrefix();
}
@Override
public String getId(T item) {
return AbstractIndicatorWriterAdapter.this.getId(item);
}
@Override
public String getUrlType() {
return AbstractIndicatorWriterAdapter.this.getUrlType();
}
};
victimAssocWriter = new AbstractVictimAssociateWriterAdapter(
AbstractIndicatorWriterAdapter.this.getConn()
, AbstractIndicatorWriterAdapter.this.singleType
) {
@Override
protected String getUrlBasePrefix() {
return AbstractIndicatorWriterAdapter.this.getUrlBasePrefix();
}
@Override
public String getId(T item) {
return AbstractIndicatorWriterAdapter.this.getId(item);
}
@Override
public String getUrlType() {
return AbstractIndicatorWriterAdapter.this.getUrlType();
}
};
}
@Override
protected String getUrlBasePrefix() {
return "v2.indicators.type";
}
@Override
public WriteListResponse associateGroupAdversaries(String uniqueId, List adversaryIds) throws IOException {
return groupAssocWriter.associateGroupAdversaries(uniqueId, adversaryIds);
}
@Override
public WriteListResponse associateGroupAdversaries(String uniqueId, List adversaryIds, String ownerName) throws IOException {
return groupAssocWriter.associateGroupAdversaries(uniqueId, adversaryIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateGroupAdversary(String uniqueId, Integer adversaryId) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupAdversary(uniqueId, adversaryId);
}
@Override
public ApiEntitySingleResponse associateGroupDocument(String uniqueId, Integer adversaryId) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupDocument(uniqueId, adversaryId);
}
@Override
public ApiEntitySingleResponse associateGroupDocument(String uniqueId, Integer adversaryId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupDocument(uniqueId, adversaryId);
}
@Override
public ApiEntitySingleResponse associateGroupAdversary(String uniqueId, Integer adversaryId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupAdversary(uniqueId, adversaryId, ownerName);
}
@Override
public WriteListResponse associateGroupEmails(String uniqueId, List emailIds) throws IOException {
return groupAssocWriter.associateGroupEmails(uniqueId, emailIds);
}
@Override
public WriteListResponse associateGroupEmails(String uniqueId, List emailIds, String ownerName) throws IOException {
return groupAssocWriter.associateGroupEmails(uniqueId, emailIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateGroupEmail(String uniqueId, Integer emailId) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupEmail(uniqueId, emailId);
}
@Override
public ApiEntitySingleResponse associateGroupEmail(String uniqueId, Integer emailId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupEmail(uniqueId, emailId, ownerName);
}
@Override
public WriteListResponse associateGroupIncidents(String uniqueId, List incidentIds) throws IOException {
return groupAssocWriter.associateGroupIncidents(uniqueId, incidentIds);
}
@Override
public WriteListResponse associateGroupIncidents(String uniqueId, List incidentIds, String ownerName) throws IOException {
return groupAssocWriter.associateGroupIncidents(uniqueId, incidentIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateGroupIncident(String uniqueId, Integer incidentId) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupIncident(uniqueId, incidentId);
}
@Override
public ApiEntitySingleResponse associateGroupIncident(String uniqueId, Integer incidentId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupIncident(uniqueId, incidentId, ownerName);
}
@Override
public WriteListResponse associateGroupSignatures(String uniqueId, List signatureIds) throws IOException {
return groupAssocWriter.associateGroupSignatures(uniqueId, signatureIds);
}
@Override
public WriteListResponse associateGroupSignatures(String uniqueId, List signatureIds, String ownerName) throws IOException {
return groupAssocWriter.associateGroupSignatures(uniqueId, signatureIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateGroupSignature(String uniqueId, Integer signatureId) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupSignature(uniqueId, signatureId);
}
@Override
public ApiEntitySingleResponse associateGroupSignature(String uniqueId, Integer signatureId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupSignature(uniqueId, signatureId, ownerName);
}
@Override
public WriteListResponse associateGroupThreats(String uniqueId, List threatIds) throws IOException {
return groupAssocWriter.associateGroupThreats(uniqueId, threatIds);
}
@Override
public WriteListResponse associateGroupThreats(String uniqueId, List threatIds, String ownerName) throws IOException {
return groupAssocWriter.associateGroupThreats(uniqueId, threatIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateGroupThreat(String uniqueId, Integer threatId) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupThreat(uniqueId, threatId);
}
@Override
public ApiEntitySingleResponse associateGroupThreat(String uniqueId, Integer threatId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.associateGroupThreat(uniqueId, threatId, ownerName);
}
@Override
public WriteListResponse associateIndicatorAddresses(String uniqueId, List ipAddresses) throws IOException {
return indAssocWriter.associateIndicatorAddresses(uniqueId, ipAddresses);
}
@Override
public WriteListResponse associateIndicatorAddresses(String uniqueId, List ipAddresses, String ownerName) throws IOException {
return indAssocWriter.associateIndicatorAddresses(uniqueId, ipAddresses, ownerName);
}
@Override
public ApiEntitySingleResponse associateIndicatorAddress(String uniqueId, String ipAddress) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorAddress(uniqueId, ipAddress);
}
@Override
public ApiEntitySingleResponse associateIndicatorAddress(String uniqueId, String ipAddress, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorAddress(uniqueId, ipAddress, ownerName);
}
@Override
public WriteListResponse associateIndicatorEmailAddresses(String uniqueId, List emailAddresses) throws IOException {
return indAssocWriter.associateIndicatorEmailAddresses(uniqueId, emailAddresses);
}
@Override
public WriteListResponse associateIndicatorEmailAddresses(String uniqueId, List emailAddresses, String ownerName) throws IOException {
return indAssocWriter.associateIndicatorEmailAddresses(uniqueId, emailAddresses, ownerName);
}
@Override
public ApiEntitySingleResponse associateIndicatorEmailAddress(String uniqueId, String emailAddress) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorEmailAddress(uniqueId, emailAddress);
}
@Override
public ApiEntitySingleResponse associateIndicatorEmailAddress(String uniqueId, String emailAddress, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorAddress(uniqueId, emailAddress, ownerName);
}
@Override
public WriteListResponse associateIndicatorFiles(String uniqueId, List fileHashes) throws IOException {
return indAssocWriter.associateIndicatorFiles(uniqueId, fileHashes);
}
@Override
public WriteListResponse associateIndicatorFiles(String uniqueId, List fileHashes, String ownerName) throws IOException {
return indAssocWriter.associateIndicatorFiles(uniqueId, fileHashes, ownerName);
}
@Override
public ApiEntitySingleResponse associateIndicatorFile(String uniqueId, String fileHash) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorFile(uniqueId, fileHash);
}
@Override
public ApiEntitySingleResponse associateIndicatorFile(String uniqueId, String fileHash, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorAddress(uniqueId, fileHash, ownerName);
}
@Override
public WriteListResponse associateIndicatorHosts(String uniqueId, List hostNames) throws IOException {
return indAssocWriter.associateIndicatorHosts(uniqueId, hostNames);
}
@Override
public WriteListResponse associateIndicatorHosts(String uniqueId, List hostNames, String ownerName) throws IOException {
return indAssocWriter.associateIndicatorHosts(uniqueId, hostNames, ownerName);
}
@Override
public ApiEntitySingleResponse associateIndicatorHost(String uniqueId, String hostName) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorHost(uniqueId, hostName);
}
@Override
public ApiEntitySingleResponse associateIndicatorHost(String uniqueId, String hostName, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorHost(uniqueId, hostName, ownerName);
}
@Override
public WriteListResponse associateIndicatorUrls(String uniqueId, List urlTexts) throws IOException {
return indAssocWriter.associateIndicatorUrls(uniqueId, urlTexts);
}
@Override
public WriteListResponse associateIndicatorUrls(String uniqueId, List urlTexts, String ownerName) throws IOException {
return indAssocWriter.associateIndicatorUrls(uniqueId, urlTexts, ownerName);
}
@Override
public ApiEntitySingleResponse associateIndicatorUrl(String uniqueId, String urlText) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorUrl(uniqueId, urlText);
}
@Override
public ApiEntitySingleResponse associateIndicatorUrl(String uniqueId, String urlText, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.associateIndicatorUrl(uniqueId, urlText, ownerName);
}
@Override
public WriteListResponse addAttributes(String uniqueId, List attributes) throws IOException {
return attribWriter.addAttributes(uniqueId, attributes);
}
@Override
public WriteListResponse addAttributes(String uniqueId, List attribute, String ownerName) throws IOException {
return attribWriter.addAttributes(uniqueId, attribute, ownerName);
}
@Override
public ApiEntitySingleResponse addAttribute(String uniqueId, Attribute attribute) throws IOException, FailedResponseException {
return attribWriter.addAttribute(uniqueId, attribute);
}
@Override
public ApiEntitySingleResponse addAttribute(String uniqueId, Attribute attribute, String ownerName) throws IOException, FailedResponseException {
return attribWriter.addAttribute(uniqueId, attribute, ownerName);
}
@Override
public WriteListResponse addAttributeSecurityLabels(String uniqueId, Integer attributeId, List securityLabels) throws IOException {
return attribWriter.addAttributeSecurityLabels(uniqueId, attributeId, securityLabels);
}
@Override
public WriteListResponse addAttributeSecurityLabels(String uniqueId, Integer attributeId, List securityLabels, String ownerName) throws IOException {
return attribWriter.addAttributeSecurityLabels(uniqueId, attributeId, securityLabels, ownerName);
}
@Override
public ApiEntitySingleResponse addAttributeSecurityLabel(String uniqueId, Integer attributeId, String securityLabel) throws IOException, FailedResponseException {
return attribWriter.addAttributeSecurityLabel(uniqueId, attributeId, securityLabel);
}
@Override
public ApiEntitySingleResponse addAttributeSecurityLabel(String uniqueId, Integer attributeId, String securityLabel, String ownerName) throws IOException, FailedResponseException {
return attribWriter.addAttributeSecurityLabel(uniqueId, attributeId, securityLabel, ownerName);
}
@Override
public WriteListResponse associateTags(String uniqueId, List tagNames) throws IOException {
return tagAssocWriter.associateTags(uniqueId, tagNames);
}
@Override
public WriteListResponse associateTags(String uniqueId, List tagNames, String ownerName) throws IOException {
return tagAssocWriter.associateTags(uniqueId, tagNames, ownerName);
}
@Override
public ApiEntitySingleResponse associateTag(String uniqueId, String tagName) throws IOException, FailedResponseException {
return tagAssocWriter.associateTag(uniqueId, tagName);
}
@Override
public ApiEntitySingleResponse associateTag(String uniqueId, String tagName, String ownerName) throws IOException, FailedResponseException {
return tagAssocWriter.associateTag(uniqueId, tagName, ownerName);
}
@Override
public WriteListResponse associateSecurityLabels(String uniqueId, List securityLabels) throws IOException {
return secLabelAssocWriter.associateSecurityLabels(uniqueId, securityLabels);
}
@Override
public WriteListResponse associateSecurityLabels(String uniqueId, List securityLabels, String ownerName) throws IOException {
return secLabelAssocWriter.associateSecurityLabels(uniqueId, securityLabels, ownerName);
}
@Override
public ApiEntitySingleResponse associateSecurityLabel(String uniqueId, String securityLabel) throws IOException, FailedResponseException {
return secLabelAssocWriter.associateSecurityLabel(uniqueId, securityLabel);
}
@Override
public ApiEntitySingleResponse associateSecurityLabel(String uniqueId, String securityLabel, String ownerName) throws IOException, FailedResponseException {
return secLabelAssocWriter.associateSecurityLabel(uniqueId, securityLabel, ownerName);
}
@Override
public WriteListResponse dissociateGroupAdversaries(String uniqueId, List adversaryIds) throws IOException {
return groupAssocWriter.dissociateGroupAdversaries(uniqueId, adversaryIds);
}
@Override
public WriteListResponse dissociateGroupAdversaries(String uniqueId, List adversaryIds, String ownerName) throws IOException {
return groupAssocWriter.dissociateGroupAdversaries(uniqueId, adversaryIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateGroupAdversary(String uniqueId, Integer adversaryId) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupAdversary(uniqueId, adversaryId);
}
@Override
public ApiEntitySingleResponse dissociateGroupAdversary(String uniqueId, Integer adversaryId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupAdversary(uniqueId, adversaryId, ownerName);
}
@Override
public WriteListResponse dissociateGroupEmails(String uniqueId, List emailIds) throws IOException {
return groupAssocWriter.dissociateGroupEmails(uniqueId, emailIds);
}
@Override
public WriteListResponse dissociateGroupEmails(String uniqueId, List emailIds, String ownerName) throws IOException {
return groupAssocWriter.dissociateGroupEmails(uniqueId, emailIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateGroupEmail(String uniqueId, Integer emailId) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupEmail(uniqueId, emailId);
}
@Override
public ApiEntitySingleResponse dissociateGroupEmail(String uniqueId, Integer emailId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupEmail(uniqueId, emailId, ownerName);
}
@Override
public WriteListResponse dissociateGroupIncidents(String uniqueId, List incidentIds) throws IOException {
return groupAssocWriter.dissociateGroupIncidents(uniqueId, incidentIds);
}
@Override
public WriteListResponse dissociateGroupIncidents(String uniqueId, List incidentIds, String ownerName) throws IOException {
return groupAssocWriter.dissociateGroupIncidents(uniqueId, incidentIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateGroupIncident(String uniqueId, Integer incidentId) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupIncident(uniqueId, incidentId);
}
@Override
public ApiEntitySingleResponse dissociateGroupIncident(String uniqueId, Integer incidentId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupIncident(uniqueId, incidentId, ownerName);
}
@Override
public WriteListResponse dissociateGroupSignatures(String uniqueId, List signatureIds) throws IOException {
return groupAssocWriter.dissociateGroupSignatures(uniqueId, signatureIds);
}
@Override
public WriteListResponse dissociateGroupSignatures(String uniqueId, List signatureIds, String ownerName) throws IOException {
return groupAssocWriter.dissociateGroupSignatures(uniqueId, signatureIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateGroupSignature(String uniqueId, Integer signatureId) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupSignature(uniqueId, signatureId);
}
@Override
public ApiEntitySingleResponse dissociateGroupSignature(String uniqueId, Integer signatureId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupSignature(uniqueId, signatureId, ownerName);
}
@Override
public WriteListResponse dissociateGroupThreats(String uniqueId, List threatIds) throws IOException {
return groupAssocWriter.dissociateGroupThreats(uniqueId, threatIds);
}
@Override
public WriteListResponse dissociateGroupThreats(String uniqueId, List threatIds, String ownerName) throws IOException {
return groupAssocWriter.dissociateGroupThreats(uniqueId, threatIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateGroupThreat(String uniqueId, Integer threatId) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupThreat(uniqueId, threatId);
}
@Override
public ApiEntitySingleResponse dissociateGroupThreat(String uniqueId, Integer threatId, String ownerName) throws IOException, FailedResponseException {
return groupAssocWriter.dissociateGroupThreat(uniqueId, threatId, ownerName);
}
@Override
public WriteListResponse dissociateIndicatorAddresses(String uniqueId, List ipAddresses) throws IOException {
return indAssocWriter.dissociateIndicatorAddresses(uniqueId, ipAddresses);
}
@Override
public WriteListResponse dissociateIndicatorAddresses(String uniqueId, List ipAddresses, String ownerName) throws IOException {
return indAssocWriter.dissociateIndicatorAddresses(uniqueId, ipAddresses, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorAddress(String uniqueId, String ipAddress) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorAddress(uniqueId, ipAddress);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorAddress(String uniqueId, String ipAddress, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorAddress(uniqueId, ipAddress, ownerName);
}
@Override
public WriteListResponse dissociateIndicatorEmailAddresses(String uniqueId, List emailAddresses) throws IOException {
return indAssocWriter.dissociateIndicatorEmailAddresses(uniqueId, emailAddresses);
}
@Override
public WriteListResponse dissociateIndicatorEmailAddresses(String uniqueId, List emailAddresses, String ownerName) throws IOException {
return indAssocWriter.dissociateIndicatorEmailAddresses(uniqueId, emailAddresses, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorEmailAddress(String uniqueId, String emailAddress) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorEmailAddress(uniqueId, emailAddress);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorEmailAddress(String uniqueId, String emailAddress, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorEmailAddress(uniqueId, emailAddress, ownerName);
}
@Override
public WriteListResponse dissociateIndicatorFiles(String uniqueId, List fileHashes) throws IOException {
return indAssocWriter.dissociateIndicatorFiles(uniqueId, fileHashes);
}
@Override
public WriteListResponse dissociateIndicatorFiles(String uniqueId, List fileHashes, String ownerName) throws IOException {
return indAssocWriter.dissociateIndicatorFiles(uniqueId, fileHashes, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorFile(String uniqueId, String fileHash) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorFile(uniqueId, fileHash);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorFile(String uniqueId, String fileHash, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorFile(uniqueId, fileHash, ownerName);
}
@Override
public WriteListResponse dissociateIndicatorHosts(String uniqueId, List hostNames) throws IOException {
return indAssocWriter.dissociateIndicatorHosts(uniqueId, hostNames);
}
@Override
public WriteListResponse dissociateIndicatorHosts(String uniqueId, List hostNames, String ownerName) throws IOException {
return indAssocWriter.dissociateIndicatorHosts(uniqueId, hostNames, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorHost(String uniqueId, String hostName) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorHost(uniqueId, hostName);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorHost(String uniqueId, String hostName, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorHost(uniqueId, hostName, ownerName);
}
@Override
public WriteListResponse dissociateIndicatorUrls(String uniqueId, List urlTexts) throws IOException {
return indAssocWriter.dissociateIndicatorUrls(uniqueId, urlTexts);
}
@Override
public WriteListResponse dissociateIndicatorUrls(String uniqueId, List urlTexts, String ownerName) throws IOException {
return indAssocWriter.dissociateIndicatorUrls(uniqueId, urlTexts, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorUrl(String uniqueId, String urlText) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorUrl(uniqueId, urlText);
}
@Override
public ApiEntitySingleResponse dissociateIndicatorUrl(String uniqueId, String urlText, String ownerName) throws IOException, FailedResponseException {
return indAssocWriter.dissociateIndicatorUrl(uniqueId, urlText, ownerName);
}
@Override
public WriteListResponse updateAttributes(String uniqueId, List attributes) throws IOException {
return attribWriter.updateAttributes(uniqueId, attributes);
}
@Override
public WriteListResponse updateAttributes(String uniqueId, List attribute, String ownerName) throws IOException {
return attribWriter.updateAttributes(uniqueId, attribute, ownerName);
}
@Override
public ApiEntitySingleResponse updateAttribute(String uniqueId, Attribute attribute) throws IOException, FailedResponseException {
return attribWriter.updateAttribute(uniqueId, attribute);
}
@Override
public ApiEntitySingleResponse updateAttribute(String uniqueId, Attribute attribute, String ownerName) throws IOException, FailedResponseException {
return attribWriter.updateAttribute(uniqueId, attribute, ownerName);
}
@Override
public WriteListResponse deleteAttributes(String uniqueId, List attributes) throws IOException {
return attribWriter.deleteAttributes(uniqueId, attributes);
}
@Override
public WriteListResponse deleteAttributes(String uniqueId, List attribute, String ownerName) throws IOException {
return attribWriter.deleteAttributes(uniqueId, attribute, ownerName);
}
@Override
public ApiEntitySingleResponse deleteAttribute(String uniqueId, Integer attribute) throws IOException, FailedResponseException {
return attribWriter.deleteAttribute(uniqueId, attribute);
}
@Override
public ApiEntitySingleResponse deleteAttribute(String uniqueId, Integer attribute, String ownerName) throws IOException, FailedResponseException {
return attribWriter.deleteAttribute(uniqueId, attribute, ownerName);
}
@Override
public WriteListResponse deleteAttributeSecurityLabels(String uniqueId, Integer attributeId, List securityLabels) throws IOException, FailedResponseException {
return attribWriter.deleteAttributeSecurityLabels(uniqueId, attributeId, securityLabels);
}
@Override
public WriteListResponse deleteAttributeSecurityLabels(String uniqueId, Integer attributeId, List securityLabels, String ownerName) throws IOException, FailedResponseException {
return attribWriter.deleteAttributeSecurityLabels(uniqueId, attributeId, securityLabels, ownerName);
}
@Override
public ApiEntitySingleResponse deleteAttributeSecurityLabel(String uniqueId, Integer attributeId, String securityLabel) throws IOException, FailedResponseException {
return attribWriter.deleteAttributeSecurityLabel(uniqueId, attributeId, securityLabel);
}
@Override
public ApiEntitySingleResponse deleteAttributeSecurityLabel(String uniqueId, Integer attributeId, String securityLabel, String ownerName) throws IOException, FailedResponseException {
return attribWriter.deleteAttributeSecurityLabel(uniqueId, attributeId, securityLabel, ownerName);
}
@Override
public WriteListResponse dissociateVictimAssetEmailAddresses(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetEmailAddresses(uniqueId, assetIds);
}
@Override
public WriteListResponse dissociateVictimAssetEmailAddresses(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetEmailAddresses(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetEmailAddress(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetEmailAddress(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetEmailAddress(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetEmailAddress(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse dissociateVictimAssetNetworkAccounts(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetNetworkAccounts(uniqueId, assetIds);
}
@Override
public WriteListResponse dissociateVictimAssetNetworkAccounts(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetNetworkAccounts(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetNetworkAccount(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetNetworkAccount(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetNetworkAccount(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetNetworkAccount(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse dissociateVictimAssetPhoneNumbers(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetPhoneNumbers(uniqueId, assetIds);
}
@Override
public WriteListResponse dissociateVictimAssetPhoneNumbers(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetPhoneNumbers(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetPhoneNumber(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetPhoneNumber(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetPhoneNumber(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetPhoneNumber(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse dissociateVictimAssetSocialNetworks(String uniqueId, List assetIds) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetSocialNetworks(uniqueId, assetIds);
}
@Override
public WriteListResponse dissociateVictimAssetSocialNetworks(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetSocialNetworks(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetSocialNetwork(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetSocialNetwork(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetSocialNetwork(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetSocialNetwork(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse dissociateVictimAssetWebsites(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetWebsites(uniqueId, assetIds);
}
@Override
public WriteListResponse dissociateVictimAssetWebsites(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.dissociateVictimAssetWebsites(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetWebsite(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetWebsite(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse dissociateVictimAssetWebsite(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.dissociateVictimAssetWebsite(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse dissociateTags(String uniqueId, List tagNames) throws IOException {
return tagAssocWriter.dissociateTags(uniqueId, tagNames);
}
@Override
public WriteListResponse dissociateTags(String uniqueId, List tagNames, String ownerName) throws IOException {
return tagAssocWriter.dissociateTags(uniqueId, tagNames, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateTag(String uniqueId, String tagName) throws IOException, FailedResponseException {
return tagAssocWriter.dissociateTag(uniqueId, tagName);
}
@Override
public ApiEntitySingleResponse dissociateTag(String uniqueId, String tagName, String ownerName) throws IOException, FailedResponseException {
return tagAssocWriter.dissociateTag(uniqueId, tagName, ownerName);
}
@Override
public WriteListResponse dissociateSecurityLabel(String uniqueId, List securityLabels) throws IOException {
return secLabelAssocWriter.dissociateSecurityLabel(uniqueId, securityLabels);
}
@Override
public WriteListResponse dissociateSecurityLabel(String uniqueId, List securityLabels, String ownerName) throws IOException {
return secLabelAssocWriter.dissociateSecurityLabel(uniqueId, securityLabels, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateSecurityLabel(String uniqueId, String securityLabel) throws IOException, FailedResponseException {
return secLabelAssocWriter.dissociateSecurityLabel(uniqueId, securityLabel);
}
@Override
public ApiEntitySingleResponse dissociateSecurityLabel(String uniqueId, String securityLabel, String ownerName) throws IOException, FailedResponseException {
return secLabelAssocWriter.dissociateSecurityLabel(uniqueId, securityLabel, ownerName);
}
@Override
public WriteListResponse associateVictimAssetEmailAddresses(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.associateVictimAssetEmailAddresses(uniqueId, assetIds);
}
@Override
public WriteListResponse associateVictimAssetEmailAddresses(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter. associateVictimAssetEmailAddresses(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateVictimAssetEmailAddress(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetEmailAddress(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse associateVictimAssetEmailAddress(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetEmailAddress(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse associateVictimAssetNetworkAccounts(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.associateVictimAssetNetworkAccounts(uniqueId, assetIds);
}
@Override
public WriteListResponse associateVictimAssetNetworkAccounts(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.associateVictimAssetNetworkAccounts(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateVictimAssetNetworkAccount(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetNetworkAccount(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse associateVictimAssetNetworkAccount(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetNetworkAccount(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse associateVictimAssetPhoneNumbers(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.associateVictimAssetPhoneNumbers(uniqueId, assetIds);
}
@Override
public WriteListResponse associateVictimAssetPhoneNumbers(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.associateVictimAssetPhoneNumbers(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateVictimAssetPhoneNumber(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetPhoneNumber(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse associateVictimAssetPhoneNumber(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetPhoneNumber(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse associateVictimAssetSocialNetworks(String uniqueId, List assetIds) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetSocialNetworks(uniqueId, assetIds);
}
@Override
public WriteListResponse associateVictimAssetSocialNetworks(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.associateVictimAssetSocialNetworks(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateVictimAssetSocialNetwork(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetSocialNetwork(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse associateVictimAssetSocialNetwork(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetSocialNetwork(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse associateVictimAssetWebsites(String uniqueId, List assetIds) throws IOException {
return victimAssetAssocWriter.associateVictimAssetWebsites(uniqueId, assetIds);
}
@Override
public WriteListResponse associateVictimAssetWebsites(String uniqueId, List assetIds, String ownerName) throws IOException {
return victimAssetAssocWriter.associateVictimAssetWebsites(uniqueId, assetIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateVictimAssetWebsite(String uniqueId, Integer assetId) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetWebsite(uniqueId, assetId);
}
@Override
public ApiEntitySingleResponse associateVictimAssetWebsite(String uniqueId, Integer assetId, String ownerName) throws IOException, FailedResponseException {
return victimAssetAssocWriter.associateVictimAssetWebsite(uniqueId, assetId, ownerName);
}
@Override
public WriteListResponse associateVictims(String uniqueId, List victimIds) throws IOException {
return victimAssocWriter.associateVictims(uniqueId, victimIds);
}
@Override
public WriteListResponse associateVictims(String uniqueId, List victimIds, String ownerName) throws IOException {
return victimAssocWriter.associateVictims(uniqueId, victimIds, ownerName);
}
@Override
public ApiEntitySingleResponse associateVictim(String uniqueId, Integer victimId) throws IOException, FailedResponseException {
return victimAssocWriter.associateVictim(uniqueId, victimId);
}
@Override
public ApiEntitySingleResponse associateVictim(String uniqueId, Integer victimId, String ownerName) throws IOException, FailedResponseException { return victimAssocWriter.associateVictim(uniqueId, victimId, ownerName);
}
@Override
public WriteListResponse dissociateVictims(String uniqueId, List victimIds) throws IOException {
return victimAssocWriter.dissociateVictims(uniqueId, victimIds);
}
@Override
public WriteListResponse dissociateVictims(String uniqueId, List victimIds, String ownerName) throws IOException {
return victimAssocWriter.dissociateVictims(uniqueId, victimIds, ownerName);
}
@Override
public ApiEntitySingleResponse dissociateVictim(String uniqueId, Integer victimId) throws IOException, FailedResponseException {
return victimAssocWriter.dissociateVictim(uniqueId, victimId);
}
@Override
public ApiEntitySingleResponse dissociateVictim(String uniqueId, Integer victimId, String ownerName) throws IOException, FailedResponseException {
return victimAssocWriter.dissociateVictim(uniqueId, victimId, ownerName);
}
public ApiEntitySingleResponse createObservation(String uniqueId) throws IOException, FailedResponseException
{
return createObservation(uniqueId, null);
}
public ApiEntitySingleResponse createObservation(String uniqueId, String ownerName) throws IOException, FailedResponseException {
Map map = AbstractClientAdapter.createParamMap("id", uniqueId);
ApiEntitySingleResponse data = createItem( getUrlBasePrefix() + ".byId.observations", ApiEntitySingleResponse.class, ownerName, map, null);
return data;
}
public ApiEntitySingleResponse updateFalsePositive(String uniqueId) throws IOException, FailedResponseException
{
return updateFalsePositive(uniqueId, null);
}
public ApiEntitySingleResponse updateFalsePositive(String uniqueId, String ownerName) throws IOException, FailedResponseException {
Map map = AbstractClientAdapter.createParamMap("id", uniqueId);
ApiEntitySingleResponse data = createItem( getUrlBasePrefix() + ".byId.falsePositive", ApiEntitySingleResponse.class, ownerName, map, null);
return data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy