NAME
Articulate::Navigation - determine valid locations
SYNOPSIS
components:
navigation:
Articulate::Navigation:
locations:
- zone/*
- zone/*/article/*
- user/*
- []
Provides validation for locations.
ATTRIBUTE
locations
Any location specifications configured in the locations attribute are valid locations for deposition and retrieval of items from storage.
METHODS
valid_location
do_something if $self->valid_location('zone/public')
do_something if $self->valid_location($location_object)
Returns the location if valid (matches one of the locspecs in locations
), undef otherwise.
define_locspec
$self->define_locspec('zone/*')
$self->define_locspec($location_specification)
Adds a new_location_specification to locations
, unless it is already there
undefine_locspec
$self->undefine_locspec('zone/*')
$self->undefine_locspec($location_specification)
Removes a new_location_specification from locations
.