#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::License::US::PublicDomain;

use strict;
use warnings;
use Data::Dumper;
use Carp;
use Date::Calc qw( Date_to_Days Decode_Date_US );

use lib '/app/tools/common/lib';
use Common::Assert;
use Common::Util qw(decodeDateMysql);
use Common::Log;

use lib '/app/tools/rps/lib';
use RPS::License::BasePublicDomain;
use RPS::DB::Item::TrackLicense;

use RPS::License::US;
use base 'RPS::License::BasePublicDomain';

sub _getDBItem {
    my ( $self, $id ) = @_;
    return RPS::License::US::GetDBItem($id);
}

sub _type { return RPS::DB::Item::TrackLicense::kPublicDomain; }

sub _propertiesFromDBItem {
    my ( $self, $hrProperties, $dbItem ) = @_;

    $self->SUPER::_propertiesFromDBItem( $hrProperties, $dbItem );
    $hrProperties->{track_license_id} = $dbItem->track_license_id,;
}

sub _initProperties {
    my ( $self, $props ) = @_;

    $self->SUPER::_initProperties($props);

    $self->{TrackLicenseID} = Common::FormObject::Scalar->new( value => $props->{track_license_id}, readOnly => 1 );
}

sub createPublisher {

    # Just need a placeholder here so that things don't blow up.
}

###
1;    #
###
