|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.browse.BrowseMetadataUtil
public class BrowseMetadataUtil
Utility class for browse metadata objects.
| Constructor Summary | |
|---|---|
BrowseMetadataUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getAbsolutePath(BrowseMetadataInterface browse)
Returns the absolute path for the given browse metadata object. |
static java.lang.String |
getCreatedBy(BrowseMetadataInterface browse)
Gets the name of the user that created the object. |
static ResponsibilityDetails |
getCreatedByDetails(BrowseMetadataInterface browse)
Gets the details of the user that created the object. |
static java.lang.String |
getDisplayName(BrowseMetadataInterface browse)
Returns the display name for a given browse metadata object if it exists. |
static java.lang.String |
getDisplayPath(BrowseMetadataInterface browse)
Returns the display path for the given browse metadata object. |
static java.util.Map<java.lang.String,java.lang.String> |
getExtendedAttributes(BrowseMetadataInterface browse)
Extract the extended attributes property from the given BrowseMetadataInterface. |
static java.util.List<java.lang.String> |
getKeywords(BrowseMetadataInterface browse)
Extract the keywords property from the given BrowseMetadataInterface as a list of
strings. |
static java.lang.String |
getModifiedBy(BrowseMetadataInterface browse)
Gets the name of the user that modified the object. |
static ResponsibilityDetails |
getModifiedByDetails(BrowseMetadataInterface browse)
Gets the details of the user that modified the object. |
static java.lang.String |
getPublicType(BrowseMetadataInterface browse)
Returns the public type value of the browse metadtata object, or null if not found. |
static java.util.List<ResponsibilityDetails> |
getResponsibilities(BrowseMetadataInterface browse)
Extract the responsibilities property from the given BrowseMetadataInterface. |
static com.sas.util.UsageVersion |
getUsageVersion(BrowseMetadataInterface browse)
The usage version of this object. |
| Constructor Detail |
|---|
public BrowseMetadataUtil()
| Method Detail |
|---|
public static java.lang.String getPublicType(BrowseMetadataInterface browse)
browse - the browse metadata object
public static com.sas.util.UsageVersion getUsageVersion(BrowseMetadataInterface browse)
browse - the browse metadata object
public static java.lang.String getDisplayName(BrowseMetadataInterface browse)
browse - the browse metadata object
public static java.util.List<java.lang.String> getKeywords(BrowseMetadataInterface browse)
BrowseMetadataInterface as a list of
strings. "Keywords" must have been fetched as part of the retrieval of the given browse
metadata object.
browse - the browse metadata object
public static java.util.Map<java.lang.String,java.lang.String> getExtendedAttributes(BrowseMetadataInterface browse)
BrowseMetadataInterface.
"Extensions" must have been fetched as part of the retrieval of the given
browse metadata object.
browse - the browse metadata object
public static java.lang.String getModifiedBy(BrowseMetadataInterface browse)
browse - the browse metadata object
public static ResponsibilityDetails getModifiedByDetails(BrowseMetadataInterface browse)
browse - the browse metadata object
public static java.lang.String getCreatedBy(BrowseMetadataInterface browse)
browse - the browse metadata object
public static ResponsibilityDetails getCreatedByDetails(BrowseMetadataInterface browse)
browse - the browse metadata object
public static java.util.List<ResponsibilityDetails> getResponsibilities(BrowseMetadataInterface browse)
BrowseMetadataInterface.
"ResponsibleParties" must have been fetched as part of the
retrieval of the given browse metadata object.
browse - the browse metadata object
public static java.lang.String getDisplayPath(BrowseMetadataInterface browse)
Note, callers must make sure the object's ancestors list (i.e. its parent folders) is
populated prior to calling this method. If a path cannot be constructed, a
null will be returned. To do so, a template containing the following information
can be used. The "MetadataType" element in the template will need to be substituted
with the metadata type of the browse object.
<MetadataType>
<Trees/>
</MetadataType>
<Tree>
<ParentTree/>
<SoftwareComponents/>
</Tree>
browse -
PathUrl.getDisplayPath()public static java.lang.String getAbsolutePath(BrowseMetadataInterface browse)
Note, callers must make sure the object's ancestors list (i.e. its parent folders) is
populated prior to calling this method. If a path cannot be constructed, a
null will be returned.
For more information, see getDisplayPath(BrowseMetadataInterface).
browse -
PathUrl.getAbsolutePath()
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||