Class SVNPropertiesManager
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.SVNPropertiesManager
-
public class SVNPropertiesManager extends java.lang.Object
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Collection
NOT_ALLOWED_FOR_DIR
private static java.util.Collection
NOT_ALLOWED_FOR_FILE
-
Constructor Summary
Constructors Constructor Description SVNPropertiesManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map
computeAutoProperties(ISVNOptions options, java.io.File file, java.util.Map properties)
private static boolean
contains(java.lang.String[] values, java.lang.String value)
static void
deleteWCProperties(SVNAdminArea dir, java.lang.String name, boolean recursive)
static java.lang.String
determineEncodingByMimeType(java.lang.String mimeType)
private static java.util.Collection
getKeywords(java.lang.String value)
static SVNPropertyValue
getProperty(SVNWCAccess access, java.io.File path, java.lang.String propName)
static SVNPropertyValue
getWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName)
static java.util.Map
getWorkingCopyPropertyValues(java.io.File path, SVNEntry entry, java.lang.String propName, SVNDepth depth, boolean base)
private static void
handleInconsistentEOL(SVNException svne, java.lang.Object path)
private static boolean
hasSVNProperties(SVNProperties props)
static boolean
isValidPropertyName(java.lang.String name)
static SVNStatusType
mergeProperties(SVNWCAccess wcAccess, java.io.File path, SVNProperties baseProperties, SVNProperties diff, boolean baseMerge, boolean dryRun)
static java.util.Map
parseMergeInfo(java.io.File path, SVNEntry entry, boolean base)
static boolean
propNeedsTranslation(java.lang.String propertyName)
static void
recordWCMergeInfo(java.io.File path, java.util.Map mergeInfo, SVNWCAccess wcAccess)
static boolean
setProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean skipChecks)
static boolean
setWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean write)
static void
validateEOLProperty(java.lang.Object path, ISVNFileContentFetcher fetcher)
static void
validateMimeType(java.lang.String value)
private static void
validatePropertyName(java.lang.Object path, java.lang.String name, SVNNodeKind kind)
static SVNPropertyValue
validatePropertyValue(java.lang.Object path, SVNNodeKind kind, java.lang.String name, SVNPropertyValue value, boolean force, ISVNOptions options, ISVNFileContentFetcher fileContentFetcher)
static void
validateRevisionProperties(SVNProperties revisionProperties)
-
-
-
Method Detail
-
validateRevisionProperties
public static void validateRevisionProperties(SVNProperties revisionProperties) throws SVNException
- Throws:
SVNException
-
setWCProperty
public static boolean setWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean write) throws SVNException
- Throws:
SVNException
-
getWCProperty
public static SVNPropertyValue getWCProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) throws SVNException
- Throws:
SVNException
-
deleteWCProperties
public static void deleteWCProperties(SVNAdminArea dir, java.lang.String name, boolean recursive) throws SVNException
- Throws:
SVNException
-
getProperty
public static SVNPropertyValue getProperty(SVNWCAccess access, java.io.File path, java.lang.String propName) throws SVNException
- Throws:
SVNException
-
setProperty
public static boolean setProperty(SVNWCAccess access, java.io.File path, java.lang.String propName, SVNPropertyValue propValue, boolean skipChecks) throws SVNException
- Throws:
SVNException
-
mergeProperties
public static SVNStatusType mergeProperties(SVNWCAccess wcAccess, java.io.File path, SVNProperties baseProperties, SVNProperties diff, boolean baseMerge, boolean dryRun) throws SVNException
- Throws:
SVNException
-
computeAutoProperties
public static java.util.Map computeAutoProperties(ISVNOptions options, java.io.File file, java.util.Map properties) throws SVNException
- Throws:
SVNException
-
getWorkingCopyPropertyValues
public static java.util.Map getWorkingCopyPropertyValues(java.io.File path, SVNEntry entry, java.lang.String propName, SVNDepth depth, boolean base) throws SVNException
- Throws:
SVNException
-
recordWCMergeInfo
public static void recordWCMergeInfo(java.io.File path, java.util.Map mergeInfo, SVNWCAccess wcAccess) throws SVNException
- Throws:
SVNException
-
parseMergeInfo
public static java.util.Map parseMergeInfo(java.io.File path, SVNEntry entry, boolean base) throws SVNException
- Throws:
SVNException
-
isValidPropertyName
public static boolean isValidPropertyName(java.lang.String name) throws SVNException
- Throws:
SVNException
-
propNeedsTranslation
public static boolean propNeedsTranslation(java.lang.String propertyName)
-
getKeywords
private static java.util.Collection getKeywords(java.lang.String value)
-
contains
private static boolean contains(java.lang.String[] values, java.lang.String value)
-
validatePropertyValue
public static SVNPropertyValue validatePropertyValue(java.lang.Object path, SVNNodeKind kind, java.lang.String name, SVNPropertyValue value, boolean force, ISVNOptions options, ISVNFileContentFetcher fileContentFetcher) throws SVNException
- Throws:
SVNException
-
hasSVNProperties
private static boolean hasSVNProperties(SVNProperties props)
-
validatePropertyName
private static void validatePropertyName(java.lang.Object path, java.lang.String name, SVNNodeKind kind) throws SVNException
- Throws:
SVNException
-
validateMimeType
public static void validateMimeType(java.lang.String value) throws SVNException
- Throws:
SVNException
-
determineEncodingByMimeType
public static java.lang.String determineEncodingByMimeType(java.lang.String mimeType)
-
validateEOLProperty
public static void validateEOLProperty(java.lang.Object path, ISVNFileContentFetcher fetcher) throws SVNException
- Throws:
SVNException
-
handleInconsistentEOL
private static void handleInconsistentEOL(SVNException svne, java.lang.Object path) throws SVNException
- Throws:
SVNException
-
-