|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.domain.Entity
ccc.domain.ResourceEntity
ccc.domain.AliasEntity
public class AliasEntity
An alias resource. Models a symbolic link that points to another
ResourceEntity
.
Constructor Summary | |
---|---|
protected |
AliasEntity()
Constructor: for persistence only. |
|
AliasEntity(java.lang.String title,
ResourceEntity target)
Constructor. |
Method Summary | |
---|---|
Alias |
forCurrentRevision()
Create a snapshot for the current revision. |
Alias |
forSpecificRevision(int revNo)
Create a snapshot for the specified revision. |
Alias |
forWorkingCopy()
Create a snapshot for the working copy. |
ResourceType |
getType()
Query the type of this resource. |
ResourceEntity |
target()
Accessor for the target field. |
void |
target(ResourceEntity target)
Mutator for the target field. |
void |
toJson(Json json)
Convert to JSON. |
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 |
---|
protected AliasEntity()
public AliasEntity(java.lang.String title, ResourceEntity target)
title
- The title for the alias.target
- The target for the alias.Method Detail |
---|
public ResourceType getType()
getType
in class ResourceEntity
public void target(ResourceEntity target)
target
- The new target.public ResourceEntity target()
public void toJson(Json json)
toJson
in interface Jsonable
toJson
in class ResourceEntity
json
- The JSON object to write to.public final Alias forWorkingCopy()
public final Alias forCurrentRevision()
public final Alias forSpecificRevision(int revNo)
revNo
- The revision to create a snapshot for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |