Class CopyToolVerifier
- java.lang.Object
-
- org.oa4mp.server.admin.base.oauth2.myproxy.CopyToolVerifier
-
- Direct Known Subclasses:
OA2CopyToolVerifier
public class CopyToolVerifier extends Object
A tool to verify that after a copy, the store contents are identical.Created by Jeff Gaynor
on 11/15/13 at 12:33 PM
-
-
Constructor Summary
Constructors Constructor Description CopyToolVerifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIt(CopyTool adminTool, String[] args)
CopyTool
getCopyTool()
Override this if you need a different verifier instance.static void
main(String[] args)
void
printHelp()
void
say(String x)
void
saynoCR(String x)
boolean
verifyStore(String storeName, edu.uiuc.ncsa.security.core.Store<? extends edu.uiuc.ncsa.security.core.Identifiable> source, edu.uiuc.ncsa.security.core.Store<? extends edu.uiuc.ncsa.security.core.Identifiable> target)
boolean
verifyStores(org.oa4mp.server.api.ServiceEnvironmentImpl sEnv, org.oa4mp.server.api.ServiceEnvironmentImpl tEnv)
Run through all the stores in these environments.
-
-
-
Field Detail
-
copyTool
protected CopyTool copyTool
-
-
Method Detail
-
getCopyTool
public CopyTool getCopyTool()
Override this if you need a different verifier instance. This should just create one.- Returns:
-
main
public static void main(String[] args)
-
printHelp
public void printHelp()
-
verifyStores
public boolean verifyStores(org.oa4mp.server.api.ServiceEnvironmentImpl sEnv, org.oa4mp.server.api.ServiceEnvironmentImpl tEnv)
Run through all the stores in these environments. Call super when overriding this method.- Parameters:
sEnv
-tEnv
-- Returns:
-
verifyStore
public boolean verifyStore(String storeName, edu.uiuc.ncsa.security.core.Store<? extends edu.uiuc.ncsa.security.core.Identifiable> source, edu.uiuc.ncsa.security.core.Store<? extends edu.uiuc.ncsa.security.core.Identifiable> target)
-
say
public void say(String x)
-
saynoCR
public void saynoCR(String x)
-
-