org.jasig.portal
Class UploadStatus

java.lang.Object
  extended by org.jasig.portal.UploadStatus

public class UploadStatus
extends Object


Field Summary
static int FAILURE
           
static int SUCCESS
           
 
Constructor Summary
UploadStatus(int status, long maxSize)
           
 
Method Summary
 String getFormattedMaxSize()
          Provides the max upload file size (in Megabytes) which are set in portal properties.
 int getMaxSize()
          Provides the max upload file size set in portal properties.
 int getStatus()
          Provides the status for the current upload.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS
See Also:
Constant Field Values

FAILURE

public static final int FAILURE
See Also:
Constant Field Values
Constructor Detail

UploadStatus

public UploadStatus(int status,
                    long maxSize)
Method Detail

getStatus

public int getStatus()
Provides the status for the current upload.

Returns:
the upload status as an int.

getMaxSize

public int getMaxSize()
Provides the max upload file size set in portal properties.

Returns:
the max upload file size as an int.

getFormattedMaxSize

public String getFormattedMaxSize()
Provides the max upload file size (in Megabytes) which are set in portal properties.

Returns:
java.lang.String - the max upload file size.


Copyright © 2010 Jasig. All Rights Reserved.