org.apache.stratos.common.util
Class CloudServicesUtil

java.lang.Object
  extended by org.apache.stratos.common.util.CloudServicesUtil

public class CloudServicesUtil
extends Object


Constructor Summary
CloudServicesUtil()
           
 
Method Summary
static void activateAllServices(CloudServicesDescConfig cloudServicesDesc, int tenantId)
           
static void activateOriginalAndCompulsoryServices(CloudServicesDescConfig cloudServicesDesc, String originalService, int tenantId)
           
static boolean isCloudServiceActive(String cloudServiceName, int tenantId)
           
static boolean isCloudServiceActive(String cloudServiceName, int tenantId, org.wso2.carbon.registry.core.session.UserRegistry govRegistry)
           
static boolean isServiceNameValid(CloudServicesDescConfig cloudServicesDesc, String cloudServiceName)
           
static void setCloudServiceActive(boolean active, String cloudServiceName, int tenantId, CloudServiceConfig cloudServiceConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudServicesUtil

public CloudServicesUtil()
Method Detail

activateAllServices

public static void activateAllServices(CloudServicesDescConfig cloudServicesDesc,
                                       int tenantId)
                                throws Exception
Throws:
Exception

activateOriginalAndCompulsoryServices

public static void activateOriginalAndCompulsoryServices(CloudServicesDescConfig cloudServicesDesc,
                                                         String originalService,
                                                         int tenantId)
                                                  throws Exception
Throws:
Exception

setCloudServiceActive

public static void setCloudServiceActive(boolean active,
                                         String cloudServiceName,
                                         int tenantId,
                                         CloudServiceConfig cloudServiceConfig)
                                  throws Exception
Throws:
Exception

isCloudServiceActive

public static boolean isCloudServiceActive(String cloudServiceName,
                                           int tenantId)
                                    throws Exception
Throws:
Exception

isCloudServiceActive

public static boolean isCloudServiceActive(String cloudServiceName,
                                           int tenantId,
                                           org.wso2.carbon.registry.core.session.UserRegistry govRegistry)
                                    throws Exception
Throws:
Exception

isServiceNameValid

public static boolean isServiceNameValid(CloudServicesDescConfig cloudServicesDesc,
                                         String cloudServiceName)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.