diff --git a/pom.xml b/pom.xml
index d055665..79d9479 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.lowcoder.plugin
lowcoder-plugin-api
- 2.1.0
+ 2.3.1
lowcoder-plugin-api
Lowcoder shared plugin interfaces
diff --git a/src/main/java/org/lowcoder/plugin/api/EndpointExtension.java b/src/main/java/org/lowcoder/plugin/api/EndpointExtension.java
index 002f64c..6d50dca 100644
--- a/src/main/java/org/lowcoder/plugin/api/EndpointExtension.java
+++ b/src/main/java/org/lowcoder/plugin/api/EndpointExtension.java
@@ -34,12 +34,7 @@
Method method() default Method.GET;
/**
- * @return True if this endpoint should be secured
+ * @return Endpoint will be secured by this SPeL expression. Empty expression means not secured.
*/
- boolean authenticated() default false;
-
- /**
- * @return Security SPeL expression (in case authenticated is set to true)
- */
- String expression() default "";
+ String authorize() default "";
}
diff --git a/src/main/java/org/lowcoder/plugin/api/event/LowcoderEvent.java b/src/main/java/org/lowcoder/plugin/api/event/LowcoderEvent.java
index a8d655a..c82c6c0 100644
--- a/src/main/java/org/lowcoder/plugin/api/event/LowcoderEvent.java
+++ b/src/main/java/org/lowcoder/plugin/api/event/LowcoderEvent.java
@@ -83,6 +83,23 @@ enum EventType {
APPLICATION_MOVE(Type.APPLICATION, Action.MOVE),
APPLICATION_RECYCLED(Type.APPLICATION, Action.RECYCLE),
APPLICATION_RESTORE(Type.APPLICATION, Action.RESTORE),
+ APPLICATION_PUBLISH(Type.APPLICATION, Action.PUBLISH),
+ APPLICATION_PERMISSION_CHANGE(Type.APPLICATION, Type.PERMISSION, Action.UPDATE),
+ APPLICATION_SHARING_CHANGE(Type.APPLICATION, Type.SHARING, Action.UPDATE),
+ APPLICATION_VERSION_CHANGE(Type.APPLICATION, Type.VERSION, Action.UPDATE),
+
+ /* Application events */
+ BUNDLE_VIEW(Type.BUNDLE, Action.VIEW),
+ BUNDLE_CREATE(Type.BUNDLE, Action.CREATE),
+ BUNDLE_DELETE(Type.BUNDLE, Action.DELETE),
+ BUNDLE_UPDATE(Type.BUNDLE, Action.UPDATE),
+ BUNDLE_MOVE(Type.BUNDLE, Action.MOVE),
+ BUNDLE_RECYCLED(Type.BUNDLE, Action.RECYCLE),
+ BUNDLE_RESTORE(Type.BUNDLE, Action.RESTORE),
+ BUNDLE_PUBLISH(Type.BUNDLE, Action.PUBLISH),
+ BUNDLE_PERMISSION_CHANGE(Type.BUNDLE, Type.PERMISSION, Action.UPDATE),
+ BUNDLE_SHARING_CHANGE(Type.BUNDLE, Type.SHARING, Action.UPDATE),
+ BUNDLE_VERSION_CHANGE(Type.BUNDLE, Type.VERSION, Action.UPDATE),
/* Folder events */
FOLDER_CREATE(Type.FOLDER, Action.CREATE),
@@ -186,7 +203,10 @@ enum Type {
PERMISSION,
LIBRARY_QUERY,
DATASOURCE,
- API_CALL
+ API_CALL,
+ BUNDLE,
+ VERSION,
+ SHARING
}
/**