org.apache.slide.macro
Class MacroImpl
java.lang.Object
|
+--org.apache.slide.macro.MacroImpl
- All Implemented Interfaces:
- Macro
- public final class MacroImpl
- extends java.lang.Object
- implements Macro
Macro helper class.
- Version:
- $Revision: 1.21 $
- Author:
- Remy Maucherat
Method Summary |
void |
copy(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri)
Recursive copy with overwrite macro. |
void |
copy(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri,
MacroParameters parameters)
Copy macro. |
void |
delete(SlideToken token,
java.lang.String targetUri)
Recursive delete. |
void |
delete(SlideToken token,
java.lang.String targetUri,
MacroParameters parameters)
Delete macro. |
void |
move(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri)
Recursive move with overwrite macro. |
void |
move(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri,
MacroParameters parameters)
Move macro. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MacroImpl
public MacroImpl(Namespace namespace,
NamespaceConfig namespaceConfig,
Security securityHelper,
Content contentHelper,
Structure structureHelper,
Lock lockHelper)
- Constructor.
- Parameters:
namespace
- NamespacenamespaceConfig
- Namespace configurationcontentHelper
- Access to contentstructureHelper
- Access to structure
copy
public void copy(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri)
throws CopyMacroException,
DeleteMacroException
- Recursive copy with overwrite macro.
- Specified by:
copy
in interface Macro
- Parameters:
token
- Credentials tokensourceUri
- Uri of the sourcedestinationUri
- Uri of the destination- Throws:
CopyMacroException
- Generic Slide exception
copy
public void copy(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri,
MacroParameters parameters)
throws CopyMacroException,
DeleteMacroException
- Copy macro.
- Specified by:
copy
in interface Macro
- Parameters:
token
- Credentials tokensourceUri
- Uri of the sourcedestinationUri
- Uri of the destinationparameters
- Macro parameters- Throws:
CopyMacroException
- Generic Slide exception
move
public void move(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri)
throws CopyMacroException,
DeleteMacroException
- Recursive move with overwrite macro.
- Specified by:
move
in interface Macro
- Parameters:
token
- Credentials tokensourceUri
- Uri of the sourcedestinationUri
- Uri of the destination- Throws:
CopyMacroException
- Exception occured during copyDeleteMacroException
- Exception occured during deletion
move
public void move(SlideToken token,
java.lang.String sourceUri,
java.lang.String destinationUri,
MacroParameters parameters)
throws CopyMacroException,
DeleteMacroException
- Move macro.
- Specified by:
move
in interface Macro
- Parameters:
token
- Credentials tokensourceUri
- Uri of the sourcedestinationUri
- Uri of the destinationparameters
- Macro parameters- Throws:
CopyMacroException
- Exception occured during copyDeleteMacroException
- Exception occured during deletion
delete
public void delete(SlideToken token,
java.lang.String targetUri)
throws DeleteMacroException
- Recursive delete.
- Specified by:
delete
in interface Macro
- Parameters:
token
- Credentials tokentargetUri
- Uri of the object to delete- Throws:
DeleteMacroException
- Generic Slide exception
delete
public void delete(SlideToken token,
java.lang.String targetUri,
MacroParameters parameters)
throws DeleteMacroException
- Delete macro.
- Specified by:
delete
in interface Macro
- Parameters:
token
- Credentials tokentargetUri
- Uri of the sourceparameters
- Macro parameters, not used right now,
so it can be null- Throws:
DeleteMacroException
- Generic Slide exception