Tivoli::AccessManager::Admin::Objectspace
my $resp; my $pd = Tivoli::AccessManager::Admin->new( password => 'N3ew0nk!' ); my $ospace = Tivoli::AccessManager::Admin::Objectspace->new( $pd, name => '/test', type => 'container', desc => 'Test objectspace', ); # Create the objectspace if it doesn't exist unless ( $ospace->exist ) { $resp = $ospace->create() } # Delete the objectspace $ospace->delete; # List all the objectspaces $resp = $ospace->list; print @{$resp->value}, "\n";
Tivoli::AccessManager::Admin::Objectspace provides the interface to the objectspace portion of the TAM APIs.
Creates a blessed Tivoli::AccessManager::Admin::Objectspace object and returns it.
An initialized Tivoli::AccessManager::Admin::Context object. Please note that, after the Tivoli::AccessManager::Admin::Objectspace object is created, you cannot change the context w/o destroying the object and recreating it.
The name of the objectspace to be created. I believe it needs to start with a /, but I don't know for certain.
The type of the objectspace. This can either be a numeric value as defined in the TAM Admin guide, or it may be a word. I have not defined the unused object types. The mapping between names and values looks like this: unknown => 0 domain => 1 file => 2 program => 3 dir => 4 junction => 5 webseal => 6 nonexist => 10 container => 11 leaf => 12 port => 13 app_container => 14 app_leaf => 15 mgmt_object => 16
A description.
A fully blessed Tivoli::AccessManager::Admin::Objectspace object.
You should know this by now, but all of the methods return a Tivoli::AccessManager::Admin::Response object. See the documentation for that module to learn how to coax the values out.
create creates a new objectspace. It can be used as a constructor. The parameters are only required in that instance.
See Tivoli::AccessManager::Admin::Objectspace::new for the discussion and description.
If used as a contructor, a fully blessed Tivoli::AccessManager::Admin::Objectspace object. Otherwise, the success or failure of the create operation.
Deletes an objectspace.
None
The success or failure of the operation.
Lists all of the objectspaces in the domain. This can be used as either an instance method ( $self=>list ) or a class method ( Tivoli::AccessManager::Admin::Objectspace=>list ).
A fully blessed Tivoli::AccessManager::Admin::Context object. This is required only when list is being used as a class method.
A list of all the objectspaces defined in the domain.
Returns true if the objectspace exists. This is a read only method and DOES NOT use a Tivoli::AccessManager::Admin::Response.
See Tivoli::AccessManager::Admin for the complete list of credits.
None known
Mik Firestone <mikfire@gmail.com>
Copyright (c) 2004-2011 Mik Firestone. All rights reserved. This program is free software; you can redistibute it and/or modify it under the same terms as Perl itself.
All references to TAM, Tivoli Access Manager, etc are copyrighted, trademarked and otherwise patented by IBM.
To install Tivoli::AccessManager::Admin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tivoli::AccessManager::Admin
CPAN shell
perl -MCPAN -e shell install Tivoli::AccessManager::Admin
For more information on module installation, please visit the detailed CPAN module installation guide.