mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
feat(java): enable features tips for anonymous
This commit is contained in:
@ -114,6 +114,9 @@ public class FileModel {
|
||||
editorConfig.getUser().setImage(user.getAvatar() ? DocumentManager.getServerUrl(false)
|
||||
+ "/css/img/" + user.getId() + ".png" : null);
|
||||
|
||||
editorConfig.getCustomization().getFeatures()
|
||||
.setFeaturesTips(user.getId().equals("uid-0"));
|
||||
|
||||
if (user.getGoback() != null) {
|
||||
// write the absolute URL to the file location
|
||||
editorConfig.getCustomization().getGoback()
|
||||
@ -571,6 +574,7 @@ public class FileModel {
|
||||
|
||||
// customization parameters
|
||||
public class Customization {
|
||||
private Features features;
|
||||
private Goback goback;
|
||||
private Close close;
|
||||
private Boolean forcesave;
|
||||
@ -592,10 +596,15 @@ public class FileModel {
|
||||
comments = true;
|
||||
feedback = true;
|
||||
forcesave = false;
|
||||
features = new Features();
|
||||
goback = new Goback();
|
||||
close = new Close();
|
||||
}
|
||||
|
||||
public Features getFeatures() {
|
||||
return features;
|
||||
}
|
||||
|
||||
public Goback getGoback() {
|
||||
return goback;
|
||||
}
|
||||
@ -624,6 +633,18 @@ public class FileModel {
|
||||
return feedback;
|
||||
}
|
||||
|
||||
public class Features {
|
||||
private Boolean featuresTips;
|
||||
|
||||
public Boolean getFeaturesTips() {
|
||||
return featuresTips;
|
||||
}
|
||||
|
||||
public void setFeaturesTips(final Boolean featuresTipsParam) {
|
||||
this.featuresTips = featuresTipsParam;
|
||||
}
|
||||
}
|
||||
|
||||
public class Goback {
|
||||
private String url;
|
||||
private String text;
|
||||
|
||||
@ -85,6 +85,7 @@ public final class Users {
|
||||
add("View file without collaboration");
|
||||
add("Can’t submit forms");
|
||||
add("Can't refresh outdated file");
|
||||
add("Tour of tips when opening a document");
|
||||
}};
|
||||
|
||||
private static List<User> users = new ArrayList<User>() {{
|
||||
|
||||
Reference in New Issue
Block a user