public class SnapshotView extends UCMView
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotView.Components |
static class |
SnapshotView.LoadRules2 |
class |
SnapshotView.UpdateInfo |
static class |
SnapshotView.ViewPrivateFileFilter |
Modifier and Type | Field and Description |
---|---|
static Pattern |
pattern_cache |
static Pattern |
pattern_catcs |
static String |
rx_co_file |
static String |
rx_ctr_file |
static String |
rx_keep_file |
static String |
rx_updt_file |
static Pattern |
rx_view_rebasing |
protected static Pattern |
rx_view_uuid |
protected static Pattern |
rx_view_uuid_file |
dynamic, path, rx_view_get_path, RX_VIEW_ROOT, storageLocation, viewtag
rx_attr_find
Constructor and Description |
---|
SnapshotView() |
SnapshotView(File viewroot) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
catcs(File viewRoot) |
static SnapshotView |
create(Stream stream,
File viewroot,
String viewtag)
Create a Snapshot view given a Stream, view root and a view tag.
|
static void |
createEnvironment(File viewroot) |
static void |
createEnvironment(File viewroot,
String viewtagsuffix) |
static SnapshotView |
get(File viewroot) |
List<String> |
getAllLoadLines() |
static HashMap<String,Boolean> |
getAllLoadStrings(File viewRoot) |
static HashMap<String,Boolean> |
getAllLoadStrings(List<String> consoleIn) |
File |
getCurrentViewRoot(File viewroot) |
String |
getPath() |
List<String> |
getReadOnlyLoadLines() |
static SnapshotView |
getSnapshotViewFromPath(File viewroot) |
Stream |
getStream() |
net.praqma.util.structure.Tuple<Stream,String> |
getStreamFromView(File vr) |
String |
getStreamFromView(String viewtag) |
File |
getViewRoot() |
static String |
getViewtag(File context) |
static boolean |
isSpecialFile(String file) |
static void |
regenerateViewDotDat(File dir,
String viewtag) |
void |
setAllLoadLines(List<String> allLoadLines) |
void |
setReadOnlyLoadLines(List<String> readOnlyLoadLines) |
Map<String,Integer> |
swipe(boolean excludeRoot,
String loadRules) |
Map<String,Integer> |
swipe(File viewroot,
boolean excludeRoot) |
Map<String,Integer> |
swipe(File viewroot,
boolean excludeRoot,
String loadrules) |
SnapshotView.UpdateInfo |
update(boolean swipe,
boolean generate,
boolean overwrite,
boolean excludeRoot,
SnapshotView.LoadRules2 loadRules)
TODO: This one should be used for new method of updating
|
static String |
viewrootIsValid(File viewroot)
Determine if the views view root is valid, returning its view tag
|
create, createViewFromGlobalStoragePath, end, end, equals, exists, getFullyQualifiedName, getStorageLocation, getView, getViews, getViewtag, hashCode, isDynamicView, load, remove, setActivity, setPath, setViewTag, start, start, toString, viewExists
createSimpleAttributeType, getAttribute, getAttributes, getAttributes, getAttributes, setAttribute, setAttribute
protected static final Pattern rx_view_uuid_file
protected static final Pattern rx_view_uuid
public static final Pattern rx_view_rebasing
public static final Pattern pattern_cache
public static final Pattern pattern_catcs
public static final String rx_co_file
public static final String rx_ctr_file
public static final String rx_keep_file
public static final String rx_updt_file
public SnapshotView()
public SnapshotView(File viewroot) throws UnableToInitializeEntityException, CleartoolException, ViewException, IOException
public static boolean isSpecialFile(String file)
public static SnapshotView create(Stream stream, File viewroot, String viewtag) throws ViewException, UnableToInitializeEntityException, CleartoolException, IOException
stream
- The Streamviewroot
- The root of this new viewviewtag
- The tag to useSnapshotView
as a result of the creationViewException
- Thrown on ClearTool error, view cannot be createdUnableToInitializeEntityException
- Thrown when a ClearTool error occursCleartoolException
- Thrown on ClearTool errorIOException
- File errors/other external non ClearTool errorspublic static void createEnvironment(File viewroot)
public static void regenerateViewDotDat(File dir, String viewtag) throws IOException, UnableToListViewsException
public File getViewRoot()
public Stream getStream() throws UnableToInitializeEntityException, CleartoolException, ViewException, IOException
getStream
in class UCMView
UnableToInitializeEntityException
CleartoolException
ViewException
IOException
public static String getViewtag(File context) throws CleartoolException
CleartoolException
public static SnapshotView getSnapshotViewFromPath(File viewroot) throws ClearCaseException, IOException
ClearCaseException
IOException
public static String viewrootIsValid(File viewroot) throws IOException, CleartoolException, ViewException
viewroot
- The view root (File
)IOException
- Thrown when the filesystem cannot find the files specifiedCleartoolException
- Thrown on ClearTool errorViewException
- Thrown on ClearTool error, the view was not createdpublic final net.praqma.util.structure.Tuple<Stream,String> getStreamFromView(File vr) throws UnableToInitializeEntityException, CleartoolException, ViewException, IOException
public File getCurrentViewRoot(File viewroot) throws ViewException
ViewException
public String getStreamFromView(String viewtag) throws ViewException
ViewException
public SnapshotView.UpdateInfo update(boolean swipe, boolean generate, boolean overwrite, boolean excludeRoot, SnapshotView.LoadRules2 loadRules) throws CleartoolException, ViewException
swipe
- Swipegenerate
- Generatedoverwrite
- OverviewexcludeRoot
- Exclude rootloadRules
- Load rulesSnapshotView.UpdateInfo
CleartoolException
- Thrown on ClearTool errorViewException
- Thrown on ClearTool errorpublic Map<String,Integer> swipe(File viewroot, boolean excludeRoot) throws CleartoolException
CleartoolException
public Map<String,Integer> swipe(File viewroot, boolean excludeRoot, String loadrules) throws CleartoolException
CleartoolException
public Map<String,Integer> swipe(boolean excludeRoot, String loadRules) throws CleartoolException
CleartoolException
public static SnapshotView get(File viewroot) throws IOException, ViewException, UnableToInitializeEntityException, CleartoolException
Copyright © 2016–2018. All rights reserved.