|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Entry
An entry in a repository. Can be either a folder or a data entry (leaf). This is either a view on the local file system or a view on a remote repository.
Method Summary | |
---|---|
void |
delete()
Deletes the entry and its contents from the repository. |
Folder |
getContainingFolder()
Returns the folder containing this entry. |
java.util.Collection<javax.swing.Action> |
getCustomActions()
Returns custom actions to be displayed in this entry's popup menu. |
java.lang.String |
getDescription()
Returns a human readable description. |
RepositoryLocation |
getLocation()
A location, that can be used, e.g. as a parameter in the RepositorySource or which can be used
to locate the entry using RepositoryManager#resolve(String) . |
java.lang.String |
getName()
Returns the name, the last part of the location. |
java.lang.String |
getOwner()
Returns the user name of the owner. |
java.lang.String |
getType()
Returns a string describing the type: "folder", "data", "blob", or "process". |
boolean |
isReadOnly()
Returns true if this entry cannot be written to. |
boolean |
move(Folder newParent)
Needs to be implemented only for folders in the same repository. |
boolean |
move(Folder newParent,
java.lang.String newName)
Needs to be implemented only for folders in the same repository. |
boolean |
rename(java.lang.String newName)
Changes the name of the entry. |
boolean |
willBlock()
Subclasses can use this method to signal whether getting information from this entry will block the current thread, e.g. because information must be fetched over the network. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getType()
java.lang.String getOwner()
java.lang.String getDescription()
boolean isReadOnly()
boolean rename(java.lang.String newName) throws RepositoryException
RepositoryException
boolean move(Folder newParent) throws RepositoryException
RepositoryManager.move(RepositoryLocation, Folder, com.rapidminer.tools.ProgressListener)
using a sequence of copy and delete.
RepositoryException
boolean move(Folder newParent, java.lang.String newName) throws RepositoryException
RepositoryManager.move(RepositoryLocation, Folder, com.rapidminer.tools.ProgressListener)
using a sequence of copy and delete.
newName
- New name for moved entry. If moved entry shouldn't be renamed: newName=null.
RepositoryException
Folder getContainingFolder()
boolean willBlock()
RepositoryLocation getLocation()
RepositorySource
or which can be used
to locate the entry using RepositoryManager#resolve(String)
.
void delete() throws RepositoryException
RepositoryException
java.util.Collection<javax.swing.Action> getCustomActions()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |