
edu.uiuc.ncsa.myproxy.oa4mp.server.admin.adminClient.AdminClientKeys Maven / Gradle / Ivy
package edu.uiuc.ncsa.myproxy.oa4mp.server.admin.adminClient;
import edu.uiuc.ncsa.oa4mp.delegation.common.storage.clients.BaseClientKeys;
import java.util.List;
/**
* Created by Jeff Gaynor
* on 10/20/16 at 12:53 PM
*/
public class AdminClientKeys extends BaseClientKeys {
public AdminClientKeys() {
super();
identifier("admin_id");
secret("secret");
}
String allowQDL = "allow_qdl";
String allowQDLCodeBlocks = "allow_qdl_code_blocks";
String config = "config";
String allowCustomIDs = "allow_custom_ids";
String generateIDs = "generate_ids";
String useTimestampsInIDs = "use_timestamps_in_ids";
String idStart = "id_start";
String issuer = "issuer";
String maxClients = "max_clients";
String notifyOnNewClientCreate="new_client_notify";
String vo="vo";
String voURI="vo_uri";
String listUsers = "list_users";
String listUsersInOtherClients = "list_users_other_clients";
public String listUsers(String... x) {
if (0 < x.length) listUsers= x[0];
return listUsers;
}
public String allowQDLCodeBlocks(String... x) {
if (0 < x.length) allowQDLCodeBlocks = x[0];
return allowQDLCodeBlocks;
}
public String useTimestampsInIds(String... x) {
if (0 < x.length) useTimestampsInIDs = x[0];
return useTimestampsInIDs;
}
public String allowCustomIDs(String... x) {
if (0 < x.length) allowCustomIDs = x[0];
return allowCustomIDs;
}
public String idHead(String... x) {
if (0 < x.length) idStart = x[0];
return idStart;
}
public String generateIDs(String... x) {
if (0 < x.length) generateIDs = x[0];
return generateIDs;
}
public String listUsersInOtherClients(String... x) {
if (0 < x.length) listUsersInOtherClients= x[0];
return listUsersInOtherClients;
}
public String notifyOnNewClientCreate(String... x) {
if (0 < x.length) notifyOnNewClientCreate= x[0];
return notifyOnNewClientCreate;
}
public String voURI(String... x) {
if (0 < x.length) voURI= x[0];
return voURI;
}
public String allowQDL(String... x) {
if (0 < x.length) allowQDL= x[0];
return allowQDL;
}
public String config(String... x) {
if (0 < x.length) config= x[0];
return config;
}
public String maxClients(String... x) {
if (0 < x.length) maxClients= x[0];
return maxClients;
}
public String issuer(String... x) {
if (0 < x.length) issuer = x[0];
return issuer;
}
public String vo(String... x) {
if (0 < x.length) vo = x[0];
return vo;
}
@Override
public List allKeys() {
List allKeys = super.allKeys();
allKeys.add(config());
allKeys.add(issuer());
allKeys.add(maxClients());
allKeys.add(vo());
allKeys.add(voURI());
allKeys.add(allowQDL());
allKeys.add(notifyOnNewClientCreate());
allKeys.add(listUsers());
allKeys.add(listUsersInOtherClients());
allKeys.add(idHead());
allKeys.add(allowCustomIDs());
allKeys.add(generateIDs());
allKeys.add(useTimestampsInIds());
return allKeys;
}
}