Package com.sas.metadata.remote
Interface MdRepositoryUtil
- All Superinterfaces:
Remote
public interface MdRepositoryUtil
extends Remote
The interface defining the utility class for retrieving repository information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCustom repository typestatic final StringFoundation repository typestatic final StringProject repository type -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Destroy all memory allocated for object and release from RMIListgetDependentRepositories(String repositoryID) Gets a list of any dependent repositories that may exist the specified repository.StringgetRepositoryIDFromName(String name) Get the id for a repository given the repository nameStringgetRepositoryName(String repositoryID) Gets the name of a repository given its id.StringgetRepositoryType(String repositoryID) Gets the type of a repository given the repository id.ListgetUsedByRepositories(String repositoryID) Gets a list of repositories that use the specified repository.booleanhasDependentRepositories(String repositoryID) Returns true if the given repository has any dependent repositoriesbooleanisCustomType(String repositoryID) Returns true if the repository is a Custom repositorybooleanisDependentRepository(String repositoryID) Returns true if the given repository is a dependent repository.booleanisFoundationType(String repositoryID) Returns true if the repository is a Foundation repositorybooleanisProjectType(String repositoryID) Returns true if the repository is a Project repository
-
Field Details
-
FOUNDATION_REPOS
static final String FOUNDATION_REPOSFoundation repository type- See Also:
-
CUSTOM_REPOS
static final String CUSTOM_REPOSCustom repository type- See Also:
-
PROJECT_REPOS
static final String PROJECT_REPOSProject repository type- See Also:
-
-
Method Details
-
dispose
void dispose() throws RemoteExceptionDestroy all memory allocated for object and release from RMI- Throws:
RemoteException
-
getRepositoryType
Gets the type of a repository given the repository id. Repository types returned include Foundation, Custom, or Project. Anullis returned if the repository type cannot be found.- Parameters:
repositoryID- the repository id- Returns:
- the type of repository
- Throws:
MdExceptionRemoteException
-
getRepositoryIDFromName
Get the id for a repository given the repository name- Parameters:
name- the name of the repository- Returns:
- the repository id
- Throws:
MdExceptionRemoteException
-
getRepositoryName
Gets the name of a repository given its id.- Parameters:
repositoryID- the repository id- Returns:
- the name of a the repository
- Throws:
MdExceptionRemoteException
-
getDependentRepositories
Gets a list of any dependent repositories that may exist the specified repository.- Parameters:
repositoryID- the repository id- Returns:
- a list of dependent repository ids
- Throws:
MdExceptionRemoteException
-
getUsedByRepositories
Gets a list of repositories that use the specified repository.- Parameters:
repositoryID- the repository id- Returns:
- a list of used by repository ids
- Throws:
MdExceptionRemoteException
-
isDependentRepository
Returns true if the given repository is a dependent repository.- Parameters:
repositoryID- the repository id- Returns:
- true if the repository is a dependent
- Throws:
MdExceptionRemoteException
-
hasDependentRepositories
Returns true if the given repository has any dependent repositories- Parameters:
repositoryID- the repository id- Returns:
- true if there are dependent repositories
- Throws:
MdExceptionRemoteException
-
isFoundationType
Returns true if the repository is a Foundation repository- Parameters:
repositoryID- the repository id- Returns:
- true if the type is equal to Foundation, false otherwise
- Throws:
MdExceptionRemoteException
-
isCustomType
Returns true if the repository is a Custom repository- Parameters:
repositoryID- the repository id- Returns:
- true if the type is equal to Custom, false otherwise
- Throws:
MdExceptionRemoteException
-
isProjectType
Returns true if the repository is a Project repository- Parameters:
repositoryID- the repository id- Returns:
- true if the type is equal to Project, false otherwise
- Throws:
MdExceptionRemoteException
-