|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.repository.SourceRepositoryImpl
public class SourceRepositoryImpl
SourceRepository implementation.
| Field Summary |
|---|
| Fields inherited from interface org.apache.cocoon.components.repository.SourceRepository |
|---|
ROLE, STATUS_CONFLICT, STATUS_CREATED, STATUS_FORBIDDEN, STATUS_NO_CONTENT, STATUS_NOT_ALLOWED, STATUS_NOT_FOUND, STATUS_OK, STATUS_PRECONDITION_FAILED |
| Constructor Summary | |
|---|---|
SourceRepositoryImpl()
|
|
| Method Summary | |
|---|---|
int |
copy(String from,
String to,
boolean recurse,
boolean overwrite)
Copy a Souce from one location to the other. |
int |
makeCollection(String location)
Create a Source collection. |
int |
move(String from,
String to,
boolean recurse,
boolean overwrite)
Move a Source from one location to the other. |
int |
remove(String location)
Removes a Source and all of its descendants. |
int |
save(String in,
String out)
Saves a Source by either creating a new one or overwriting the previous one. |
void |
service(ServiceManager manager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceRepositoryImpl()
| Method Detail |
|---|
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceException
public int save(String in,
String out)
throws IOException,
SourceException
SourceRepository
save in interface SourceRepositoryin - the Source location to read from.out - the Source location to write to.
IOException
SourceException
public int makeCollection(String location)
throws IOException,
SourceException
SourceRepository
makeCollection in interface SourceRepositorylocation - the location of the source collection to create.
IOException
SourceException
public int remove(String location)
throws IOException,
SourceException
remove in interface SourceRepositorylocation - the location of the source to remove.
IOException
SourceException
public int move(String from,
String to,
boolean recurse,
boolean overwrite)
throws IOException,
SourceException
SourceRepository
move in interface SourceRepositoryfrom - the source location.to - the destination location.recurse - whether to move all the source descendents also.overwrite - whether to overwrite the destination source if it exists.
IOException
SourceException
public int copy(String from,
String to,
boolean recurse,
boolean overwrite)
throws IOException,
SourceException
SourceRepository
copy in interface SourceRepositoryfrom - the source location.to - the destination location.recurse - whether to move all the source descendents also.overwrite - whether to overwrite the destination source if it exists.
IOException
SourceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||