org.alfresco.filesys.repo.rules
Class ScenarioRenameShuffle

java.lang.Object
  extended by org.alfresco.filesys.repo.rules.ScenarioRenameShuffle
All Implemented Interfaces:
Scenario

public class ScenarioRenameShuffle
extends java.lang.Object
implements Scenario

The "Vi" rename shuffle is a sequence where a file is moved out of the way and then a new copy of the file put into place. a) Rename File to File~ b) Create File c) Delete File~


Constructor Summary
ScenarioRenameShuffle()
           
 
Method Summary
 ScenarioInstance createInstance(java.util.List currentInstances, Operation operation)
          Create a new ScenarioInstance
 java.lang.String getPattern()
           
 ScenarioInstance.Ranking getRanking()
           
 long getTimeout()
           
 void setPattern(java.lang.String pattern)
           
 void setRanking(ScenarioInstance.Ranking ranking)
           
 void setTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScenarioRenameShuffle

public ScenarioRenameShuffle()
Method Detail

createInstance

public ScenarioInstance createInstance(java.util.List currentInstances,
                                       Operation operation)
Description copied from interface: Scenario
Create a new ScenarioInstance

If the scenario is interested in the specified operation then return a new scenario instance.

Specified by:
createInstance in interface Scenario
Parameters:
currentInstances - the current instances of all scenarios.
operation - the operation to be performed
Returns:
the scenario instance or null if a new instance is not required.

setTimeout

public void setTimeout(long timeout)

getTimeout

public long getTimeout()

setPattern

public void setPattern(java.lang.String pattern)

getPattern

public java.lang.String getPattern()

setRanking

public void setRanking(ScenarioInstance.Ranking ranking)

getRanking

public ScenarioInstance.Ranking getRanking()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.