ccc.migration
Class ResourceBean

java.lang.Object
  extended by ccc.migration.ResourceBean

public class ResourceBean
extends java.lang.Object

Resource bean for migration.

Author:
Civic Computing Ltd

Constructor Summary
ResourceBean(int contentId, java.lang.String type, java.lang.String name, java.lang.String displayTemplate, boolean published, int legacyVersion, boolean isSecure, java.lang.String title, java.lang.String useInIndex, java.lang.String templateDescription, java.util.Date expiryDate)
          Constructor.
 
Method Summary
 java.lang.String cleanTitle()
          Creates cleaned version of the title (or name if title is null).
 int contentId()
          Accessor method for contentId.
 java.lang.String displayTemplate()
          Accessor method for displayTemplate.
 java.util.Date expiryDate()
          Accessor.
 boolean isPublished()
          Accessor method for boolean value of published status.
 boolean isSecure()
          Accessor.
 int legacyVersion()
          Accessor method for legacyVersion.
 java.lang.String name()
          Accessor method for name.
 java.lang.String templateDescription()
          Accessor.
 java.lang.String title()
          Accessor.
 java.lang.String type()
          Accessor method for type.
 java.lang.String useInIndex()
          Accessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBean

public ResourceBean(int contentId,
                    java.lang.String type,
                    java.lang.String name,
                    java.lang.String displayTemplate,
                    boolean published,
                    int legacyVersion,
                    boolean isSecure,
                    java.lang.String title,
                    java.lang.String useInIndex,
                    java.lang.String templateDescription,
                    java.util.Date expiryDate)
Constructor.

Parameters:
contentId - contentId of resource
type - type of resource
name - name of resource
displayTemplate - displayTemplate of resource
published - published true for published resource
legacyVersion - Legacy version id of the resource
isSecure - Does the resource have security roles associated.
title - The title for the resource
useInIndex - The value of use_in_index.
templateDescription - The value of templateDescription.
Method Detail

type

public java.lang.String type()
Accessor method for type.

Returns:
type of resource

name

public java.lang.String name()
Accessor method for name.

Returns:
name of resource

displayTemplate

public java.lang.String displayTemplate()
Accessor method for displayTemplate.

Returns:
displayTemplate of resource

contentId

public int contentId()
Accessor method for contentId.

Returns:
contentId of resource

isPublished

public boolean isPublished()
Accessor method for boolean value of published status.

Returns:
True if resource has status PUBLISHED

legacyVersion

public int legacyVersion()
Accessor method for legacyVersion.

Returns:
Legacy version id of the resource

isSecure

public boolean isSecure()
Accessor.

Returns:
true if there are security constraints for this resource, false otherwise.

title

public java.lang.String title()
Accessor.

Returns:
The title as a string, may be null.

useInIndex

public java.lang.String useInIndex()
Accessor.

Returns:
The useInIndex as a string, may be null.

cleanTitle

public java.lang.String cleanTitle()
Creates cleaned version of the title (or name if title is null).

Returns:
The title.

templateDescription

public java.lang.String templateDescription()
Accessor.

Returns:
The template description as a string.

expiryDate

public java.util.Date expiryDate()
Accessor.

Returns:
The expiry date.


Copyright © 2010. All Rights Reserved.