|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sharpster.common.SharedFile
A class for file management. The File objects contain a file attribute and attributes for storing information associated with the file.
Constructor Summary | |
SharedFile()
|
|
SharedFile(sharpster.common.SharedFile origFile)
Overloaded constructor, for deep copying of file objects. |
Method Summary | |
void |
addSharedToUser(java.lang.String user)
|
int |
getAccessRights()
Returns the access rights with which the files has been shared. |
java.lang.String |
getAccessRightString()
|
sharpster.common.Body |
getBody()
Returns the contents of the file. |
java.lang.String |
getFileName()
Returns the name of a file. |
java.lang.String |
getFullPath()
|
java.lang.String |
getPathInCVS()
Returns the path of the file in the CVS tree. |
sharpster.common.PluginData |
getPluginData()
Returns the plug-in information associated with the file share made to the specified user. |
java.lang.String |
getPluginDataString()
|
java.lang.String[] |
getSharedToUsers()
The users to whom the file is shared. |
java.lang.String |
getVersion()
Returns the version of the file in the CVS. |
boolean |
hasDeleteAccess(java.lang.String user)
|
boolean |
hasReadAccess(java.lang.String user)
|
boolean |
hasWriteAccess(java.lang.String user)
|
void |
setAccessDelete()
Sets the access rights delete for this file |
void |
setAccessRead()
Sets the access rights read for this file |
void |
setAccessRights(int access)
|
void |
setAccessWrite()
Sets the access rights write for this file |
void |
setBody(sharpster.common.Body body)
|
void |
setFileName(java.lang.String name)
Sets the name of a file. |
void |
setPathInCVS(java.lang.String path)
Sets the path of the file in the CVS tree. |
void |
setPluginData(sharpster.common.PluginData data)
Sets the plug-in information associated with the file share made to the specified user. |
void |
setSharedToUsers(java.lang.String[] users)
|
void |
setVersion(java.lang.String ver)
Sets the version of the file in the CVS. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SharedFile()
public SharedFile(sharpster.common.SharedFile origFile)
Method Detail |
public java.lang.String getFileName()
public void setFileName(java.lang.String name)
public java.lang.String getPathInCVS()
public void setPathInCVS(java.lang.String path)
public java.lang.String getFullPath()
public java.lang.String getVersion()
public void setVersion(java.lang.String ver)
public java.lang.String[] getSharedToUsers()
public void setSharedToUsers(java.lang.String[] users)
public void addSharedToUser(java.lang.String user)
public int getAccessRights()
public java.lang.String getAccessRightString()
public boolean hasReadAccess(java.lang.String user)
public boolean hasWriteAccess(java.lang.String user)
public boolean hasDeleteAccess(java.lang.String user)
public void setAccessRights(int access)
public void setAccessRead()
public void setAccessWrite()
public void setAccessDelete()
public java.lang.String getPluginDataString()
public sharpster.common.PluginData getPluginData()
public void setPluginData(sharpster.common.PluginData data)
public void setBody(sharpster.common.Body body)
public sharpster.common.Body getBody()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |