org.apache.oodt.cas.curation.policymgr
Class CurationPolicyManager

java.lang.Object
  extended by org.apache.oodt.cas.curation.policymgr.CurationPolicyManager

public class CurationPolicyManager
extends Object

A management interface for dealing with CAS filemgr policy, and for allowing for browsing and traversal of the staging area used in ingestion.

Version:
$Revision$
Author:
mattmann

Constructor Summary
CurationPolicyManager()
           
CurationPolicyManager(String policyDirectoryPath, String stagingAreaPath)
           
 
Method Summary
 String getDatasetsByPolicyAsJSON(String dsCollection)
           
 String getDirectoryAreaAsJSON(String base, String directory, boolean showFiles)
           
 String getExistingPoliciesAsHTML()
           
 String getMetFileAsJSON(String base, String file)
           
 String getPolicyDirectoryPath()
           
 Map<String,ProductType> getProductTypes(String dsCollection)
           
 String getStagingAreaPath()
           
 void setPolicyDirectoryPath(String policyDirectoryPath)
           
 void setStagingAreaPath(String stagingAreaPath)
           
 List<ProductType> typesToList(Map<String,ProductType> types)
           
 void writeMetFileFromJSON(String base, String json)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurationPolicyManager

public CurationPolicyManager()

CurationPolicyManager

public CurationPolicyManager(String policyDirectoryPath,
                             String stagingAreaPath)
Method Detail

getProductTypes

public Map<String,ProductType> getProductTypes(String dsCollection)

typesToList

public List<ProductType> typesToList(Map<String,ProductType> types)

getDirectoryAreaAsJSON

public String getDirectoryAreaAsJSON(String base,
                                     String directory,
                                     boolean showFiles)

getExistingPoliciesAsHTML

public String getExistingPoliciesAsHTML()

getDatasetsByPolicyAsJSON

public String getDatasetsByPolicyAsJSON(String dsCollection)

getMetFileAsJSON

public String getMetFileAsJSON(String base,
                               String file)

writeMetFileFromJSON

public void writeMetFileFromJSON(String base,
                                 String json)

getStagingAreaPath

public String getStagingAreaPath()
Returns:
the stagingAreaPath

setStagingAreaPath

public void setStagingAreaPath(String stagingAreaPath)
Parameters:
stagingAreaPath - the stagingAreaPath to set

getPolicyDirectoryPath

public String getPolicyDirectoryPath()
Returns:
the policyDirectoryPath

setPolicyDirectoryPath

public void setPolicyDirectoryPath(String policyDirectoryPath)
Parameters:
policyDirectoryPath - the policyDirectoryPath to set


Copyright © 1999-2013
Apache OODT. All Rights Reserved.