Solstice::Resource - A superclass for all Solstice::Resource objects.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::Resource - A superclass for all Solstice::Resource objects.

SYNOPSIS

Top

  package Solstice::Resource;

DESCRIPTION

Top

Superclass

Solstice::Tree, Solstice::Model (Solstice::Model).

Export

No symbols exported.

Methods

new()

Constructor; should only be called by a subclass. Returns a Solstice::Resource object.

setName($name)

Sets the name of a resource, if it hasn't already been set.

isContainer()

Return TRUE if the resource is a container, FALSE otherwise.

isValidPath($path)

Return TRUE if the passed $path is valid, FALSE otherwise.

getPath()

Finds the path of the resource, recursing up the tree to generate it.

getOwner()

Optimized for loading owner object only when called on.

getCreationDate()

Returns a Solstice::DateTime that represents the date the Resource was first stored.

getModificationDate()

Returns a Solstice::DateTime that represents the date the Resource was last stored, with changes.

move($path)

Move the resource to parent $path.

delete()

Delete the resource.

clone()

Returns a clone of the resource, with the name stripped and a source path added.

store([$params])

Stores the resource. Brokers work off to various methods for moving, copying deleting, storing content, and so on.

equals($resource)

Returns TRUE if the passed $resource represents the same resource as $self, FALSE otherwise.

isValidName($name)

Returns TRUE if passed $name is valid for the resource, FALSE otherwise. The default implementation is very strict, and should probably be overridden in a subclass.

Private Methods

_initFromID()
_initFromHash(\%params)
_initEmpty()
_store()

Internal store, implemented by a subclass.

_copy()

The actual copy, called by store.

_move()

The actual move, called by store.

_delete()

The actual delete, called by store.

_getAccessorDefinition()

Modules Used

Solstice::Model (Solstice::Model).

Carp (Carp).

AUTHOR

Top

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: 851 $

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.