org.alfresco.deployment.impl.server
Class DeployedFile

java.lang.Object
  extended by org.alfresco.deployment.impl.server.DeployedFile
All Implemented Interfaces:
java.io.Serializable

public class DeployedFile
extends java.lang.Object
implements java.io.Serializable

This is a record of a deployed file. It holds the pre-commit location of a file, the final location of the file, and the GUID of the file.

See Also:
Serialized Form

Constructor Summary
DeployedFile(FileType type, java.lang.String preLocation, java.lang.String path, java.lang.String guid, boolean create, boolean file)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getGuid()
          Get the GUID which uniquely identifies this file
 java.lang.String getPath()
          Get the path
 java.lang.String getPreLocation()
          The pre-location is where the file is stored temporarily prior to commit.
 FileType getType()
          Get the type
 int hashCode()
           
 boolean isCreate()
          Was this a new file or directory create
 boolean isFile()
          Is this a file or directory ?
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployedFile

public DeployedFile(FileType type,
                    java.lang.String preLocation,
                    java.lang.String path,
                    java.lang.String guid,
                    boolean create,
                    boolean file)
Parameters:
type -
preLocation - where the temporary file is stored
path - the final destination of the file.
guid -
create - true if this is a new file.
Method Detail

getPath

public java.lang.String getPath()
Get the path

Returns:
the path

getGuid

public java.lang.String getGuid()
Get the GUID which uniquely identifies this file

Returns:
the GUID

isCreate

public boolean isCreate()
Was this a new file or directory create

Returns:
true this is a new file or directory

isFile

public boolean isFile()
Is this a file or directory ?

Returns:
true this is a file, false this is a directory

getPreLocation

public java.lang.String getPreLocation()
The pre-location is where the file is stored temporarily prior to commit.

Returns:
the PreLocation

getType

public FileType getType()
Get the type

Returns:
the Type

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.