eu.emi.emir.validator
Class ValidatorUtil

java.lang.Object
  extended by eu.emi.emir.validator.ValidatorUtil

public class ValidatorUtil
extends Object

Author:
a.memon

Constructor Summary
ValidatorUtil()
           
 
Method Summary
static boolean isValidRemovedServiceInfo(org.codehaus.jettison.json.JSONObject jo)
          Checks the service description being updated contains the service endpoint ID attributes
static boolean isValidServiceInfo(org.codehaus.jettison.json.JSONObject jo)
          Checks the service description being registered contains the mandatory service attributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatorUtil

public ValidatorUtil()
Method Detail

isValidServiceInfo

public static boolean isValidServiceInfo(org.codehaus.jettison.json.JSONObject jo)
                                  throws InvalidServiceDescriptionException,
                                         eu.unicore.util.configuration.ConfigurationException,
                                         org.codehaus.jettison.json.JSONException,
                                         ParseException
Checks the service description being registered contains the mandatory service attributes

Parameters:
serviceDesc -
Throws:
InvalidServiceDescriptionException
ParseException
eu.unicore.util.configuration.ConfigurationException
org.codehaus.jettison.json.JSONException

isValidRemovedServiceInfo

public static boolean isValidRemovedServiceInfo(org.codehaus.jettison.json.JSONObject jo)
                                         throws InvalidServiceDescriptionException
Checks the service description being updated contains the service endpoint ID attributes

Parameters:
serviceDesc -
Throws:
InvalidServiceDescriptionException


Copyright © 2012. All Rights Reserved.