ccc.domain
Class Search

java.lang.Object
  extended by ccc.domain.Entity
      extended by ccc.domain.ResourceEntity
          extended by ccc.domain.Search
All Implemented Interfaces:
Lockable, SnapshotSupport<Resource>, Jsonable, java.io.Serializable

public class Search
extends ResourceEntity

A search that can return other results.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
protected Search()
          Constructor: for persistence only.
  Search(java.lang.String title)
          Constructor.
 
Method Summary
 Resource forCurrentRevision()
          Create a snapshot for the current revision.
 Resource forSpecificRevision(int revNo)
          Create a snapshot for the specified revision.
 Resource forWorkingCopy()
          Create a snapshot for the working copy.
 ResourceType getType()
          Query the type of this resource.
 
Methods inherited from class ccc.domain.ResourceEntity
addGroupPermission, addMetadata, addMetadatum, addUserPermission, as, canUnlock, clearGroupAcl, clearMetadata, clearMetadatum, clearUserAcl, computeCache, computeMetadata, computeTemplate, confirmLock, delete, getAbsolutePath, getAcl, getCacheDuration, getChangedBy, getCreatedBy, getDateChanged, getDateCreated, getDescription, getGroupAcl, getIndex, getLockedBy, getMetadata, getMetadatum, getName, getParent, getPublishedBy, getRoot, getTags, getTemplate, getTitle, getUserAcl, isDeleted, isIncludedInMainMenu, isIndexable, isLocked, isPublished, isReadableBy, isSecure, isVisible, isWriteableBy, lock, mapResource, mapResources, publish, setCacheDuration, setDateChanged, setDateCreated, setDescription, setDtoProps, setIncludedInMainMenu, setIndexPosition, setName, setTags, setTemplate, setTitle, toJson, undelete, unlock, unpublish
 
Methods inherited from class ccc.domain.Entity
equals, getId, getVersion, hashCode, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Search

protected Search()
Constructor: for persistence only.


Search

public Search(java.lang.String title)
Constructor.

Parameters:
title - The title for this resource.
Method Detail

getType

public ResourceType getType()
Query the type of this resource.

Specified by:
getType in class ResourceEntity
Returns:
The ResourceType that describes this resource.

forCurrentRevision

public final Resource forCurrentRevision()
Create a snapshot for the current revision.

Returns:
A read-only snapshot of the resource.

forSpecificRevision

public Resource forSpecificRevision(int revNo)
Create a snapshot for the specified revision.

Parameters:
revNo - The revision to create a snapshot for.
Returns:
A read-only snapshot of the resource.

forWorkingCopy

public Resource forWorkingCopy()
Create a snapshot for the working copy.

Returns:
A read-only snapshot of the resource.


Copyright © 2010. All Rights Reserved.