|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.publish.DirectoryHierarchy
public class DirectoryHierarchy
The publishing framework directory hierarchy.
For a SAS Metadata Repository the preceding directory hierarchy is parented as shown below:
This class only supports an OMIRepository.
Field Summary | |
---|---|
static java.lang.String |
FOLDER_NAME_CHANNELS
The name of the folder serving as the node that parents publishing framework channels. |
static java.lang.String |
FOLDER_NAME_EVENTSUBSCRIBERS
The name of the folder serving as the node that parents event subscribers and groups of event subscribers. |
static java.lang.String |
FOLDER_NAME_PACKAGESUBSCRIBERS
The name of the folder serving as the node that parents package subscribers and groups of package subscribers. |
static java.lang.String |
FOLDER_NAME_PUBLISHING
The name of the folder serving as the node that parents nodes representing the different types of subscribers such as package and event subscribers. |
static java.lang.String |
FOLDER_NAME_SUBSCRIBERS
The name of the folder serving as the subscriber's node. |
static java.lang.String |
FOLDER_NAME_SYSTEM
The name of the folder for an OMR Tree for System. |
Constructor Summary | |
---|---|
DirectoryHierarchy(RepositoryInterface repository,
boolean isCreateDirectoriesAsNeeded)
Constructs an instance of a publishing framework directory hierarchy for the specified information repository. |
Method Summary | |
---|---|
FolderInterface |
getFolderChannels()
Gets the folder representing the channels folder for the publish/subscribe framework. |
FolderInterface |
getFolderEventSubscribers()
Gets the folder representing the event subscribers folder for the publish/subscribe framework. |
FolderInterface |
getFolderPackageSubscribers()
Gets the folder representing the package subscribers folder for the publish-subscribe framework. |
FolderInterface |
getFolderPublishing()
Gets the folder representing the publish-subscribe framework. |
FolderInterface |
getFolderSubscribers()
Gets the folder representing the subscribers folder for the publish/subscribe framework. |
static java.lang.String |
getLocalizedFolderName(java.lang.String folderName)
Gets the localized name for the specified folder. |
static FolderInterface |
getSystemFolder(RepositoryInterface repository)
Queries the repository for the folder which is capable of parenting the publishing directory hierarchy. |
boolean |
isValidDirectoryHierarchy()
Verifies that a valid publishing framework directory hieararchy exists within the repository specified at construction time. |
static boolean |
isValidDirectoryHierarchy(RepositoryInterface repository,
boolean isCreateDirectoriesAsNeeded)
Verifies that a valid publishing framework directory hieararchy exists within the specified repository, optionally creating one if possible. |
static boolean |
isValidDirectoryHierarchy(RepositoryInterface repository,
boolean isCreateDirectoriesAsNeeded,
java.util.Map directoryMap)
Verifies that a valid publishing framework directory hierarchy exists within the specified repository, optionally creating one if possible. |
Field Detail |
---|
public static final java.lang.String FOLDER_NAME_PUBLISHING
public static final java.lang.String FOLDER_NAME_CHANNELS
public static final java.lang.String FOLDER_NAME_PACKAGESUBSCRIBERS
public static final java.lang.String FOLDER_NAME_EVENTSUBSCRIBERS
public static final java.lang.String FOLDER_NAME_SUBSCRIBERS
public static final java.lang.String FOLDER_NAME_SYSTEM
Constructor Detail |
---|
public DirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded) throws InitializationException
repository
- Information repository to be verifiedisCreateDirectoriesAsNeeded
- true
will cause any
missing directories to be created if possible. false
will
not create any directories or modify the repository in any way.
InitializationException
- if an invalid information repository is
specified.Method Detail |
---|
public final boolean isValidDirectoryHierarchy()
public static final java.lang.String getLocalizedFolderName(java.lang.String folderName)
folderName
- Name of a structure folder that is to be localized. Must be
one of:
public static final boolean isValidDirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded)
repository
- Information repository to be verifiedisCreateDirectoriesAsNeeded
- true
will cause any
missing directories to be created if possible. false
will
create any directories or modify the repository in any way.
true
if the repository contains a valid publish-subscribe
directory hierarchy.public static final boolean isValidDirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded, java.util.Map directoryMap)
repository
- Information repository to be verifiedisCreateDirectoriesAsNeeded
- true
will cause any
missing directories to be created if possible. false
will
create any directories or modify the repository in any way.directoryMap
- Map to be populated with FolderInterface objects keyed by folder name.
true
if the repository contains a valid publish-subscribe
directory hierarchy.public static final FolderInterface getSystemFolder(RepositoryInterface repository)
repository
- Information repository to be verified
null
if one could not be found.public final FolderInterface getFolderPublishing()
null
if the folder was
not accessible.public final FolderInterface getFolderSubscribers()
null
if the
folder was not accessible.public final FolderInterface getFolderPackageSubscribers()
null
if the folder was not accessible.public final FolderInterface getFolderEventSubscribers()
null
if
the folder was not accessible.public final FolderInterface getFolderChannels()
null
if the
folder was not accessible.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |