|
Drools :: Eclipse :: Guvnor tools 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.guvnor.tools.utils.GuvnorMetadataUtils
public class GuvnorMetadataUtils
A set of utilities for dealing with (local) Guvnor metadata.
| Constructor Summary | |
|---|---|
GuvnorMetadataUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
addResourceToGuvnor(String repLoc,
String targetLoc,
org.eclipse.core.resources.IFile selectedFile)
Adds a resource to Guvnor. |
static void |
commitFileChanges(org.eclipse.core.resources.IFile selectedFile)
Commits changes to Guvnor. |
static org.eclipse.core.runtime.IPath |
createGuvnorMetadataLocation(String rootPath)
|
static org.eclipse.core.resources.IFile |
findGuvnorMetadata(org.eclipse.core.runtime.IPath resource)
Finds the local Guvnor metadata file associated with a given resource. |
static org.eclipse.core.resources.IFile |
findGuvnorMetadata(org.eclipse.core.resources.IResource resource)
Finds the local Guvnor metadata file associated with a given resource. |
static org.eclipse.core.resources.IFile |
getGuvnorControlledResource(org.eclipse.core.resources.IResource resource)
|
static GuvnorMetadataProps |
getGuvnorMetadata(org.eclipse.core.resources.IResource resource)
|
static File |
getGuvnorMetadataFile(String path,
String fname)
|
static String |
getGuvnorResourceProperty(org.eclipse.core.resources.IResource resource)
|
static boolean |
isGuvnorControlledResource(org.eclipse.core.resources.IResource resource)
|
static boolean |
isGuvnorMetadata(org.eclipse.core.resources.IResource resource)
|
static boolean |
isGuvnorResourceCurrent(org.eclipse.core.resources.IResource resource)
|
static GuvnorMetadataProps |
loadGuvnorMetadata(org.eclipse.core.resources.IFile mdFile)
|
static void |
markCurrentGuvnorResource(org.eclipse.core.resources.IResource resource)
|
static void |
markExpiredGuvnorResource(org.eclipse.core.resources.IResource resource)
|
static ResourceHistoryEntry[] |
parseHistoryProperties(Properties entryProps)
|
static void |
setGuvnorMetadataProps(org.eclipse.core.runtime.IPath controlledFile,
GuvnorMetadataProps mdProps)
|
static void |
writeGuvnorMetadataProps(File mdFile,
GuvnorMetadataProps mdProps)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GuvnorMetadataUtils()
| Method Detail |
|---|
public static org.eclipse.core.resources.IFile findGuvnorMetadata(org.eclipse.core.resources.IResource resource)
resource - The resource to locate metadata for.
public static boolean addResourceToGuvnor(String repLoc,
String targetLoc,
org.eclipse.core.resources.IFile selectedFile)
repLoc - The location of the Guvnor repositorytargetLoc - The location in Guvnor to add the resourceselectedFile - The resource to add
public static void commitFileChanges(org.eclipse.core.resources.IFile selectedFile)
selectedFile - The Guvnor controlled file with pending changespublic static org.eclipse.core.resources.IFile findGuvnorMetadata(org.eclipse.core.runtime.IPath resource)
resource - The resource path to locate metadata for.
public static boolean isGuvnorControlledResource(org.eclipse.core.resources.IResource resource)
public static GuvnorMetadataProps loadGuvnorMetadata(org.eclipse.core.resources.IFile mdFile)
throws Exception
Exception
public static GuvnorMetadataProps getGuvnorMetadata(org.eclipse.core.resources.IResource resource)
throws Exception
Exception
public static void writeGuvnorMetadataProps(File mdFile,
GuvnorMetadataProps mdProps)
throws Exception
Exception
public static void setGuvnorMetadataProps(org.eclipse.core.runtime.IPath controlledFile,
GuvnorMetadataProps mdProps)
throws Exception
Exception
public static org.eclipse.core.runtime.IPath createGuvnorMetadataLocation(String rootPath)
throws Exception
Exception
public static File getGuvnorMetadataFile(String path,
String fname)
public static org.eclipse.core.resources.IFile getGuvnorControlledResource(org.eclipse.core.resources.IResource resource)
throws Exception
Exceptionpublic static boolean isGuvnorMetadata(org.eclipse.core.resources.IResource resource)
public static void markCurrentGuvnorResource(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static void markExpiredGuvnorResource(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static String getGuvnorResourceProperty(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public static boolean isGuvnorResourceCurrent(org.eclipse.core.resources.IResource resource)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic static ResourceHistoryEntry[] parseHistoryProperties(Properties entryProps)
|
Drools :: Eclipse :: Guvnor tools 6.1.0.CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||