com.bea.wli.sb.util
Class Refs

java.lang.Object
  extended by com.bea.wli.sb.util.Refs

public class Refs
extends Object


Field Summary
static String ALERT_DESTINATION_TYPE
          Type Id for an Alert Destination
static String ARCHIVE_TYPE
          type id for archived resources
static String BUSINESS_SERVICE_TYPE
          Type Id for business services
static String FOREIGN_JNDI_PROVIDER_TYPE
          Type Id for JNDI Providers
static String MFL_TYPE
          Type Id for MFL resource
static String MQ_CONNECTION_TYPE
          Type Id for MQ connection
static String OPERATIONS_REF
          Type Id for an Operations configured for operator role
static String PROXY_SERVICE_TYPE
          Type Id for proxy services
static Set<String> PUBLIC_RESOURCE_TYPE_IDS
          WARNING: Do not make that Set immutable.
static String SECURITY_POLICY_TYPE
          Type Id for security policy resource
static String SERVICE_ACCOUNT_TYPE
          Type Id for service account resource
static String SERVICE_KEY_PROVIDER_TYPE
           
static String SERVICE_PROVIDER_TYPE
          Deprecated. in 3.0. Please use SERVICE_KEY_PROVIDER_TYPE. Deprecated API is removed in the subsequent major release.
static String SMTP_SERVER_TYPE
          Type Id for an SMTP Server
static Ref SYSTEM_JNDI_PROVIDER_FOLDER
           
static Ref SYSTEM_OPERATOR_SETTINGS_FOLDER
           
static Ref SYSTEM_PROJECT_REF
           
static Ref SYSTEM_SMTP_FOLDER
           
static Ref SYSTEM_UDDI_FOLDER
           
static String UDDI_REGISTRY_TYPE
          Type Id for UDDI registry entries configured
static String WSDL_TYPE
          Type Id for wsdl resource
static String XMLSCHEMA_TYPE
          Type Id for xml schema resource
static String XQUERY_TYPE
          Type Id for xquery resource
static String XSLT_TYPE
          Type Id for XSLT resource
 
Constructor Summary
Refs()
           
 
Method Summary
static boolean isGlobalOperationalResource(Ref ref)
           
static boolean isUnderSystemProject(Ref ref)
          Checks if a a folder/resource is under System project
static Ref makeAlertDestinationRef(Ref parent, String name)
          Constructs a reference to an AlertDestination
static Ref makeArchiveResourceRef(Ref parent, String resourceName)
          Constructs a reference to an archive resource
static Ref makeBusinessSvcRef(Ref parent, String serviceName)
          Constructs a reference to a business service component
static Ref makeCustomResourceRef(String typeId, Ref parent, String name)
          Constructs a reference to a custom resource
static Ref makeJNDIProviderRef(String jndiProviderName)
          Factory method for creating a reference to a jndi provider
static Ref makeLocationRef(String location)
           Factory method to create parent ref for the given location.
static Ref makeMflRef(Ref parent, String mflName)
          Constructs a reference to an MFL component
static Ref makeMQConnectionRef(Ref parent, String mqConnectionName)
          Factory method for creating a reference to a MQ connection resource
static Ref makeParentRef(String fullName)
          Convenience method to create the parent ref for a given full name.
static Ref makeProxyRef(Ref parent, String proxyName)
          Constructs a reference to a proxy service
static Ref makeSecurityPolicyRef(Ref parent, String policyName)
          Constructs a reference to a security policy component
static Ref makeServiceAccountRef(Ref parent, String accountName)
          Constructs a reference to a service account component
static Ref makeServiceKeyProviderRef(Ref parent, String providerName)
          Constructs a reference to a service key provider component.
static Ref makeServiceProviderRef(Ref parent, String providerName)
          Deprecated. in 3.0. Please use makeServiceKeyProviderRef(com.bea.wli.config.Ref, String) . Deprecated API is removed in the subsequent major release.
static Ref makeSMTPServerRef(String smtpServerName)
          Factory method for creating a reference to an smtp server
static Ref makeUDDIRegistryRef(String registryLocalName)
          Factory method for creating a reference to a uddi registry entry
static Ref makeWsdlRef(Ref parent, String wsdlName)
          Constructs a reference to a WSDL component
static Ref makeXmlSchemaRef(Ref parent, String schemaName)
          Constructs a reference to an xml schema component
static Ref makeXqueryRef(Ref parent, String xqueryName)
          Constructs a reference to an Xquery component
static Ref makeXsltRef(Ref parent, String xsltName)
          Constructs a reference to an XSLT component
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_PROJECT_REF

public static final Ref SYSTEM_PROJECT_REF

SYSTEM_UDDI_FOLDER

public static final Ref SYSTEM_UDDI_FOLDER

SYSTEM_SMTP_FOLDER

public static final Ref SYSTEM_SMTP_FOLDER

SYSTEM_JNDI_PROVIDER_FOLDER

public static final Ref SYSTEM_JNDI_PROVIDER_FOLDER

SYSTEM_OPERATOR_SETTINGS_FOLDER

public static final Ref SYSTEM_OPERATOR_SETTINGS_FOLDER

SECURITY_POLICY_TYPE

public static final String SECURITY_POLICY_TYPE
Type Id for security policy resource

See Also:
Constant Field Values

PROXY_SERVICE_TYPE

public static final String PROXY_SERVICE_TYPE
Type Id for proxy services

See Also:
Constant Field Values

BUSINESS_SERVICE_TYPE

public static final String BUSINESS_SERVICE_TYPE
Type Id for business services

See Also:
Constant Field Values

SERVICE_PROVIDER_TYPE

public static final String SERVICE_PROVIDER_TYPE
Deprecated. in 3.0. Please use SERVICE_KEY_PROVIDER_TYPE. Deprecated API is removed in the subsequent major release.
Type Id for service providers resource


SERVICE_KEY_PROVIDER_TYPE

public static final String SERVICE_KEY_PROVIDER_TYPE

SERVICE_ACCOUNT_TYPE

public static final String SERVICE_ACCOUNT_TYPE
Type Id for service account resource


XQUERY_TYPE

public static final String XQUERY_TYPE
Type Id for xquery resource

See Also:
Constant Field Values

XMLSCHEMA_TYPE

public static final String XMLSCHEMA_TYPE
Type Id for xml schema resource

See Also:
Constant Field Values

WSDL_TYPE

public static final String WSDL_TYPE
Type Id for wsdl resource

See Also:
Constant Field Values

MFL_TYPE

public static final String MFL_TYPE
Type Id for MFL resource

See Also:
Constant Field Values

XSLT_TYPE

public static final String XSLT_TYPE
Type Id for XSLT resource

See Also:
Constant Field Values

ARCHIVE_TYPE

public static final String ARCHIVE_TYPE
type id for archived resources

See Also:
Constant Field Values

UDDI_REGISTRY_TYPE

public static final String UDDI_REGISTRY_TYPE
Type Id for UDDI registry entries configured

See Also:
Constant Field Values

FOREIGN_JNDI_PROVIDER_TYPE

public static final String FOREIGN_JNDI_PROVIDER_TYPE
Type Id for JNDI Providers

See Also:
Constant Field Values

SMTP_SERVER_TYPE

public static final String SMTP_SERVER_TYPE
Type Id for an SMTP Server

See Also:
Constant Field Values

ALERT_DESTINATION_TYPE

public static final String ALERT_DESTINATION_TYPE
Type Id for an Alert Destination

See Also:
Constant Field Values

OPERATIONS_REF

public static String OPERATIONS_REF
Type Id for an Operations configured for operator role


MQ_CONNECTION_TYPE

public static final String MQ_CONNECTION_TYPE
Type Id for MQ connection

See Also:
Constant Field Values

PUBLIC_RESOURCE_TYPE_IDS

public static final Set<String> PUBLIC_RESOURCE_TYPE_IDS
WARNING: Do not make that Set immutable. External components (e.g. BPEL) will contribute to that set dynamically. This Set is then used in many places like the console, import/export etc...

Constructor Detail

Refs

public Refs()
Method Detail

makeLocationRef

public static Ref makeLocationRef(String location)
 Factory method to create parent ref for the given location.
 For Eg: if location is project1/folder1/folder2 it creates Ref object for folder2.
 

Parameters:
location -
Returns:

makeParentRef

public static Ref makeParentRef(String fullName)
Convenience method to create the parent ref for a given full name.

Parameters:
fullName -
Returns:

makeUDDIRegistryRef

public static Ref makeUDDIRegistryRef(String registryLocalName)
Factory method for creating a reference to a uddi registry entry

Parameters:
registryLocalName - registry local name
Returns:
a reference to UDDI Registry

makeJNDIProviderRef

public static Ref makeJNDIProviderRef(String jndiProviderName)
Factory method for creating a reference to a jndi provider

Parameters:
jndiProviderName - jndi provider local name
Returns:
a reference to JNDI Provider

makeSMTPServerRef

public static Ref makeSMTPServerRef(String smtpServerName)
Factory method for creating a reference to an smtp server

Parameters:
smtpServerName - smtp server local name
Returns:
a reference to SMTP server

makeProxyRef

public static Ref makeProxyRef(Ref parent,
                               String proxyName)
Constructs a reference to a proxy service

Parameters:
parent - the parent. This can be a folder or a project.
proxyName - name of the proxy service
Returns:
a reference to a service

makeBusinessSvcRef

public static Ref makeBusinessSvcRef(Ref parent,
                                     String serviceName)
Constructs a reference to a business service component

Parameters:
parent - the parent. This can be a folder or a project.
serviceName - name of the service
Returns:
a reference to a service

makeServiceProviderRef

public static Ref makeServiceProviderRef(Ref parent,
                                         String providerName)
Deprecated. in 3.0. Please use makeServiceKeyProviderRef(com.bea.wli.config.Ref, String) . Deprecated API is removed in the subsequent major release.

Constructs a reference to a service provider component

Parameters:
parent - the parent. This can be a folder or a project.
providerName - name of the service provider
Returns:
a reference to a service provider

makeServiceKeyProviderRef

public static Ref makeServiceKeyProviderRef(Ref parent,
                                            String providerName)
Constructs a reference to a service key provider component.

Parameters:
parent - the parent. This can be a folder or a project.
providerName - name of the service provider
Returns:
a reference to a service provider

makeServiceAccountRef

public static Ref makeServiceAccountRef(Ref parent,
                                        String accountName)
Constructs a reference to a service account component

Parameters:
parent - the parent. This can be a folder or a project.
accountName - name of the service account
Returns:
a reference to a service account

makeSecurityPolicyRef

public static Ref makeSecurityPolicyRef(Ref parent,
                                        String policyName)
Constructs a reference to a security policy component

Parameters:
parent - the parent. This can be a folder or a project.
policyName - name of the security policy
Returns:
a reference to a security policy

makeXqueryRef

public static Ref makeXqueryRef(Ref parent,
                                String xqueryName)
Constructs a reference to an Xquery component

Parameters:
parent - the parent. This can be a folder or a project.
xqueryName - name of the Xquery
Returns:
a reference to an Xquery

makeMflRef

public static Ref makeMflRef(Ref parent,
                             String mflName)
Constructs a reference to an MFL component

Parameters:
parent - the parent. This can be a folder or a project.
mflName - name of the MFL
Returns:
a reference to an MFL

makeXsltRef

public static Ref makeXsltRef(Ref parent,
                              String xsltName)
Constructs a reference to an XSLT component

Parameters:
parent - the parent. This can be a folder or a project.
xsltName - name of the XSLT
Returns:
a reference to an XSLT

makeXmlSchemaRef

public static Ref makeXmlSchemaRef(Ref parent,
                                   String schemaName)
Constructs a reference to an xml schema component

Parameters:
parent - the parent. This can be a folder or a project.
schemaName - name of the xml schema
Returns:
a reference to an xml schema

makeWsdlRef

public static Ref makeWsdlRef(Ref parent,
                              String wsdlName)
Constructs a reference to a WSDL component

Parameters:
parent - the parent. This can be a folder or a project.
wsdlName - name of the WSDL
Returns:
a reference to a WSDL component

makeArchiveResourceRef

public static Ref makeArchiveResourceRef(Ref parent,
                                         String resourceName)
Constructs a reference to an archive resource

Parameters:
parent - project or folder
resourceName - the name of the resource
Returns:
a reference to an archive resource

makeAlertDestinationRef

public static Ref makeAlertDestinationRef(Ref parent,
                                          String name)
Constructs a reference to an AlertDestination

Parameters:
parent - the parent. This can be a folder or a project.
name - name of the alert destination
Returns:
a reference to a alert destination resource

makeMQConnectionRef

public static Ref makeMQConnectionRef(Ref parent,
                                      String mqConnectionName)
Factory method for creating a reference to a MQ connection resource

Parameters:
mqConnectionName - MQ connection local name
Returns:
a reference to MQ connection resource

makeCustomResourceRef

public static Ref makeCustomResourceRef(String typeId,
                                        Ref parent,
                                        String name)
Constructs a reference to a custom resource

Parameters:
typeId - provider id
parent - the parent. This can be a folder or a project.
name - name of the custom resource
Returns:
a reference to a custom resource

isUnderSystemProject

public static boolean isUnderSystemProject(Ref ref)
Checks if a a folder/resource is under System project

Parameters:
ref - folder or resource ref
Returns:

isGlobalOperationalResource

public static boolean isGlobalOperationalResource(Ref ref)