org.alfresco.filesys.repo.rules
Class ScenarioDoubleRenameShuffleInstance

java.lang.Object
  extended by org.alfresco.filesys.repo.rules.ScenarioDoubleRenameShuffleInstance
All Implemented Interfaces:
ScenarioInstance

public class ScenarioDoubleRenameShuffleInstance
extends java.lang.Object
implements ScenarioInstance

This is an instance of a "double rename shuffle" triggered by rename of a file to a special pattern file matching a specified pattern. (*.backup.fm) a) Existing file moved out of the way. X.fm to X.backup.fm b) New file moved into place. X.fm.C29 X.fm

If this filter is active then this is what happens. a) Existing file moved out of the way (Y to Z). Raname tracked. b) New file moved into place (X to Y). Scenario kicks in to change commands.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.filesys.repo.rules.ScenarioInstance
ScenarioInstance.Ranking
 
Constructor Summary
ScenarioDoubleRenameShuffleInstance()
           
 
Method Summary
 Command evaluate(Operation operation)
          Evaluate the next operation
 ScenarioInstance.Ranking getRanking()
          Get the Ranking
 long getTimeout()
           
 boolean isComplete()
          Is the scenario complete?
 void setRanking(ScenarioInstance.Ranking ranking)
           
 void setTimeout(long timeout)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScenarioDoubleRenameShuffleInstance

public ScenarioDoubleRenameShuffleInstance()
Method Detail

evaluate

public Command evaluate(Operation operation)
Evaluate the next operation

Specified by:
evaluate in interface ScenarioInstance
Parameters:
operation -

isComplete

public boolean isComplete()
Description copied from interface: ScenarioInstance
Is the scenario complete?

Specified by:
isComplete in interface ScenarioInstance
Returns:

getRanking

public ScenarioInstance.Ranking getRanking()
Description copied from interface: ScenarioInstance
Get the Ranking

Specified by:
getRanking in interface ScenarioInstance
Returns:

setRanking

public void setRanking(ScenarioInstance.Ranking ranking)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setTimeout

public void setTimeout(long timeout)

getTimeout

public long getTimeout()


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