Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Tuxedo-Admin-0.08/lib/Tuxedo/Admin/ImportedResource.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/Tuxedo-Admin-0.08/lib/Tuxedo/Admin/ImportedResource.pm


Tuxedo::Admin::ImportedResource


SYNOPSIS


  use Tuxedo::Admin;

  $admin = new Tuxedo::Admin;

  $imported_resource = $admin->imported_resource('BillingDetails'');

  $rc = $imported_resource->remove()

    if $imported_resource->exists();

  unless ($imported_resource->exists())

  {

    $rc = $imported_resource->add();

    die $admin->status() if ($rc < 0);

  }


DESCRIPTION

Provides methods to query, add, remove and update an imported resource.


INITIALISATION

Tuxedo::Admin::ImportedResource objects are not instantiated directly. Instead they are created via the imported_resource() method of a Tuxedo::Admin object.

Example:


  $imported_resource = $admin->imported_resource('BillingDetails');

This applies both for existing imported resources and for new imported resources that are being created.




=head1 METHODS

exists()

Used to determine whether or not the imported resource exists in the current Tuxedo application.


  if ($imported_resource->exists())

  {

    ...

  }

Returns true if the imported resource exists.

add()

Adds the imported resource to the current Tuxedo application.


  $rc = $imported_resource->add();

Croaks if the imported resource already exists or if the required dmresourcename parameter is not set. If $rc is negative then an error occurred. If successful then the exists() method will return true.

Example:


  $imported_resource = $admin->imported_resource('BillingDetails');

  

  unless ($imported_resource->exists())

  {

    $imported_resource->dmlaccesspoint('LOCAL1');

    $imported_resource->dmraccesspointlist('*');

    $rc = $imported_resource->add();

    $admin->print_status();

  }

update()

Updates the imported resource configuration with the values of the current object.


  $rc = $imported_resource->update();

Croaks if the imported resource does not exist or if the required dmresourcename parameter is not set. If $rc is negative then an error occurred.

remove()

Removes the imported resource from the current Tuxedo application.


  $rc = $imported_resource->remove();

Croaks if the imported resource does not exist or if the required dmresourcename parameter is not set. If $rc is negative then an error occurred.

Example:


  $imported_resource = $admin->imported_resource('BillingDetails');

  if ($imported_resource->exists())

  {

    $imported_resource->remove();

  }

get/set methods

The following methods are available to get and set the imported resource parameters. If an argument is provided then the parameter value is set to be the argument value. The value of the parameter is returned.

Example:


  # Get the remote name

  print $imported_resource->dmremotename(), "\n";

  # Set the remote name

  $imported_resource->dmremotename('BillDetails');
dmapi()
dmautotran()
dmblocktime()
dmcodepage()
dmconv()
dmfunction()
dminbuftype()
dmlaccesspoint()
dmload()
dmoutbuftype()
dmprio()
dmraccesspointlist()
dmremotename()
dmresourcename()
dmresourcetype()
dmroutingname()
dmte_function()
dmte_product()
dmte_qualifier()
dmte_rtqgroup()
dmte_rtqname()
dmte_target()
dmtrantime()
state()
Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy