getTemplate

public final java.util.UUID getTemplate()
Compute the template for this resource.

 

Returns:
The selected template.

isVisible

public final boolean isVisible()
Is the resource visible.

 

Returns:
True if the resource is visible, false otherwise.

getType

public final ccc.types.ResourceType getType()
Accessor.

 

Returns:
The resource's type.

getDescription

public final java.lang.String getDescription()
Accessor for the file's description.

 

Returns:
The description as a string.

getName

public final ccc.types.ResourceName getName()
Accessor for name.

 

Returns:
The name for this resource, as a ResourceName.

getCacheDuration

public final ccc.types.Duration getCacheDuration()
Compute the cache duration for this resource.

 

Returns:
The computed duration.

getDateChanged

public final java.util.Date getDateChanged()
Accessor for the date the resource last changed.

 

Returns:
The date the resource last changed.

getDateCreated

public final java.util.Date getDateCreated()
Accessor for the date the resource was created.

 

Returns:
The date of creation.

getMetadatum

public final java.lang.String getMetadatum(java.lang.String key)
Retrieve metadata for this resource.

 

Parameters:
key - The key with which the datum was stored.
Returns:
The value of the datum. NULL if the datum doesn't exist.

getId

public final java.util.UUID getId()
Accessor.

 

Returns:
The resource's id.

isInMainMenu

public final boolean isInMainMenu()
Accessor for 'include in main menu' property.

 

Returns:
True if the resource should be included, false otherwise.

isLocked

public final boolean isLocked()
Accessor.

 

Returns:
True if the resource is locked, false otherwise.

isPublished

public final boolean isPublished()
Accessor.

 

Returns:
True if the resource is published, false otherwise.

getLockedBy

public final java.util.UUID getLockedBy()
Accessor.

 

Returns:
The user that locked the resource or false if the resource is not locked.

getMetadata

public final java.util.Map<java.lang.String,java.lang.String> getMetadata()
Accessor.

 

Returns:
The resource's metadata, as a map.

getParent

public final java.util.UUID getParent()
Accessor.

 

Returns:
The parent folder for the resource.

getPublishedBy

public final java.util.UUID getPublishedBy()
Accessor.

 

Returns:
The user that published the resource or null if the resource isn't published.

getTags

public final java.util.Set<java.lang.String> getTags()
Accessor for a resource's tags.

 

Returns:
The tags for this resource as a list.

getTitle

public final java.lang.String getTitle()
Accessor for the title.

 

Returns:
The content's title, as a string.

getAbsolutePath

public final java.lang.String getAbsolutePath()
Accessor.

 

Returns:
The absolute path to the resource.

setTitle

public void setTitle(java.lang.String title)
Mutator.

 

Parameters:
title - The title to set.

setId

public void setId(java.util.UUID id)
Mutator.

 

Parameters:
id - The id to set.

setName

public void setName(ccc.types.ResourceName name)
Mutator.

 

Parameters:
name - The name to set.

setDescription

public void setDescription(java.lang.String description)
Mutator.

 

Parameters:
description - The description to set.

setParent

public void setParent(java.util.UUID parent)
Mutator.

 

Parameters:
parent - The parent to set.

setType

public void setType(ccc.types.ResourceType type)
Mutator.

 

Parameters:
type - The type to set.

isSecure

public boolean isSecure()
Accessor.

 

Returns:
True if the resource requires security privileges to access; false otherwise.

setSecure

public void setSecure(boolean isSecure)
Mutator.

 

Parameters:
isSecure - The isSecure to set.

setAbsolutePath

public void setAbsolutePath(java.lang.String absolutePath)
Mutator.

 

Parameters:
absolutePath - The absolutePath to set.

setTags

public void setTags(java.util.Set<java.lang.String> tags)
Mutator.

 

Parameters:
tags - The tags to set.

setPublishedBy

public void setPublishedBy(java.util.UUID publishedBy)
Mutator.

 

Parameters:
publishedBy - The publishedBy to set.

setMetadata

public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Mutator.

 

Parameters:
metadata - The metadata to set.

setPublished

public void setPublished(boolean isPublished)
Mutator.

 

Parameters:
isPublished - The isPublished to set.

setLockedBy

public void setLockedBy(java.util.UUID lockedBy)
Mutator.

 

Parameters:
lockedBy - The lockedBy to set.

setLocked

public void setLocked(boolean isLocked)
Mutator.

 

Parameters:
isLocked - The isLocked to set.

setDateCreated

public void setDateCreated(java.util.Date dateCreated)
Mutator.

 

Parameters:
dateCreated - The dateCreated to set.

setDateChanged

public void setDateChanged(java.util.Date dateChanged)
Mutator.

 

Parameters:
dateChanged - The dateChanged to set.

setVisible

public void setVisible(boolean isVisible)
Mutator.

 

Parameters:
isVisible - The isVisible to set.

setTemplate

public void setTemplate(java.util.UUID template)
Mutator.

 

Parameters:
template - The template to set.

setCacheDuration

public void setCacheDuration(ccc.types.Duration cacheDuration)
Mutator.

 

Parameters:
cacheDuration - The cacheDuration to set.

setInMainMenu

public void setInMainMenu(boolean inMainMenu)
Mutator.

 

Parameters:
inMainMenu - The inMainMenu to set.

setRevision

public void setRevision(int revision)
Mutator.

 

Parameters:
revision - The revision to set.

getRevision

public int getRevision()
Accessor.

 

Returns:
Returns the revision.

isWorkingCopy

public boolean isWorkingCopy()
Accessor.

 

Returns:
True if the snapshot is for a working copy, false otherwise.

isCacheable

public boolean isCacheable()
Query.

 

Returns:
True if the resource is cache-able, false otherwise.