Interface BrowseMetadataInterface
- All Known Implementing Classes:
BrowseMetadata
public interface BrowseMetadataInterface
- Since:
- 1.1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe map key to get the object's creation date.static final StringThe map key to get the object's description.static final StringThe map key to get the indicator if the object is a folder;static final StringThe map key to get the object's Information Service entity key.static final StringThe map key to get the object's keywords.static final StringThe map key to get an object's members, if it's a folder.static final StringThe map key to get the object's latest modified date.static final StringThe map key to get the object's name.static final StringThe map key to get the repository native type (e.g., "Transformation" rather than "Report".static final StringThe map key to get the Parent Tree assocation;static final StringThe map key to get the object's repository id.static final StringThe map key to get the object's smart object Java class.static final StringThe map key to get the object's smart object type (e.g., "Report" rather than "Transformation".static final StringThe map key to get SoftwareTrees from a SoftwareComponent.static final Stringthe map key to get the object's subfolders, if it's a folder.static final StringThe map key to get the Trees association. -
Method Summary
Modifier and TypeMethodDescriptionObjectget(String key) Get an arbitrary object from the map.longGet the date the metadata object was created.DateGet the date the metadata object was created.StringGet the object description.StringGet the Information Service entity key for this object.ListGet a List of Strings with the keywords that are associated with this object.ListGet the members if this is a folder.longGet the date the metadata object was most recently changed.DateGet the date the metadata object was most recently changed.StringgetName()Get the object name.StringGet the repository native type for this object.ListGet the list of parent objects.MapGet the Map with the raw data for this object.StringGet the object's repository ID.StringGet the "smart" type of this object.ListGet the subfolders if this is a folder.booleanReturns true if this object represents a folder in the metadata.StringtoString()Return a simple string representation of the object.
-
Field Details
-
NAME_KEY
static final String NAME_KEYThe map key to get the object's name.- See Also:
-
DESC_KEY
static final String DESC_KEYThe map key to get the object's description.- See Also:
-
CREATE_KEY
static final String CREATE_KEYThe map key to get the object's creation date. This should be a string-coded long.- See Also:
-
MODIFY_KEY
static final String MODIFY_KEYThe map key to get the object's latest modified date. This should be a string-coded long.- See Also:
-
KEYWORDS_KEY
static final String KEYWORDS_KEYThe map key to get the object's keywords.- See Also:
-
SMARTTYPE_KEY
static final String SMARTTYPE_KEYThe map key to get the object's smart object type (e.g., "Report" rather than "Transformation".- See Also:
-
SMARTCLASS_KEY
static final String SMARTCLASS_KEYThe map key to get the object's smart object Java class.- See Also:
-
NATIVETYPE_KEY
static final String NATIVETYPE_KEYThe map key to get the repository native type (e.g., "Transformation" rather than "Report".- See Also:
-
ISENTITYKEY_KEY
static final String ISENTITYKEY_KEYThe map key to get the object's Information Service entity key. This key can be used to fetch the "real" smart object.- See Also:
-
MEMBERS_KEY
static final String MEMBERS_KEYThe map key to get an object's members, if it's a folder.- See Also:
-
SUBFOLDERS_KEY
static final String SUBFOLDERS_KEYthe map key to get the object's subfolders, if it's a folder.- See Also:
-
SOFTWARETREES_KEY
static final String SOFTWARETREES_KEYThe map key to get SoftwareTrees from a SoftwareComponent. This is used to get subtrees from the root of the hierarchy.- See Also:
-
REPOSID_KEY
static final String REPOSID_KEYThe map key to get the object's repository id.- See Also:
-
ISAFOLDER_KEY
static final String ISAFOLDER_KEYThe map key to get the indicator if the object is a folder;- See Also:
-
TREES_KEY
static final String TREES_KEYThe map key to get the Trees association.- See Also:
-
PARENTTREE_KEY
static final String PARENTTREE_KEYThe map key to get the Parent Tree assocation;- See Also:
-
-
Method Details
-
getRawData
Map getRawData()Get the Map with the raw data for this object. This Map can be wrapped with a "smarter" object for accessing the data.- Returns:
- A map that represents simple attributes with String values, and associated objects as a List of Map objects.
-
get
Object get(String key) Get an arbitrary object from the map. This may be an attribute or an association. Attributes have String values, associations are represented by a List of BrowseMetadataInterface objects.- Parameters:
key- The name of the attribute or association.- Returns:
- A String representing an attribute value, or a List if key is an association.
-
getName
String getName()Get the object name.- Returns:
- The object name string.
-
getDescription
String getDescription()Get the object description.- Returns:
- The object description string. An empty string will be returned rather than null if no description exists.
-
getCreateDate
long getCreateDate()Get the date the metadata object was created.- Returns:
- A long representing the date and time the object was created.
-
getModifyDate
long getModifyDate()Get the date the metadata object was most recently changed.- Returns:
- A long with the latest modification date and time for the object.
-
getCreateDateAsDate
Date getCreateDateAsDate()Get the date the metadata object was created.- Returns:
- A long representing the date and time the object was created.
-
getModifyDateAsDate
Date getModifyDateAsDate()Get the date the metadata object was most recently changed.- Returns:
- A long with the latest modification date and time for the object.
-
getKeywords
List getKeywords()Get a List of Strings with the keywords that are associated with this object.- Returns:
- A List of String objects with the keywords.
-
getSmartType
String getSmartType()Get the "smart" type of this object. For instance, return "Report" rather than "Transformation". If the smart object type couldn't be determined, the string "Metadata" will be returned.- Returns:
- The smart object type of this object.
-
getNativeType
String getNativeType()Get the repository native type for this object. For instance, "Transformation" rather than "Report".- Returns:
- The repository specific type for this object.
-
getISEntityKey
String getISEntityKey()Get the Information Service entity key for this object. This key makes it easy to retrieve the "real" metadata object for this browse object so it can be updated.- Returns:
- The Information Service entity key.
-
isAFolder
boolean isAFolder()Returns true if this object represents a folder in the metadata. For data in the SAS Metadata Server, being a folder doesn't necessarily imply that it's part of the BIP Tree hierarchy.- Returns:
- True if the object is a folder, false otherwise.
-
getMembers
List getMembers()Get the members if this is a folder.- Returns:
- a List of BrowseMetadataInterface objects representing the members of the folder, or null if it's not a folder.
-
getSubfolders
List getSubfolders()Get the subfolders if this is a folder.- Returns:
- a List of BrowsemetadataInterface objects representing the subfolders of this folder, or null if it's not a folder.
-
getParents
List getParents()Get the list of parent objects. This will either be the element(s) of the ParentTree association, if that's found, or the Trees asociation if that's found.- Returns:
- A List of likely parent BrowseMetadataInterface objects. If none are found, an empty List is returned.
-
getReposId
String getReposId()Get the object's repository ID. The id by itself may or may not be sufficient to actually retrieve the object from the repository, but it should at least be a unique identifier for the object within the repository. * @return The String representation of the repository identifier. -
toString
String toString()Return a simple string representation of the object.- Overrides:
toStringin classObject- Returns:
- A String object representing the metadata object.
-