Interface DirectoryEntry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
DirectoryEntry defines methods in common to both File
and Directory . The concatenated path and name are assumed to be
unique.
-
Method Summary
Modifier and TypeMethodDescriptionGets the created time of this entry.Gets the last access time of this entry.Gets the last modified time of this entry.getName()Gets the name of this entry.getOwner()Gets theAgentthat owns this entry.Gets theIdof theAgentthat owns this entry.getPath()Gets the full path of this entry.Gets the real path of this entry.booleanisAlias()Tests if this entry is an alias.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getName
String getName()Gets the name of this entry. The name does not include the path. If this entry represents an alias, the name of the alias is returned.- Returns:
- the entry name
- Compliance:
mandatory- This method must be implemented.
-
isAlias
boolean isAlias()Tests if this entry is an alias.- Returns:
trueif this is an alias,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPath
String getPath()Gets the full path of this entry. The path includes the name. Path components are separated by a /. If this entry represents an alias, the path to the alias is returned.- Returns:
- the path
- Compliance:
mandatory- This method must be implemented.
-
getRealPath
String getRealPath()Gets the real path of this entry. The path includes the name. Path components are separated by a /. If this entry represents an alias, the full path to the target file or directory is returned.- Returns:
- the path
- Compliance:
mandatory- This method must be implemented.
-
getOwnerId
Id getOwnerId()Gets theIdof theAgentthat owns this entry.- Returns:
- the
Agent Id - Compliance:
mandatory- This method must be implemented.
-
getOwner
Gets theAgentthat owns this entry.- Returns:
- the
Agent - Throws:
OperationFailedException- authentication service not available- Compliance:
mandatory- This method must be implemented.
-
getCreatedTime
DateTime getCreatedTime()Gets the created time of this entry.- Returns:
- the created time
- Compliance:
mandatory- This method must be implemented.
-
getLastModifiedTime
DateTime getLastModifiedTime()Gets the last modified time of this entry.- Returns:
- the last modified time
- Compliance:
mandatory- This method must be implemented.
-
getLastAccessTime
DateTime getLastAccessTime()Gets the last access time of this entry.- Returns:
- the last access time
- Compliance:
mandatory- This method must be implemented.
-