cvm.model
Class Utilities

java.lang.Object
  extended by cvm.model.Utilities

public class Utilities
extends java.lang.Object


Constructor Summary
Utilities()
           
 
Method Summary
static void copyFileToDataDir(java.lang.String file)
           
static void copyFileToDir(java.lang.String fileStr, java.lang.String copyToDir)
           
static java.lang.String dataFileToURL(java.lang.String fileName)
           
static Member findContact(java.lang.String userName, User user)
           
static java.lang.String genFileToURL(java.lang.String fileName)
           
static java.lang.String getAppsDir()
           
static java.util.List getAppsSaved()
           
static java.util.List getCallFiles()
           
static java.lang.String getCallsFolder()
           
static java.lang.String getDataDir()
          This method looks into the user's default folder.
static java.util.List getDocumentFiles()
           
static java.lang.String getDocumentsDir()
           
static java.lang.String getExtFromURL(java.lang.String url)
           
static java.lang.String getFileNameFromFile(java.lang.String file)
           
static java.lang.String getFileNameFromURL(java.lang.String url)
           
static java.util.List getFiles(java.lang.String dirPath, boolean recursive)
           
static java.lang.String getGenFormDir()
           
static java.util.List getGenFormFiles()
           
static org.eclipse.swt.graphics.Image getIconImage(java.lang.String fileName)
           
static org.eclipse.swt.graphics.Image getLabelImage(java.lang.String str, java.lang.Class clazz)
           
static org.eclipse.swt.graphics.Image getProfileImage(java.lang.String str, java.lang.Class clazz)
           
static java.lang.String getSpecFormDir()
           
static java.util.List getSpecFormFiles()
           
static boolean isContactInContactList(java.lang.String userName, User user)
           
static boolean isMemberInMemberList(java.lang.String userName, java.util.List members)
           
static java.lang.String specFileToURL(java.lang.String fileName)
           
static java.lang.String URLToFile(java.lang.String urlFile)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utilities

public Utilities()
Method Detail

isContactInContactList

public static boolean isContactInContactList(java.lang.String userName,
                                             User user)

isMemberInMemberList

public static boolean isMemberInMemberList(java.lang.String userName,
                                           java.util.List members)

URLToFile

public static java.lang.String URLToFile(java.lang.String urlFile)

findContact

public static Member findContact(java.lang.String userName,
                                 User user)

copyFileToDataDir

public static void copyFileToDataDir(java.lang.String file)

dataFileToURL

public static java.lang.String dataFileToURL(java.lang.String fileName)

specFileToURL

public static java.lang.String specFileToURL(java.lang.String fileName)

genFileToURL

public static java.lang.String genFileToURL(java.lang.String fileName)

getAppsSaved

public static java.util.List getAppsSaved()

getAppsDir

public static java.lang.String getAppsDir()

getDataDir

public static java.lang.String getDataDir()
This method looks into the user's default folder. Usually My Documents folder.

Returns:
Path to default folder

getGenFormDir

public static java.lang.String getGenFormDir()

getSpecFormDir

public static java.lang.String getSpecFormDir()

getDocumentsDir

public static java.lang.String getDocumentsDir()

getCallsFolder

public static java.lang.String getCallsFolder()

getFiles

public static java.util.List getFiles(java.lang.String dirPath,
                                      boolean recursive)

getGenFormFiles

public static java.util.List getGenFormFiles()

getSpecFormFiles

public static java.util.List getSpecFormFiles()

getDocumentFiles

public static java.util.List getDocumentFiles()

getCallFiles

public static java.util.List getCallFiles()

getFileNameFromURL

public static java.lang.String getFileNameFromURL(java.lang.String url)

getExtFromURL

public static java.lang.String getExtFromURL(java.lang.String url)

getFileNameFromFile

public static java.lang.String getFileNameFromFile(java.lang.String file)

copyFileToDir

public static void copyFileToDir(java.lang.String fileStr,
                                 java.lang.String copyToDir)

getLabelImage

public static org.eclipse.swt.graphics.Image getLabelImage(java.lang.String str,
                                                           java.lang.Class clazz)

getProfileImage

public static org.eclipse.swt.graphics.Image getProfileImage(java.lang.String str,
                                                             java.lang.Class clazz)

getIconImage

public static org.eclipse.swt.graphics.Image getIconImage(java.lang.String fileName)