Interface IResourceProperties
public interface IResourceProperties
System properties of given resource.
The meaning of last changed in connection with resource
with older revision is dependent on implementation of
IRepositoryService
.
- Author:
- Stepan Roh, Polarion Software
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionUniversally accessible URI of this resource.long
File size (valid only forKIND_FILE
, garbage otherwise).Author of last change.Date of last change.Revision of last change.Absolute location with revision.Resource kind.boolean
Whether this resource has some custom properties set.
-
Field Details
-
KIND_FILE
resource kind - file- See Also:
-
KIND_FOLDER
resource kind - folder- See Also:
-
-
Method Details
-
getLocation
ILocation getLocation()Absolute location with revision.- Returns:
- location
-
getResourceKind
String getResourceKind()Resource kind. One of KIND_* constants (file or folder).- Returns:
- kind
-
getFileSize
long getFileSize()File size (valid only forKIND_FILE
, garbage otherwise).- Returns:
- file size
-
getLastChangedDate
Date getLastChangedDate()Date of last change.- Returns:
- change date (may be
null
)
-
getLastChangedRevision
String getLastChangedRevision()Revision of last change.- Returns:
- change revision (may be
null
)
-
getLastChangedAuthor
String getLastChangedAuthor()Author of last change.- Returns:
- change author (may be
null
)
-
hasCustomProperties
boolean hasCustomProperties()Whether this resource has some custom properties set.- Returns:
true
if it has some custom properties
-
getAccessibleURI
String getAccessibleURI()Universally accessible URI of this resource.May return
null
if there is no such URI available or not supported by storage.- Returns:
- URI (as a
String
ornull
-