All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.marklogic.mgmt.template.security.UserTemplateBuilder Maven / Gradle / Ivy

Go to download

Java client for the MarkLogic REST Management API and for deploying applications to MarkLogic

There is a newer version: 5.0.0
Show newest version
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