|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.metadata.FolderUtil
@SASScope(value="ALL") @BinaryCompatibilityOnly public class FolderUtil
| Constructor Summary | |
|---|---|
FolderUtil()
|
|
| Method Summary | |
|---|---|
static FolderInterface |
getSharedDataFolder(MetadataInterface object)
Returns the Shared Data folder in the repository for a specified object. |
static FolderInterface |
getSystemFolder(MetadataInterface object)
Returns the System folder in the repository for a specified object. |
static FolderInterface |
getTopLevelFolder(java.lang.String name,
MetadataInterface object)
Returns the Shared Data folder in the repository for a specified object. |
static boolean |
isDIStudioUngroupedFolder(FolderInterface folder)
Returns true if specified folder is the DI Studio Ungrouped folder. |
static boolean |
isFolder(PublicObjectInterface object)
Returns true if the public object is a folder, including whether or not it is a folder subtype. |
static boolean |
isFolder(java.lang.String publicType)
Returns true if the public type is used for a folder, including whether or not it is a folder subtype. |
static boolean |
isFolderNameUnique(FolderInterface parentFolder,
java.lang.String folderName)
Validate that the name of the folder is unique within the parent folder. |
static boolean |
isInProjectRepository(MetadataInterface mi,
FolderInterface folder)
Is the given object or its folder in a project repository. |
static boolean |
isSystemFolder(FolderInterface folder)
Returns true if the specified folder is the System folder within a repository. |
static FolderInterface |
makeDocumentsFolder(MetadataInterface object)
Returns the Documents folder in the repository for a specified object. |
static FolderInterface |
makeNotesFolder(MetadataInterface object)
Returns the Notes folder in the repository for a specified object. |
static FolderInterface |
makeOrphanedCubesFolder(MetadataInterface object)
Returns the Orphaned Cubes folder in the repository for a specified object. |
static FolderInterface |
makeOrphanedTablesFolder(MetadataInterface object)
Returns the Orphaned Tables folder in the repository for a specified object. |
static FolderInterface |
makeSharedDataFolder(MetadataInterface object)
Returns the Shared Data folder in the repository for a specified object. |
static FolderInterface |
makeSystemFolder(MetadataInterface object)
Returns the System folder in the repository for a specified object. |
static FolderInterface |
makeTopLevelFolder(java.lang.String name,
MetadataInterface object,
boolean systemFolder)
Returns a top level folder of the specified name for a specified object. |
static java.lang.String |
makeValidFolderName(FolderInterface folder,
MetadataNameConstraint constraint)
Makes a valid folder name. |
static java.lang.String |
makeValidFolderName(java.lang.String folderName,
FolderInterface parentFolder,
MetadataNameConstraint constraint)
Makes a valid folder name. |
static java.lang.String |
makeValidObjectName(FolderInterface folder,
MetadataInterface object)
Makes a valid object name for an object given a target folder. |
static java.lang.String |
makeValidObjectName(FolderInterface folder,
MetadataInterface object,
MetadataNameConstraint constraint)
Makes a valid object name for an object given a target folder. |
| Constructor Detail |
|---|
public FolderUtil()
| Method Detail |
|---|
public static FolderInterface getSharedDataFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface getSystemFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface makeSharedDataFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface makeDocumentsFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface makeNotesFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface makeSystemFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface getTopLevelFolder(java.lang.String name,
MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface makeTopLevelFolder(java.lang.String name,
MetadataInterface object,
boolean systemFolder)
throws ServiceException,
java.rmi.RemoteException
name - top level folder nameobject - systemFolder - if true a newly created top level folder will be flagged
as a system folder
ServiceException
java.rmi.RemoteException
public static java.lang.String makeValidObjectName(FolderInterface folder,
MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
folder - - target folderobject - - object to be named
ServiceException
java.rmi.RemoteException
public static java.lang.String makeValidObjectName(FolderInterface folder,
MetadataInterface object,
MetadataNameConstraint constraint)
throws ServiceException,
java.rmi.RemoteException
folder - - target folderobject - - object to be namedconstraint - - additional naming constraint
ServiceException
java.rmi.RemoteException
public static java.lang.String makeValidFolderName(FolderInterface folder,
MetadataNameConstraint constraint)
throws ServiceException,
java.rmi.RemoteException
folder - - folder object to be name validated and possibly renamedconstraint - - additional naming constraint
ServiceException
java.rmi.RemoteException
public static java.lang.String makeValidFolderName(java.lang.String folderName,
FolderInterface parentFolder,
MetadataNameConstraint constraint)
throws ServiceException,
java.rmi.RemoteException
folderName - the original name of the folderparentFolder - the parent folder to belong toconstraint - additional naming constraint
ServiceException
java.rmi.RemoteException
public static boolean isFolderNameUnique(FolderInterface parentFolder,
java.lang.String folderName)
throws ServiceException,
java.rmi.RemoteException
parentFolder - FolderInterface object representing the parent folder.folderName - The name of the folder to check as a unique name within the parent folder.
ServiceException - If a repository error occurs.
java.rmi.RemoteException - In the event of remote object failure.
FUTURE: We may want this method in the FolderInterface at some point but too late for that in 9.2
public static boolean isSystemFolder(FolderInterface folder)
throws ServiceException,
java.rmi.RemoteException
folder -
ServiceException
java.rmi.RemoteException
public static boolean isDIStudioUngroupedFolder(FolderInterface folder)
throws ServiceException,
java.rmi.RemoteException
folder -
ServiceException
java.rmi.RemoteException
public static boolean isFolder(PublicObjectInterface object)
throws ServiceException,
java.rmi.RemoteException
object - the public object
ServiceException
java.rmi.RemoteExceptionpublic static boolean isFolder(java.lang.String publicType)
publicType - the object's public type value
public static boolean isInProjectRepository(MetadataInterface mi,
FolderInterface folder)
throws ServiceException,
java.rmi.RemoteException
OMIRepositoryInterface and the repository type is a project, then we
return true.
mi -
true if object(s) in a project repository, false otherwise.
ServiceException
java.rmi.RemoteException
public static FolderInterface makeOrphanedCubesFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
public static FolderInterface makeOrphanedTablesFolder(MetadataInterface object)
throws ServiceException,
java.rmi.RemoteException
object -
ServiceException
java.rmi.RemoteException
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||