19 package org.sleuthkit.autopsy.test;
 
   21 import java.util.ArrayList;
 
   22 import java.util.List;
 
   23 import java.util.logging.Level;
 
   24 import javax.xml.bind.DatatypeConverter;
 
   25 import org.openide.util.NbBundle;
 
   41     "ErrorCreatingCustomBlackBoardType=Error creating custom blackboard type." 
   45     private static final Logger logger = 
Logger.
getLogger(CustomArtifactsCreatorIngestModule.class.getName());
 
   47     private static final String ARTIFACT_TYPE_NAME = 
"CUSTOM_ARTIFACT";
 
   48     private static final String ARTIFACT_DISPLAY_NAME = 
"Custom Artifact";
 
   49     private static final String INT_ATTR_TYPE_NAME = 
"CUSTOM_INT_ATTRIBUTE";
 
   50     private static final String INT_ATTR_DISPLAY_NAME = 
"Custom Integer";
 
   51     private static final String DOUBLE_ATTR_TYPE_NAME = 
"CUSTOM_DOUBLE_ATTRIBUTE";
 
   52     private static final String DOUBLE_ATTR_DISPLAY_NAME = 
"Custom Double";
 
   53     private static final String LONG_ATTR_TYPE_NAME = 
"CUSTOM_LONG_ATTRIBUTE";
 
   54     private static final String LONG_ATTR_DISPLAY_NAME = 
"Custom Long";
 
   55     private static final String DATETIME_ATTR_TYPE_NAME = 
"CUSTOM_DATETIME_ATTRIBUTE";
 
   56     private static final String DATETIME_ATTR_DISPLAY_NAME = 
"Custom Datetime";
 
   57     private static final String BYTES_ATTR_TYPE_NAME = 
"CUSTOM_BYTES_ATTRIBUTE";
 
   58     private static final String BYTES_ATTR_DISPLAY_NAME = 
"Custom Bytes";
 
   59     private static final String STRING_ATTR_TYPE_NAME = 
"CUSTOM_STRING_ATTRIBUTE";
 
   60     private static final String STRING_ATTR_DISPLAY_NAME = 
"Custom String";
 
   81             throw new IngestModuleException(Bundle.ErrorCreatingCustomBlackBoardType(), ex);
 
   91             return ProcessResult.OK;
 
  100             List<BlackboardAttribute> attributes = 
new ArrayList<>();
 
  105             attributes.add(
new BlackboardAttribute(bytesAttrType, MODULE_NAME, DatatypeConverter.parseHexBinary(
"ABCD")));
 
  114                 attr.addSource(
"Added Module");
 
  115                 attr.addSource(
"Added Module");
 
  119             logger.log(Level.SEVERE, String.format(
"Failed to process file (obj_id = %d)", file.
getId()), ex);
 
  120             return ProcessResult.ERROR;
 
  123         return ProcessResult.OK;
 
synchronized BlackboardAttribute.Type getOrAddAttributeType(String typeName, BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE valueType, String displayName)
 
void addAttributes(Collection< BlackboardAttribute > attributes)
 
synchronized BlackboardArtifact.Type getOrAddArtifactType(String typeName, String displayName)
 
Blackboard getBlackboard()
 
BlackboardArtifact newArtifact(int artifactTypeID)
 
static Case getCurrentCase()
 
synchronized static Logger getLogger(String name)