org.openorb.trader.repository
Class Repository

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosTradingRepos.ServiceTypeRepositoryPOA
          extended by org.openorb.trader.repository.Repository
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.omg.CORBA.portable.InvokeHandler, ServiceTypeRepositoryOperations

public class Repository
extends ServiceTypeRepositoryPOA
implements org.apache.avalon.framework.logger.LogEnabled

This class provides the ServiceType repository implementation.

Author:
Jerome Daniel

Constructor Summary
Repository(org.omg.CORBA.Repository ir, java.lang.String connector_prefix, org.omg.CORBA.ORB orb)
           
 
Method Summary
 IncarnationNumber add_type(java.lang.String name, java.lang.String if_name, PropStruct[] props, java.lang.String[] super_types)
          Adds a service type description
 TypeStruct describe_type(java.lang.String name)
          Describes a service type
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
           
 TypeStruct fully_describe_type(java.lang.String name)
          Fully describes a service type ( includes inherited properties and all inheritances - direct and indirect - )
 org.apache.avalon.framework.logger.Logger getLogger()
           
 IncarnationNumber incarnation()
          Return the incarnation number
 java.lang.String[] list_types(SpecifiedServiceTypes which_types)
          Lists all available types
 void mask_type(java.lang.String name)
          This operation masks a type
 void remove_type(java.lang.String name)
          Removes a service type description
 void unmask_type(java.lang.String name)
          This operation unmarsk a type
 
Methods inherited from class org.omg.CosTradingRepos.ServiceTypeRepositoryPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repository

public Repository(org.omg.CORBA.Repository ir,
                  java.lang.String connector_prefix,
                  org.omg.CORBA.ORB orb)
Method Detail

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled

getLogger

public org.apache.avalon.framework.logger.Logger getLogger()

incarnation

public IncarnationNumber incarnation()
Return the incarnation number

Specified by:
incarnation in interface ServiceTypeRepositoryOperations
Returns:
the attribute value

add_type

public IncarnationNumber add_type(java.lang.String name,
                                  java.lang.String if_name,
                                  PropStruct[] props,
                                  java.lang.String[] super_types)
                           throws IllegalServiceType,
                                  ServiceTypeExists,
                                  InterfaceTypeMismatch,
                                  IllegalPropertyName,
                                  DuplicatePropertyName,
                                  ValueTypeRedefinition,
                                  UnknownServiceType,
                                  DuplicateServiceTypeName
Adds a service type description

Specified by:
add_type in interface ServiceTypeRepositoryOperations
Throws:
IllegalServiceType
ServiceTypeExists
InterfaceTypeMismatch
IllegalPropertyName
DuplicatePropertyName
ValueTypeRedefinition
UnknownServiceType
DuplicateServiceTypeName

remove_type

public void remove_type(java.lang.String name)
                 throws IllegalServiceType,
                        UnknownServiceType,
                        HasSubTypes
Removes a service type description

Specified by:
remove_type in interface ServiceTypeRepositoryOperations
Throws:
IllegalServiceType
UnknownServiceType
HasSubTypes

list_types

public java.lang.String[] list_types(SpecifiedServiceTypes which_types)
Lists all available types

Specified by:
list_types in interface ServiceTypeRepositoryOperations

describe_type

public TypeStruct describe_type(java.lang.String name)
                         throws IllegalServiceType,
                                UnknownServiceType
Describes a service type

Specified by:
describe_type in interface ServiceTypeRepositoryOperations
Throws:
IllegalServiceType
UnknownServiceType

fully_describe_type

public TypeStruct fully_describe_type(java.lang.String name)
                               throws IllegalServiceType,
                                      UnknownServiceType
Fully describes a service type ( includes inherited properties and all inheritances - direct and indirect - )

Specified by:
fully_describe_type in interface ServiceTypeRepositoryOperations
Throws:
IllegalServiceType
UnknownServiceType

mask_type

public void mask_type(java.lang.String name)
               throws IllegalServiceType,
                      UnknownServiceType,
                      AlreadyMasked
This operation masks a type

Specified by:
mask_type in interface ServiceTypeRepositoryOperations
Throws:
IllegalServiceType
UnknownServiceType
AlreadyMasked

unmask_type

public void unmask_type(java.lang.String name)
                 throws IllegalServiceType,
                        UnknownServiceType,
                        NotMasked
This operation unmarsk a type

Specified by:
unmask_type in interface ServiceTypeRepositoryOperations
Throws:
IllegalServiceType
UnknownServiceType
NotMasked