com.sas.hls.resource.repository
Class WorkspaceFileInfo

java.lang.Object
  extended by com.sas.hls.resource.repository.WorkspaceFileInfo
All Implemented Interfaces:
Serializable

public class WorkspaceFileInfo
extends Object
implements Serializable

Provides the latest workspace file information related to synchronization state. This provides the user with information about the file that currently resides in the workspace, independent of what the user has synchronized to their workspace from the repository.

Since:
1.7
See Also:
RepositoryResourceService.getSynchronizationInfo(String), SynchronizationInfo.getWorkspaceFileInfo(), Serialized Form

Constructor Summary
WorkspaceFileInfo(String path, Date lastModifiedDate, long size)
          Initializing constructor which sets the values of all variables.
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 Date getLastModifiedDate()
          Returns the last date this workspace file was modified.
 String getPath()
          Returns the full path of this workspace file.
 long getSize()
          Returns the size of this workspace file (in bytes).
 int hashCode()
          Return a hash code value for the object.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkspaceFileInfo

public WorkspaceFileInfo(String path,
                         Date lastModifiedDate,
                         long size)
Initializing constructor which sets the values of all variables.

It is not intended or recommended that the consumer of the API construct these objects. They should only be retrieved from service calls such as RepositoryResourceService.getSynchronizationInfo(String).

Parameters:
path - The full path of the workspace file.
lastModifiedDate - The date the workspace file was last modified.
size - The size of the workspace file.
Method Detail

getPath

public String getPath()
Returns the full path of this workspace file.

Returns:
The full path of this workspace file.

getLastModifiedDate

public Date getLastModifiedDate()
Returns the last date this workspace file was modified.

Returns:
The last date this workspace file was modified.

getSize

public long getSize()
Returns the size of this workspace file (in bytes).

Returns:
The size of this workspace file (in bytes).

hashCode

public int hashCode()
Return a hash code value for the object.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright (c) 2014, SAS Institute Inc., Cary, NC, USA