|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.core.resources.model.NullSiteController
public class NullSiteController
A controller that is doing nothing
| Constructor Summary | |
|---|---|
NullSiteController()
|
|
| Method Summary | |
|---|---|
void |
addOperationListener(ISiteOperationListener listener)
Add a listener to be notified of site operations |
void |
execute(ISiteOperation operation)
Execute the given operation on the given target resource The operation result status can be retrieved from the operation after the execution finished by calling ISiteOperation.getStatus()
If the operation is asynchronously executed then you may regsiter a
listener to be notified when the operation completes to be able to retrieve
the operation result status |
boolean |
exists(ISiteResource resource)
Check whether the given resource exists |
ISiteResource |
getChild(ISiteFolder container,
java.lang.String path)
Get the child resource having the given path relative to the container resource |
ISiteResource[] |
getChildren(ISiteFolder resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
Get the children for the given resource if any |
IResourceMetadata |
getMetadata(ISiteResource resource)
Get the metadata for the given resource |
ISiteOperationHandler |
getOperationHandler(java.lang.String opType)
Get the registered handler for the given operation type or null if none was registered |
ISite |
getSite()
Get the controlled site |
boolean |
isOperationEnabled(java.lang.String operationType)
Tests whether or not the controller is able to handle the given type of operation. |
void |
login(java.util.Map credentials)
Open a new session using given credentials |
void |
logout()
End current session |
void |
registerOperationHandler(java.lang.String opType,
ISiteOperationHandler handler)
Register a handler for the given operation type |
void |
removeOperationListener(ISiteOperationListener listener)
Remove the given listener if already registered or do nothing otherwise |
void |
setSite(ISite site)
Set the site to be controlled. |
void |
unregisterOperationHandler(java.lang.String opType)
Unregister the handler for the given operation if any |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullSiteController()
| Method Detail |
|---|
public void login(java.util.Map credentials)
throws org.eclipse.core.runtime.CoreException
ISiteController
login in interface ISiteControllercredentials - the credetials to use to login
org.eclipse.core.runtime.CoreException - if an errormoccurs or login failed
public void logout()
throws org.eclipse.core.runtime.CoreException
ISiteController
logout in interface ISiteControllerorg.eclipse.core.runtime.CoreExceptionpublic void addOperationListener(ISiteOperationListener listener)
ISiteController
addOperationListener in interface ISiteControllerlistener - the listener to register
public void execute(ISiteOperation operation)
throws org.eclipse.core.runtime.CoreException
ISiteControllerISiteOperation.getStatus()
If the operation is asynchronously executed then you may regsiter a
listener to be notified when the operation completes to be able to retrieve
the operation result status
execute in interface ISiteControlleroperation - the operation to execute
org.eclipse.core.runtime.CoreException - if an error occurs or resource is not existing
public boolean exists(ISiteResource resource)
throws org.eclipse.core.runtime.CoreException
ISiteController
exists in interface ISiteControllerresource - the resource to test
org.eclipse.core.runtime.CoreException - if an error occurs or resource is not existing
public ISiteResource getChild(ISiteFolder container,
java.lang.String path)
throws org.eclipse.core.runtime.CoreException
ISiteController
getChild in interface ISiteControllercontainer - the container resource from where to find the childpath - the relative path of the resource to find
org.eclipse.core.runtime.CoreException
public ISiteResource[] getChildren(ISiteFolder resource,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
ISiteController
getChildren in interface ISiteControllerresource - the resource to query for childrenmonitor - the monitor if progress monitorinf is required otherwise null
org.eclipse.core.runtime.CoreException - if an error occurs or resource is not existing
public IResourceMetadata getMetadata(ISiteResource resource)
throws org.eclipse.core.runtime.CoreException
ISiteController
getMetadata in interface ISiteControllerresource - the resource
org.eclipse.core.runtime.CoreException - if an error occurs or resource is not existingpublic ISiteOperationHandler getOperationHandler(java.lang.String opType)
ISiteController
getOperationHandler in interface ISiteControlleropType - the operation type
public boolean isOperationEnabled(java.lang.String operationType)
ISiteController
isOperationEnabled in interface ISiteControlleroperationType - the operation type
public ISite getSite()
ISiteController
getSite in interface ISiteControllerpublic void setSite(ISite site)
ISiteController
setSite in interface ISiteControllersite - the site to be controlled
public void registerOperationHandler(java.lang.String opType,
ISiteOperationHandler handler)
ISiteController
registerOperationHandler in interface ISiteControlleropType - the operation typehandler - the handler to register with the given operation typepublic void removeOperationListener(ISiteOperationListener listener)
ISiteController
removeOperationListener in interface ISiteControllerlistener - the listener to removepublic void unregisterOperationHandler(java.lang.String opType)
ISiteController
unregisterOperationHandler in interface ISiteControlleropType - the operation type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||