public abstract class LongAction<T extends LongActionKey> extends Object implements org.bimserver.plugins.Reporter, ProgressListener
| Constructor and Description |
|---|
LongAction(BimServer bimServer,
String username,
String userUsername,
Authorization authorization) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeActionState(org.bimserver.models.store.ActionState actiontState,
String title,
int progress) |
protected void |
done() |
void |
error(Throwable error) |
abstract void |
execute() |
void |
fillState(org.bimserver.models.store.LongActionState ds) |
org.bimserver.models.store.ActionState |
getActionState() |
Authorization |
getAuthorization() |
BimServer |
getBimServer() |
abstract String |
getDescription() |
List<String> |
getErrors() |
int |
getProgress() |
ProgressTopic |
getProgressTopic() |
GregorianCalendar |
getStart() |
org.bimserver.models.store.LongActionState |
getState() |
GregorianCalendar |
getStop() |
String |
getUserName() |
String |
getUserUsername() |
void |
info(String info) |
void |
init() |
void |
setProgressTopic(ProgressTopic progressTopic) |
void |
stop() |
void |
terminate() |
void |
updateProgress(String title,
int progress) |
void |
waitForCompletion() |
void |
warning(String warning) |
public LongAction(BimServer bimServer, String username, String userUsername, Authorization authorization)
public void init()
public void setProgressTopic(ProgressTopic progressTopic)
public ProgressTopic getProgressTopic()
protected void changeActionState(org.bimserver.models.store.ActionState actiontState,
String title,
int progress)
public GregorianCalendar getStop()
public org.bimserver.models.store.ActionState getActionState()
public String getUserUsername()
public Authorization getAuthorization()
public BimServer getBimServer()
public abstract String getDescription()
public abstract void execute()
public String getUserName()
protected void done()
public void waitForCompletion()
public GregorianCalendar getStart()
public void updateProgress(String title, int progress)
updateProgress in interface ProgressListenerpublic void terminate()
public int getProgress()
public void fillState(org.bimserver.models.store.LongActionState ds)
public org.bimserver.models.store.LongActionState getState()
public void error(Throwable error)
error in interface org.bimserver.plugins.Reporterpublic void warning(String warning)
warning in interface org.bimserver.plugins.Reporterpublic void info(String info)
info in interface org.bimserver.plugins.Reporterpublic void stop()
Copyright © 2019 OpenSource BIM. All rights reserved.