
com.marklogic.mgmt.api.security.ProtectedCollection 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.api.security;
import com.marklogic.mgmt.resource.ResourceManager;
import com.marklogic.mgmt.api.API;
import com.marklogic.mgmt.api.Resource;
import com.marklogic.mgmt.resource.security.ProtectedCollectionsManager;
import java.util.ArrayList;
import java.util.List;
public class ProtectedCollection extends Resource {
private String collection;
private List permission;
public ProtectedCollection() {
super();
}
public ProtectedCollection(API api, String collection) {
super(api);
this.collection = collection;
}
public void addPermission(Permission p) {
if (permission == null) {
permission = new ArrayList<>();
}
permission.add(p);
}
@Override
protected ResourceManager getResourceManager() {
return new ProtectedCollectionsManager(getClient());
}
@Override
protected String getResourceId() {
return collection;
}
public String getCollection() {
return collection;
}
public void setCollection(String collection) {
this.collection = collection;
}
public List getPermission() {
return permission;
}
public void setPermission(List permission) {
this.permission = permission;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy