
com.marklogic.mgmt.template.security.UserTemplateBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ml-app-deployer Show documentation
Show all versions of ml-app-deployer Show documentation
Java client for the MarkLogic REST Management API and for deploying applications to MarkLogic
package com.marklogic.mgmt.template.security;
import com.marklogic.mgmt.api.security.User;
import com.marklogic.mgmt.template.GenericTemplateBuilder;
import java.util.ArrayList;
import java.util.List;
public class UserTemplateBuilder extends GenericTemplateBuilder {
public UserTemplateBuilder() {
super(User.class);
addDefaultPropertyValue("user-name", "CHANGEME-name-of-user");
addDefaultPropertyValue("description", "CHANGEME description of user");
addDefaultPropertyValue("password", "CHANGEME");
List list = new ArrayList<>();
list.add("rest-reader");
list.add("rest-writer");
addDefaultPropertyValue("role", list);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy