|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.content.base.AbstractContentObject.AbstractContentObjectModifier
net.sf.mmm.content.resource.base.AbstractContentResource.AbstractContentResourceModifier
net.sf.mmm.content.repository.base.AbstractContentRepository
net.sf.mmm.content.repository.base.AbstractCachedContentRepository
public abstract class AbstractCachedContentRepository
TODO: this class ...
| Constructor Summary | |
|---|---|
AbstractCachedContentRepository()
The constructor. |
|
| Method Summary | |
|---|---|
ContentObject |
get(ContentId id)
This method gets the ContentObject with the given id. |
int |
getClosedResourceCacheSize()
|
protected AbstractContentObject |
getFromCache(SmartId id)
|
int |
getLatestResourceCacheSize()
|
void |
initialize()
This method initializes this class. |
void |
move(ContentResource entity,
ContentResource newParent)
This method moves the given entity to the new
parent given by newParent. |
protected abstract AbstractContentResource |
readResource(SmartId id)
|
void |
rename(ContentObject entity,
String newName)
This method renames the given contentObject. |
void |
setClosedResourceCacheSize(int closedResourceCacheSize)
|
void |
setLatestResourceCacheSize(int latestResourceCacheSize)
|
| Methods inherited from class net.sf.mmm.content.repository.base.AbstractContentRepository |
|---|
cast, create, createInstance, createVersion, get, get, get, getContentModel, getRawObject, getRootFolder, save, setContentModel, setRootFolder |
| Methods inherited from class net.sf.mmm.content.resource.base.AbstractContentResource.AbstractContentResourceModifier |
|---|
setContentResourceParent |
| Methods inherited from class net.sf.mmm.content.base.AbstractContentObject.AbstractContentObjectModifier |
|---|
setContentObjectClassAccess, setContentObjectDeletedFlag, setContentObjectId, setContentObjectName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCachedContentRepository()
| Method Detail |
|---|
public int getClosedResourceCacheSize()
public void setClosedResourceCacheSize(int closedResourceCacheSize)
closedResourceCacheSize - the closedResourceCacheSize to setpublic int getLatestResourceCacheSize()
public void setLatestResourceCacheSize(int latestResourceCacheSize)
latestResourceCacheSize - the latestResourceCacheSize to set@PostConstruct public void initialize()
protected AbstractContentObject getFromCache(SmartId id)
throws ContentException
ContentException
public ContentObject get(ContentId id)
throws ContentException
ContentObject with the given id.
id - is the unique identifier of the requested object.
ContentException - if no object exists with the given ID.
protected abstract AbstractContentResource readResource(SmartId id)
throws ContentException
ContentException
public void move(ContentResource entity,
ContentResource newParent)
throws ContentException
entity to the new
parent given by newParent.
TODO: operate on object or resource?
entity - is the ContentResource to move.newParent - is the new parent where
to move the entity to.
ContentException - if the operation fails. This can have one of the
following reasons:
public void rename(ContentObject entity,
String newName)
throws ContentException
contentObject.
entity - is the ContentObject to rename.newName - is the new name of the
content-object.
ContentException - if the operation failed. This can have one of the
following reasons:
newName is illegal.entity can NOT be renamed (e.g. it is
a content-class
and the underlying content-model-service
does NOT support renaming).parent of the
entity already has a
child
named newName.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||