NAME

Bric::Biz::Asset::Formatting - AN object housing the formatting Assets

VERSION

$Revision: 1.27.2.2 $

DATE

$Date: 2002/09/27 03:31:55 $

SYNOPSIS

# Creation of Objects
$fa = Bric::Biz::Asset::Formatting->new( $init )
$fa = Bric::Biz::Asset::Formatting->lookup( { id => $id })
($fa_list || @fas) = Bric::Biz::Asset::Formatting->list( $param )
($faid_list || @fa_ids) = Bric::Biz::Asset::Formatting->list_ids( $param )

# get / set the data that is contained with in
$fa = $fa->set_data()
$data = $fa->get_data()

# get the file name that this will be deployed to
$file_name = $fa->get_file_name()

# get / set the date that this will activate
$date = $fa->get_deploy_date()
$fa = $fa->set_deploy_date($date)

# get the output channel that this is associated with  
$output_channel_id = $fa->get_output_channel__id()

# get the asset type that this is associated with 
$element__id = $fa->get_element__id()

# get the category that this is associated with
$category_id = $fa->get_category_id()

# Methods Inheriated from Bric::Biz::Asset

# Class Methods
$key_name = Bric::Biz::Asset->key_name()
%priorities = Bric::Biz::Asset->list_priorities()
$data = Bric::Biz::Asset->my_meths

# looking up of objects
($asset_list || @assets) = Bric::Biz::Asset->list( $param )

# General information
$asset       = $asset->get_id()
$asset       = $asset->set_name($name)
$name        = $asset->get_name()
$asset       = $asset->set_description($description)
$description = $asset->get_description()
$priority    = $asset->get_priority()
$asset       = $asset->set_priority($priority)

# User information
$usr_id      = $asset->get_user__id()
$modifier    = $asset->get_modifier()

# Version information
$vers        = $asset->get_version();
$vers_id     = $asset->get_version_id();
$current     = $asset->get_current_version();
$checked_out = $asset->get_checked_out()

# Expire Data Information
$asset       = $asset->set_expire_date($date)
$expire_date = $asset->get_expire_date()

# Desk stamp information
($desk_stamp_list || @desk_stamps) = $asset->get_desk_stamps()
$desk_stamp                        = $asset->get_current_desk()
$asset                             = $asset->set_current_desk($desk_stamp)

# Workflow methods.
$id    = $asset->get_workflow_id;
$obj   = $asset->get_workflow_object;
$asset = $asset->set_workflow_id($id);

# Access note information
$asset                 = $asset->add_note($note)
($note_list || @notes) = $asset->get_notes()

# Access active status
$asset            = $asset->deactivate()
$asset            = $asset->activate()
($asset || undef) = $asset->is_active()

$asset = $asset->save()

# returns all the groups this is a member of
($grps || @grps) = $asset->get_grp_ids()

DESCRIPTION

This has changed, it will need to be updated in a bit

INTERFACE

Constructors

$fa = Bric::Biz::Asset::Formatting->new( $initial_state )

new will only be called by Bric::Biz::Asset::Formatting's inherited classes

Supported Keys:

Throws:

"Method not implemented"

Side Effects:

NONE

Notes:

NONE

$formatting = Bric::Biz::Formatting->lookup( $param )

Returns an object that matches the parameters

Suported Keys

id

The unique id of formatting assets

version

Pass to request a specific version otherwise the most current will be returned

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

($fa_list || @fas) = Bric::Biz::Asset::Formatting->list( $criteria )

This will return a list of blessed objects that match the defined criteria

Supported Keys:

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

Destructors

$template->DESTROY

Dummy method to prevent wasting time trying to AUTOLOAD DESTROY.

Public Class Methods

($ids || @ids) = Bric::Biz::Asset::Formatting->list_ids($param)

Returns a list of ids that match the given parameters

Supported Keys

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

my $key_name = Bric::Biz::Asset::Formatting->key_name()

Returns the key name of this class.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$meths = Bric::Biz::Asset::Business->my_meths
(@meths || $meths_aref) = Bric::Biz::Asset::Business->my_meths(TRUE)

Returns an anonymous hash of instrospection data for this object. If called with a true argument, it will return an ordered list or anonymous array of intrspection data. The format for each introspection item introspection is as follows:

Each hash key is the name of a property or attribute of the object. The value for a hash key is another anonymous hash containing the following keys:

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

Public Instance Methods

$template = $template->set_deploy_date($date)
$template = $template->set_cover_date($date)

Sets the deployment date for this template

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$date = $template->get_deploy_date()
$date = $template->get_cover_date()

Returns the deploy date set upon this template

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$status = $template->get_deploy_status()
$template = $template->get_publish_status()

Returns the deploy status of the formatting asset

Throws:

NONE

Side Effects:

NONE

Notes:

this will return the deploy date

$template = $template->set_deploy_status()
$template = $template->set_publish_status()

sets the deploy status for this template

Throws:

NONE

Side Effect:

NONE

Notes:

This is really the deploy date

$uri = $template->get_uri

Returns the URI for the template. This differs from the file_name in that the latter uses the semantics of your local file system.w

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$file_name = $template->get_file_name()

Returns the file path of this template.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$name = $template->get_output_channel_name;

Return the name of the output channel.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$name = $template->get_output_channel;

Return the output channel associated with this Formatting asset.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$name = $template->get_element_name;

Return the name of the AssetType associated with this object.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$at_obj = $template->get_element

Return the AssetType object for this formatting asset.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->set_category_id($id)

Sets the category id for this formatting asset

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->get_cagetory_id

Get the category ID for this formatting asset.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->get_category

Returns the category object that has been associated with this formatting asset.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->get_cagetory_path

Returns the path from the category

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->get_cagetory_name

Get the category name of the category object associated with this formatting asset.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$template = $template->set_data( $data )

Set the main data for the formatting asset. In future incarnations there might be more data points that surround this, but not for now.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$data = $template->get_data()

Returns the chunk of text that makes up this template.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$format = $format->checkout($param);

This will create a flag to add a new record to the instance table

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

($fa || undef) = $fa->is_current()

Return whether this is the most current version or not.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->cancel()

This cancles a checkout. This will delete the record from the database

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->revert()

This will take an older version and copy its data to this version

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$fa = $fa->save()

this will update or create a record in the database

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

PRIVATE

_do_list( $class, $param, $ids)

Executes for list and list_ids

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

Private Instance Methods

$oc_obj = $self->_get_output_channel_object()

Returns the output channel object associated with this formatting object

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$at_obj = $self->_get_element_object()

Returns the asset type object that was associated with this formatting asset.

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$cat_obj = $self->_get_category_object()

Returns the category object that this is associated with

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$attr_obj = $self->_get_attribute_object()

Returns the attribute object that is associated with this formatting object

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$self = $self->_insert_formatting();

Inserts a row into the formatting table that represents a new formatting Asset

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$self = $self->_insert_instance()

Inserts a row associated with an instance of a formatting asset

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$self = $self->_update_formatting()

Updates the formatting table

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$self = $self->_update_instance()

Updates the row related to the instance of the formatting asset

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$self = $self->_delete_formatting()

Removes the row associated with this formatting asset from the database

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

$self = $self->_delete_instance()

Removes the instance specific row from the database

Throws:

NONE

Side Effects:

NONE

Notes:

NONE

my $uri = $self->_build_file_name($file_type, $name, $cat);

Builds the file name for a template. If $file_type, $name, or $cat are not passed, they'll be fetched (or for $file_type, computed) from $self.

Throws: NONE.

Side Effects: NONE.

Notes: NONE.

Private Functions

NONE

NOTES

NONE

AUTHOR

michael soderstrom - miraso@pacbell.net

SEE ALSO

Bric, Bric::Biz::Asset

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 579:

You forgot a '=back' before '=head2'

Around line 581:

'=item' outside of any '=over'

Around line 594:

You forgot a '=back' before '=head2'

Around line 598:

'=item' outside of any '=over'

Around line 738:

Expected '=item *'

Around line 740:

Expected '=item *'

Around line 742:

Expected '=item *'

Around line 744:

Expected '=item *'

Around line 746:

Expected '=item *'

Around line 748:

Expected '=item *'

Around line 750:

Expected '=item *'

Around line 879:

You forgot a '=back' before '=head2'

Around line 883:

'=item' outside of any '=over'

Around line 1559:

You forgot a '=back' before '=head2'

Around line 1563:

'=item' outside of any '=over'

Around line 1700:

You forgot a '=back' before '=head2'

Around line 1704:

'=item' outside of any '=over'