*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.publish
Class DirectoryHierarchy
java.lang.Object
com.sas.services.publish.DirectoryHierarchy
@SASScope("ALL")
@BinaryCompatibilityOnly
public class DirectoryHierarchy
extends Object
The publishing framework directory hierarchy.
- Publishing
- Channels
- Subscribers
- Content Subscribers
For a SAS Metadata Repository the preceding directory hierarchy is parented as shown below:
- SoftwareComponent Name="BIP Service"
- Tree Name="System"
- Tree Name="Publishing"
- Tree Name="System"
This class only supports an OMIRepository.
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the folder serving as the node that parents publishing framework channels.static final StringDeprecated.static final StringThe name of the folder serving as the node that parents package subscribers and groups of package subscribers.static final StringThe name of the folder serving as the node that parents nodes representing the content subscribers and channels.static final StringThe name of the folder serving as the subscriber's node.static final StringThe name of the folder for an OMR Tree for System. -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded) Constructs an instance of a publishing framework directory hierarchy for the specified information repository. -
Method Summary
Modifier and TypeMethodDescriptionfinal FolderInterfaceGets the folder representing the channels folder for the publish/subscribe framework.final FolderInterfaceDeprecated.final FolderInterfaceGets the folder representing the package subscribers folder for the publish-subscribe framework.final FolderInterfaceGets the folder representing the publish-subscribe framework.final FolderInterfaceGets the folder representing the subscribers folder for the publish/subscribe framework.static final StringgetLocalizedFolderName(String folderName) Gets the localized name for the specified folder.static final FolderInterfacegetSystemFolder(RepositoryInterface repository) Queries the repository for the folder which is capable of parenting the publishing directory hierarchy.final booleanVerifies that a valid publishing framework directory hieararchy exists within the repository specified at construction time.static final booleanisValidDirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded) Verifies that a valid publishing framework directory hieararchy exists within the specified repository, optionally creating one if possible.static final booleanisValidDirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded, Map directoryMap) Verifies that a valid publishing framework directory hierarchy exists within the specified repository, optionally creating one if possible.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FOLDER_NAME_PUBLISHING
public static final String FOLDER_NAME_PUBLISHINGThe name of the folder serving as the node that parents nodes representing the content subscribers and channels.- See Also:
-
FOLDER_NAME_CHANNELS
public static final String FOLDER_NAME_CHANNELSThe name of the folder serving as the node that parents publishing framework channels.- See Also:
-
FOLDER_NAME_PACKAGESUBSCRIBERS
public static final String FOLDER_NAME_PACKAGESUBSCRIBERSThe name of the folder serving as the node that parents package subscribers and groups of package subscribers.- See Also:
-
FOLDER_NAME_EVENTSUBSCRIBERS
public static final String FOLDER_NAME_EVENTSUBSCRIBERSDeprecated.The name of the folder serving as the node that parents event subscribers and groups of event subscribers.- See Also:
-
FOLDER_NAME_SUBSCRIBERS
public static final String FOLDER_NAME_SUBSCRIBERSThe name of the folder serving as the subscriber's node.- See Also:
-
FOLDER_NAME_SYSTEM
public static final String FOLDER_NAME_SYSTEMThe name of the folder for an OMR Tree for System.- See Also:
-
-
Constructor Details
-
DirectoryHierarchy
public DirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded) throws InitializationException Constructs an instance of a publishing framework directory hierarchy for the specified information repository.- Parameters:
repository- Information repository to be verifiedisCreateDirectoriesAsNeeded-truewill cause any missing directories to be created if possible.falsewill not create any directories or modify the repository in any way.- Throws:
InitializationException- if an invalid information repository is specified.
-
-
Method Details
-
isValidDirectoryHierarchy
public final boolean isValidDirectoryHierarchy()Verifies that a valid publishing framework directory hieararchy exists within the repository specified at construction time. -
getLocalizedFolderName
public static final String getLocalizedFolderName(String folderName) Gets the localized name for the specified folder.- Parameters:
folderName- Name of a structure folder that is to be localized. Must be one of:- Returns:
- Localized folder name or the original folder name if a localized resource is not defined.
-
isValidDirectoryHierarchy
public static final boolean isValidDirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded) Verifies that a valid publishing framework directory hieararchy exists within the specified repository, optionally creating one if possible.- Parameters:
repository- Information repository to be verifiedisCreateDirectoriesAsNeeded-truewill cause any missing directories to be created if possible.falsewill create any directories or modify the repository in any way.- Returns:
trueif the repository contains a valid publish-subscribe directory hierarchy.
-
isValidDirectoryHierarchy
public static final boolean isValidDirectoryHierarchy(RepositoryInterface repository, boolean isCreateDirectoriesAsNeeded, Map directoryMap) Verifies that a valid publishing framework directory hierarchy exists within the specified repository, optionally creating one if possible.- Parameters:
repository- Information repository to be verifiedisCreateDirectoriesAsNeeded-truewill cause any missing directories to be created if possible.falsewill create any directories or modify the repository in any way.directoryMap- Map to be populated with FolderInterface objects keyed by folder name.- Returns:
trueif the repository contains a valid publish-subscribe directory hierarchy.
-
getSystemFolder
Queries the repository for the folder which is capable of parenting the publishing directory hierarchy.- Parameters:
repository- Information repository to be verified- Returns:
- Folder capable of parenting a the Publishing
directory hierarchy or
nullif one could not be found.
-
getFolderPublishing
Gets the folder representing the publish-subscribe framework.- Returns:
- Publishing folder or
nullif the folder was not accessible.
-
getFolderSubscribers
Gets the folder representing the subscribers folder for the publish/subscribe framework.- Returns:
- Publish/Subscribe subscribers folder or
nullif the folder was not accessible.
-
getFolderPackageSubscribers
Gets the folder representing the package subscribers folder for the publish-subscribe framework.- Returns:
- Publish-subscribe package subscribers folder or
nullif the folder was not accessible.
-
getFolderEventSubscribers
Deprecated.Gets the folder representing the event subscribers folder for the publish/subscribe framework.- Returns:
- Publish/Subscribe event subscribers folder or
nullif the folder was not accessible.
-
getFolderChannels
Gets the folder representing the channels folder for the publish/subscribe framework.- Returns:
- Publish/Subscribe channels folder or
nullif the folder was not accessible.
-