wt.ufid
Class FederatableServerHelper.RepositoryUtil

java.lang.Object
  extended bywt.ufid.FederatableServerHelper.RepositoryUtil
Enclosing class:
FederatableServerHelper

protected static final class FederatableServerHelper.RepositoryUtil
extends Object

Class to bundle query spec's for the Repository class *


Field Summary
private static String DOMAIN
           
 
Constructor Summary
protected FederatableServerHelper.RepositoryUtil()
           
 
Method Summary
static QuerySpec byGuidQuerySpec(String guid)
          This will form the query spec to get the local Repository Entry
private static Repository createLocalRepositoryReference()
           
private static Repository createRepository(Repository repos)
           
static QuerySpec isLocalQuerySpec()
          This will form the query spec to get the Repository via the GUID
private static String newGuidId()
           
static void persistRepository(Repository repos)
           
static QuerySpec repositoryQuerySpec(Repository repos)
          This will form the query spec to get the Repository, via the GUID if it is not empty; and by the "local" flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOMAIN

private static final String DOMAIN
Constructor Detail

FederatableServerHelper.RepositoryUtil

protected FederatableServerHelper.RepositoryUtil()
Method Detail

byGuidQuerySpec

public static final QuerySpec byGuidQuerySpec(String guid)
                                       throws WTException
This will form the query spec to get the local Repository Entry

Throws:
WTException

isLocalQuerySpec

public static final QuerySpec isLocalQuerySpec()
                                        throws WTException
This will form the query spec to get the Repository via the GUID

Throws:
WTException

repositoryQuerySpec

public static final QuerySpec repositoryQuerySpec(Repository repos)
                                           throws WTException
This will form the query spec to get the Repository, via the GUID if it is not empty; and by the "local" flag. Used to find whether the repository already exists, so we can decide whether to insert it.

Throws:
WTException

persistRepository

public static final void persistRepository(Repository repos)
                                    throws UfidException
Throws:
UfidException

createRepository

private static final Repository createRepository(Repository repos)
                                          throws UfidException
Throws:
UfidException

createLocalRepositoryReference

private static final Repository createLocalRepositoryReference()
                                                        throws WTException
Throws:
WTException

newGuidId

private static final String newGuidId()
                               throws UfidException
Throws:
UfidException