org.opentox.pol.xml
Class PolicyHelper

Package class diagram package PolicyHelper
java.lang.Object
  extended by org.opentox.pol.xml.PolicyHelper
Direct Known Subclasses:
PolicyCreator, PolicyExtinguisher, PolicyReader

public class PolicyHelper
extends Object


Constructor Summary
PolicyHelper()
           
 
Method Summary
protected  String deletePolInternal(String id)
          Delete a Pol resource internally
protected  String format(String xml)
           
protected  String GetLastRow(String str)
          Returns last row after removing whitespaces from the end.
protected  String getPol(String subjectId, String uri, String polnames)
          Get policy
protected  String GetSsoOutput(String str)
           
protected  String htmlToString(String html)
           
protected  void log(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyHelper

public PolicyHelper()
Method Detail

log

protected void log(String msg)

format

protected String format(String xml)
                 throws nu.xom.ParsingException,
                        IOException
Throws:
nu.xom.ParsingException
IOException

deletePolInternal

protected String deletePolInternal(String id)
                            throws RestException
Delete a Pol resource internally

Parameters:
id -
Throws:
RestException

GetSsoOutput

protected final String GetSsoOutput(String str)
                             throws IOException
Throws:
IOException

htmlToString

protected String htmlToString(String html)

GetLastRow

protected final String GetLastRow(String str)
Returns last row after removing whitespaces from the end.


getPol

protected String getPol(String subjectId,
                        String uri,
                        String polnames)
                 throws RestException,
                        DbException
Get policy

Parameters:
subjectId -
uri -
polnames -
Returns:
Throws:
RestException
DbException


Copyright © 2010-2011 OpenTox project. All Rights Reserved.