com.ihr.xbrl.store.services
Class RSS_Storage_SEC

java.lang.Object
  extended by com.ihr.xbrl.database.common.XBRLDatabaseAccessApp
      extended by com.ihr.xbrl.store.StorageService
          extended by com.ihr.xbrl.store.services.RSS_Storage_SEC
All Implemented Interfaces:
HasEnableDisableOpenMenus, StorageEventListener

public class RSS_Storage_SEC
extends StorageService

This is the new implementation.

Author:
Ignacio

Field Summary
static java.lang.String edgarNS
           
static org.apache.log4j.Logger log
           
 
Fields inherited from class com.ihr.xbrl.store.StorageService
CREATED_STATUS, ERROR_STATUS, RUNNING_STATUS, STORED_STATUS, UNKNOWN_STATUS
 
Constructor Summary
RSS_Storage_SEC()
           
 
Method Summary
static java.util.Vector<java.lang.String> getRssURIs(java.util.Vector<java.lang.String> rssURIs)
          Returns a Vector of String objects with URLs of official pages that are RSS feeds from the SEC containing information about last stored XBRL reports
static void main(java.lang.String[] args)
           
 void processAddFile(java.lang.String companyName, java.lang.String cik, java.lang.String instanceURL, java.util.Collection<java.lang.String> pArgs, boolean testMode, boolean bInASeparateProcess, StorageEventListener[] listeners)
           
 void runService(java.lang.String serviceURI, StorageEventListener[] listeners)
          reads the content of the URL indicated in the first argument and process it according to the format specified by the SEC RSS.
 
Methods inherited from class com.ihr.xbrl.store.StorageService
disableOpen, documentStoredEvent, doStoreDTS, enableOpen, getLastMessage, getPercentage, getService, getStackTrace, getStatus, getStorageThreads, getTooltipMessage, isStored
 
Methods inherited from class com.ihr.xbrl.database.common.XBRLDatabaseAccessApp
getDbUtil, getStatus, showDbSettings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edgarNS

public static final java.lang.String edgarNS
See Also:
Constant Field Values

log

public static org.apache.log4j.Logger log
Constructor Detail

RSS_Storage_SEC

public RSS_Storage_SEC()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -
Throws:
java.io.FileNotFoundException

getRssURIs

public static java.util.Vector<java.lang.String> getRssURIs(java.util.Vector<java.lang.String> rssURIs)
Returns a Vector of String objects with URLs of official pages that are RSS feeds from the SEC containing information about last stored XBRL reports

Parameters:
rssURIs - a Vector of strings with already loaded URLs, the URLs will not be duplicate. If null, a new Vector will be created
Returns:
Vector>String<

runService

public void runService(java.lang.String serviceURI,
                       StorageEventListener[] listeners)
reads the content of the URL indicated in the first argument and process it according to the format specified by the SEC RSS.

Parameters:
serviceURI - the URL of the file to read
listeners - array of StorageEventListeners that will be informed about the storage result or null if not needed

processAddFile

public void processAddFile(java.lang.String companyName,
                           java.lang.String cik,
                           java.lang.String instanceURL,
                           java.util.Collection<java.lang.String> pArgs,
                           boolean testMode,
                           boolean bInASeparateProcess,
                           StorageEventListener[] listeners)
Parameters:
companyName - the company name that would be stored in the FriendlyCompanyName table
cik - the identifier part in the entity for this company name
instanceURL - the instance document URL to read and store into the database
pArgs - additional arguments to be added to the background java process if they are required
testMode - boolean, true means nothing will be stored into the database but the DTS will be loaded
bInSeparateProcess, - true means a new Java process will be executed and isolated from current process. (new JVM will be used). Note listeners in the listeners argument will be notified differently if the invocation is in the same or in a different process.
listeners - This is an optional array of StorageEventListeners that will be informed when the storage process ends. null means no listeners will be notified


Copyright 2006-2009 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa