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 TypeMethodDescriptionlongLast modification time.longLast modification time.Resource location.booleanWas resource created?booleanisFolder()Is resource folder?booleanWas 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:
trueif resource was created,falseotherwise
-
isRemoval
boolean isRemoval()Was resource removed?Mutually exclusive with
isCreation().- Returns:
trueif resource was removed,falseotherwise
-
isFolder
boolean isFolder()Is resource folder?Note that for removed resources this may or may not reflect reality.
- Returns:
trueif resource is folder,falseotherwise- See Also:
-
getLastModificationTime
long getLastModificationTime()Last modification time.- Returns:
- last modification time or
0if unknown - See Also:
-
getFileSize
long getFileSize()Last modification time.- Returns:
- file size or
0if unknown - See Also:
-