Class LayoutStandardReader
java.lang.Object
org.odpi.openmetadata.adapters.connectors.surveyaction.surveyfolder.LayoutStandardReader
LayoutStandardReader retrieves the layout standard for a directory from open metadata.
- The LayoutStandardRule is linked to the directory's FileFolder with GovernedBy.
- The DirectorySchemaType is linked to the FileFolder with Schema. If the folder has none, the DirectorySchemaType that the rule is ImplementedBy is used, so that one layout can be shared by many directories.
- The PathSegmentAttributes are linked to the DirectorySchemaType with AttributeForSchema, and to each other with NestedSchemaAttribute.
-
Constructor Summary
ConstructorsConstructorDescriptionLayoutStandardReader(OpenMetadataStore openMetadataStore, String serviceName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetLayoutStandard(String folderGUID) Retrieve the layout standard for a directory.
-
Constructor Details
-
LayoutStandardReader
Constructor.- Parameters:
openMetadataStore- access to open metadataserviceName- name of the calling service, for messages
-
-
Method Details
-
getLayoutStandard
public LayoutStandard getLayoutStandard(String folderGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Retrieve the layout standard for a directory.- Parameters:
folderGUID- unique identifier of the FileFolder for the directory- Returns:
- layout standard, or null if the directory has no layout
- Throws:
InvalidParameterException- one of the parameters is invalidPropertyServerException- problem connecting to the open metadata repositoriesUserNotAuthorizedException- insufficient accessIllegalArgumentException- one of the path segments has a name pattern that is not valid
-