Package com.polarion.alm.builder
Interface IWatchableRepositoryListener.IChangedResource
- Enclosing interface:
- IWatchableRepositoryListener
public static interface IWatchableRepositoryListener.IChangedResource
Changed resource.
- Version:
- $Revision$ $Date$
- Author:
- Stepan Roh, Polarion Software
-
Method Summary
Modifier and TypeMethodDescriptionlong
Last modification time.long
Last modification time.Resource location.boolean
Was resource created?boolean
isFolder()
Is resource folder?boolean
Was resource removed?
-
Method Details
-
getLocation
ILocation getLocation()Resource location.- Returns:
- location (not
null
)
-
isCreation
boolean isCreation()Was resource created?Mutually exclusive with
isRemoval()
.Note that repositories are not forced into creation detection (may report it as normal change).
- Returns:
true
if resource was created,false
otherwise
-
isRemoval
boolean isRemoval()Was resource removed?Mutually exclusive with
isCreation()
.- Returns:
true
if resource was removed,false
otherwise
-
isFolder
boolean isFolder()Is resource folder?Note that for removed resources this may or may not reflect reality.
- Returns:
true
if resource is folder,false
otherwise- See Also:
-
getLastModificationTime
long getLastModificationTime()Last modification time.- Returns:
- last modification time or
0
if unknown - See Also:
-
getFileSize
long getFileSize()Last modification time.- Returns:
- file size or
0
if unknown - See Also:
-