_id stringlengths 2 7 | title stringlengths 3 140 | partition stringclasses 3
values | text stringlengths 73 34.1k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q179200 | CollaborationClient.getAllToByLoggedIn | test | public List<Collaboration> getAllToByLoggedIn() {
CollaborationListing collaborationListing = new CollaborationListing();
if(this.serviceTicket != null) {
collaborationListing.setServiceTicket(this.serviceTicket);
}
return new CollaborationListing(this.postJson(
... | java | {
"resource": ""
} |
q179201 | ABaseFieldClient.getMetaDataForDecimalAs | test | protected String getMetaDataForDecimalAs(
String metaDataPrefixParam,
double minParam,
double maxParam,
double stepFactorParam,
String prefixParam
) {
StringBuffer returnBuffer = new StringBuffer();
if (metaDataPrefixParam != null && !metaDataPrefixParam.isEmpty()) {
returnBuffer.append(metaData... | java | {
"resource": ""
} |
q179202 | UserClient.changePasswordForLoggedInUser | test | public User changePasswordForLoggedInUser(
String existingPasswordParam,
String newPasswordParam,
String confirmNewPasswordParam) {
User toChangePasswordFor = new User();
if(this.serviceTicket != null) {
toChangePasswordFor.setServiceTicket(this.serviceTic... | java | {
"resource": ""
} |
q179203 | UserClient.getAllUsers | test | public UserListing getAllUsers()
{
UserListing userToGetInfoFor = new UserListing();
if(this.serviceTicket != null)
{
userToGetInfoFor.setServiceTicket(this.serviceTicket);
}
try {
return new UserListing(this.postJson(
userToGetIn... | java | {
"resource": ""
} |
q179204 | UserClient.getGravatarForEmail | test | public byte[] getGravatarForEmail(
String emailAddressParam,
int sizeParam)
{
try {
JSONObject gravatarJSONObj =
this.getJson(
WS.Path.User.Version1.getGravatarByEmail(
emailAddressParam, ... | java | {
"resource": ""
} |
q179205 | UserClient.getGravatarForUser | test | public byte[] getGravatarForUser(User userParam, int sizeParam)
{
if(userParam == null)
{
return null;
}
try {
JSONObject gravatarJSONObj = this.postJson(
userParam,
WS.Path.User.Version1.getGravatarByUs... | java | {
"resource": ""
} |
q179206 | Field.populateFromElasticSearchJson | test | @Override
@XmlTransient
public void populateFromElasticSearchJson(
JSONObject jsonObjectParam, List<Field> formFieldsParam) throws JSONException {
throw new FluidElasticSearchException(
"Method not implemented. Make use of 'populateFromElasticSearchJson(JSONObject jsonObjectParam)' method.");
} | java | {
"resource": ""
} |
q179207 | Field.getElasticSearchFieldType | test | @XmlTransient
public String getElasticSearchFieldType()
{
Type fieldType = this.getTypeAsEnum();
if(fieldType == null)
{
return null;
}
//Get the fieldType by Fluid field fieldType...
switch (fieldType)
{
case ParagraphText:
return ElasticSearchType.TEXT;
case Text:
String metaData =... | java | {
"resource": ""
} |
q179208 | FlowStepClient.createFlowStep | test | public FlowStep createFlowStep(FlowStep flowStepParam)
{
if(flowStepParam != null && this.serviceTicket != null)
{
flowStepParam.setServiceTicket(this.serviceTicket);
}
return new FlowStep(this.putJson(
flowStepParam, WS.Path.FlowStep.Version1.flowStepCre... | java | {
"resource": ""
} |
q179209 | FlowStepClient.updateFlowStep | test | public FlowStep updateFlowStep(FlowStep flowStepParam)
{
if(flowStepParam != null && this.serviceTicket != null)
{
flowStepParam.setServiceTicket(this.serviceTicket);
}
return new FlowStep(this.postJson(
flowStepParam, WS.Path.FlowStep.Version1.flowStepUp... | java | {
"resource": ""
} |
q179210 | FlowStepClient.getFlowStepById | test | public FlowStep getFlowStepById(
Long flowStepIdParam, String flowStepTypeParam)
{
FlowStep flowStep = new FlowStep(flowStepIdParam);
flowStep.setFlowStepType(flowStepTypeParam);
if(this.serviceTicket != null)
{
flowStep.setServiceTicket(this.serviceTicket);
... | java | {
"resource": ""
} |
q179211 | FlowStepClient.getFlowStepByStep | test | public FlowStep getFlowStepByStep(FlowStep flowStepParam)
{
if(this.serviceTicket != null && flowStepParam != null)
{
flowStepParam.setServiceTicket(this.serviceTicket);
}
return new FlowStep(this.postJson(
flowStepParam, WS.Path.FlowStep.Version1.getBySt... | java | {
"resource": ""
} |
q179212 | FlowStepClient.getStepsByFlow | test | public FlowStepListing getStepsByFlow(Flow flowParam)
{
if(this.serviceTicket != null && flowParam != null)
{
flowParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepListing(this.postJson(
flowParam, WS.Path.FlowStep.Version1.getAllStepsByFlo... | java | {
"resource": ""
} |
q179213 | FlowStepClient.deleteFlowStep | test | public FlowStep deleteFlowStep(FlowStep flowStepParam)
{
if(flowStepParam != null && this.serviceTicket != null)
{
flowStepParam.setServiceTicket(this.serviceTicket);
}
return new FlowStep(this.postJson(
flowStepParam, WS.Path.FlowStep.Version1.flowStepDe... | java | {
"resource": ""
} |
q179214 | FlowStepClient.forceDeleteFlowStep | test | public FlowStep forceDeleteFlowStep(FlowStep flowStepParam)
{
if(flowStepParam != null && this.serviceTicket != null)
{
flowStepParam.setServiceTicket(this.serviceTicket);
}
return new FlowStep(this.postJson(
flowStepParam, WS.Path.FlowStep.Version1.flowS... | java | {
"resource": ""
} |
q179215 | ABaseESUtil.populateTableFields | test | protected final List<Form> populateTableFields(
boolean addAllTableRecordsForReturnParam,
boolean includeFieldDataParam,
List<Field> formFieldsParam) {
if(formFieldsParam == null || formFieldsParam.isEmpty()) {
return null;
}
List<Form> allTableRecordsFromAllFields = addAllTableRecordsForReturnParam ... | java | {
"resource": ""
} |
q179216 | ABaseESUtil.closeConnection | test | @Override
public void closeConnection() {
CloseConnectionRunnable closeConnectionRunnable =
new CloseConnectionRunnable(this);
Thread closeConnThread = new Thread(
closeConnectionRunnable,"Close ABaseES Connection");
closeConnThread.start();
} | java | {
"resource": ""
} |
q179217 | AGenericListMessageHandler.handleMessage | test | @Override
public void handleMessage(Object objectToProcess) {
//There is an error...
if(objectToProcess instanceof Error) {
Error fluidError = ((Error)objectToProcess);
this.errors.add(fluidError);
//Do a message callback...
if(this.messageReceivedCallback != null)
{
this.messageReceivedCallb... | java | {
"resource": ""
} |
q179218 | AGenericListMessageHandler.connectionClosed | test | @Override
public void connectionClosed() {
this.isConnectionClosed = true;
if(this.completableFuture != null)
{
//If there was no error...
if(this.getErrors().isEmpty())
{
this.completableFuture.complete(this.returnValue);
}
//there was an error...
else
{
Error firstFluidError = thi... | java | {
"resource": ""
} |
q179219 | AGenericListMessageHandler.getEchoMessagesFromReturnValue | test | private List<String> getEchoMessagesFromReturnValue()
{
List<String> returnListing = new ArrayList();
if(this.returnValue == null)
{
return returnListing;
}
Iterator<T> iterForReturnVal =
this.returnValue.iterator();
//Only add where the ECHO message is set...
while(iterForReturnVal.hasNext())
... | java | {
"resource": ""
} |
q179220 | PersonalInventoryClient.getPersonalInventoryItems | test | public List<FluidItem> getPersonalInventoryItems()
{
User loggedInUser = new User();
if(this.serviceTicket != null)
{
loggedInUser.setServiceTicket(this.serviceTicket);
}
try {
return new FluidItemListing(this.postJson(
loggedInUs... | java | {
"resource": ""
} |
q179221 | FormContainerClient.createTableRecord | test | public TableRecord createTableRecord(TableRecord tableRecordParam) {
if(tableRecordParam != null && this.serviceTicket != null) {
tableRecordParam.setServiceTicket(this.serviceTicket);
}
return new TableRecord(this.putJson(
tableRecordParam,
WS.Path.F... | java | {
"resource": ""
} |
q179222 | FormContainerClient.deleteFormContainer | test | public Form deleteFormContainer(Form formContainerParam) {
if(formContainerParam != null && this.serviceTicket != null) {
formContainerParam.setServiceTicket(this.serviceTicket);
}
return new Form(this.postJson(formContainerParam,
WS.Path.FormContainer.Version1.form... | java | {
"resource": ""
} |
q179223 | FormContainerClient.getFormFlowHistoricData | test | public List<FormFlowHistoricData> getFormFlowHistoricData(Form formParam) {
if(formParam != null && this.serviceTicket != null) {
formParam.setServiceTicket(this.serviceTicket);
}
return new FormFlowHistoricDataListing(this.postJson(
formParam, WS.Path.FlowItemHistor... | java | {
"resource": ""
} |
q179224 | FormContainerClient.getFormAndFieldHistoricData | test | public List<FormHistoricData> getFormAndFieldHistoricData(
Form formParam,
boolean includeCurrentParam
) {
if(formParam != null && this.serviceTicket != null)
{
formParam.setServiceTicket(this.serviceTicket);
}
return new FormHistoricDataListing(this.post... | java | {
"resource": ""
} |
q179225 | FormContainerClient.getMostRecentFormAndFieldHistoricData | test | public FormHistoricData getMostRecentFormAndFieldHistoricData(Form formParam) {
if(formParam != null && this.serviceTicket != null) {
formParam.setServiceTicket(this.serviceTicket);
}
return new FormHistoricData(this.postJson(
formParam, WS.Path.FormHistory.Version1.... | java | {
"resource": ""
} |
q179226 | FormContainerClient.lockFormContainer | test | public Form lockFormContainer(
Form formParam,
JobView jobViewParam
) {
return this.lockFormContainer(
formParam, jobViewParam, null);
} | java | {
"resource": ""
} |
q179227 | FormContainerClient.unLockFormContainer | test | public Form unLockFormContainer(
Form formParam,
boolean unlockAsyncParam) {
return this.unLockFormContainer(
formParam, null, unlockAsyncParam, false);
} | java | {
"resource": ""
} |
q179228 | FormContainerClient.unLockFormContainer | test | public Form unLockFormContainer(
Form formParam,
User userToUnLockAsParam,
boolean unlockAsyncParam,
boolean removeFromPersonalInventoryParam) {
if(this.serviceTicket != null && formParam != null) {
formParam.setServiceTicket(this.serviceTicket);
... | java | {
"resource": ""
} |
q179229 | SQLFormUtil.mapFormContainerTo | test | private Form mapFormContainerTo(
Map<Long,String> definitionAndTitleParam,
ResultSet resultSetParam
) throws SQLException {
Long formId = resultSetParam.getLong(SQLColumnIndex._01_FORM_ID);
String formType = definitionAndTitleParam.get(
resultSetParam.getLong(SQLColumnIndex._02_FORM_TYPE));
String tit... | java | {
"resource": ""
} |
q179230 | Role.convertToObjects | test | @XmlTransient
public static List<Role> convertToObjects(String roleListingParam)
{
if(roleListingParam == null || roleListingParam.trim().isEmpty())
{
return null;
}
String[] listOfRoles = roleListingParam.split(UtilGlobal.REG_EX_COMMA);
List<Role> returnVal... | java | {
"resource": ""
} |
q179231 | FormDefinitionClient.createFormDefinition | test | public Form createFormDefinition(Form formDefinitionParam)
{
if(formDefinitionParam != null && this.serviceTicket != null)
{
formDefinitionParam.setServiceTicket(this.serviceTicket);
}
return new Form(this.putJson(
formDefinitionParam, WS.Path.FormDefinit... | java | {
"resource": ""
} |
q179232 | FormDefinitionClient.updateFormDefinition | test | public Form updateFormDefinition(Form formDefinitionParam)
{
if(formDefinitionParam != null && this.serviceTicket != null)
{
formDefinitionParam.setServiceTicket(this.serviceTicket);
}
return new Form(this.postJson(
formDefinitionParam,
WS... | java | {
"resource": ""
} |
q179233 | FormDefinitionClient.getFormDefinitionById | test | public Form getFormDefinitionById(Long formDefinitionIdParam)
{
Form form = new Form(formDefinitionIdParam);
if(this.serviceTicket != null)
{
form.setServiceTicket(this.serviceTicket);
}
return new Form(this.postJson(
form, WS.Path.FormDefinition... | java | {
"resource": ""
} |
q179234 | FormDefinitionClient.getFormDefinitionByName | test | public Form getFormDefinitionByName(String formDefinitionNameParam)
{
Form form = new Form(formDefinitionNameParam);
if(this.serviceTicket != null)
{
form.setServiceTicket(this.serviceTicket);
}
return new Form(this.postJson(
form, WS.Path.FormDe... | java | {
"resource": ""
} |
q179235 | FormDefinitionClient.getAllByLoggedInUser | test | public List<Form> getAllByLoggedInUser(boolean includeTableRecordTypesParam)
{
Form form = new Form();
if(this.serviceTicket != null)
{
form.setServiceTicket(this.serviceTicket);
}
if(includeTableRecordTypesParam)
{
return new FormListing(thi... | java | {
"resource": ""
} |
q179236 | FormDefinitionClient.deleteFormDefinition | test | public Form deleteFormDefinition(Form formDefinitionParam)
{
if(formDefinitionParam != null && this.serviceTicket != null)
{
formDefinitionParam.setServiceTicket(this.serviceTicket);
}
return new Form(this.postJson(formDefinitionParam,
WS.Path.FormDefinit... | java | {
"resource": ""
} |
q179237 | CacheUtil.getStorageKeyFrom | test | private String getStorageKeyFrom(
Long formDefIdParam,
Long formContIdParam,
Long formFieldIdParam)
{
StringBuilder stringBuff = new StringBuilder();
//Form Definition...
if(formDefIdParam == null)
{
stringBuff.append(NULL);
}
else
{
stringBuff.append(formDefIdParam.toString());
}
st... | java | {
"resource": ""
} |
q179238 | CacheUtil.initXMemcachedClient | test | private MemcachedClient initXMemcachedClient()
{
if(this.memcachedClient != null && !this.memcachedClient.isShutdown())
{
return this.memcachedClient;
}
try{
this.memcachedClient = new XMemcachedClient(
this.cacheHost,this.cachePort);
return this.memcachedClient;
}
//Unable to create client... | java | {
"resource": ""
} |
q179239 | CacheUtil.shutdown | test | public void shutdown()
{
if(this.memcachedClient != null &&
!this.memcachedClient.isShutdown())
{
try {
this.memcachedClient.shutdown();
}
//
catch (IOException eParam) {
throw new FluidCacheException(
"Unable to create shutdown MemCache client. "+eParam.getMessage(), eParam);
}
... | java | {
"resource": ""
} |
q179240 | ABaseUtil.toLongSafe | test | protected long toLongSafe(String toParseParam) {
if (toParseParam == null || toParseParam.trim().isEmpty()) {
return -1;
}
try {
return Long.parseLong(toParseParam.trim());
} catch (NumberFormatException e) {
return -1;
}
} | java | {
"resource": ""
} |
q179241 | DocumentToPDFConvert.convertDocumentToPDF | test | public File convertDocumentToPDF(File inputDocumentParam) {
if(inputDocumentParam == null ||
!inputDocumentParam.exists())
{
throw new UtilException(
"Input document to convert not provided or does not exist.",
UtilException.ErrorCode.COMMAND);
}
if(!inputDocumentParam.isFile())
{
throw ... | java | {
"resource": ""
} |
q179242 | SQLUtilWebSocketRESTWrapper.getFieldValuesForFormFromCache | test | private List<Field> getFieldValuesForFormFromCache(
Long formIdParam,
List<FormFieldListing> listingReturnFieldValsPopulatedParam,
Form[] formsToFetchForLocalCacheArrParam){
if(formIdParam == null || formIdParam.longValue() < 1) {
return null;
}
if(listingReturnFieldValsPopulatedParam == null ||
... | java | {
"resource": ""
} |
q179243 | FlowStepRuleClient.createFlowStepEntryRule | test | public FlowStepRule createFlowStepEntryRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.putJson(
flowStepRuleParam, ... | java | {
"resource": ""
} |
q179244 | FlowStepRuleClient.createFlowStepExitRule | test | public FlowStepRule createFlowStepExitRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.putJson(
flowStepRuleParam, W... | java | {
"resource": ""
} |
q179245 | FlowStepRuleClient.createFlowStepViewRule | test | public FlowStepRule createFlowStepViewRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.putJson(
flowStepRuleParam, W... | java | {
"resource": ""
} |
q179246 | FlowStepRuleClient.updateFlowStepEntryRule | test | public FlowStepRule updateFlowStepEntryRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.postJson(
flowStepRuleParam,... | java | {
"resource": ""
} |
q179247 | FlowStepRuleClient.updateFlowStepExitRule | test | public FlowStepRule updateFlowStepExitRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.postJson(
flowStepRuleParam, ... | java | {
"resource": ""
} |
q179248 | FlowStepRuleClient.updateFlowStepViewRule | test | public FlowStepRule updateFlowStepViewRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.postJson(
flowStepRuleParam, ... | java | {
"resource": ""
} |
q179249 | FlowStepRuleClient.moveFlowStepEntryRuleUp | test | public FlowStepRule moveFlowStepEntryRuleUp(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.postJson(
flowStepRuleParam,... | java | {
"resource": ""
} |
q179250 | FlowStepRuleClient.moveFlowStepEntryRuleDown | test | public FlowStepRule moveFlowStepEntryRuleDown(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.postJson(
flowStepRulePara... | java | {
"resource": ""
} |
q179251 | FlowStepRuleClient.deleteFlowStepEntryRule | test | public FlowStepRule deleteFlowStepEntryRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStepRule(this.postJson(
flowStepRuleParam,... | java | {
"resource": ""
} |
q179252 | FlowStepRuleClient.deleteFlowStepExitRule | test | public FlowStep deleteFlowStepExitRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStep(this.postJson(
flowStepRuleParam, WS.Path.... | java | {
"resource": ""
} |
q179253 | FlowStepRuleClient.deleteFlowStepViewRule | test | public FlowStep deleteFlowStepViewRule(FlowStepRule flowStepRuleParam)
{
if(flowStepRuleParam != null && this.serviceTicket != null)
{
flowStepRuleParam.setServiceTicket(this.serviceTicket);
}
return new FlowStep(this.postJson(
flowStepRuleParam, WS.Path.... | java | {
"resource": ""
} |
q179254 | LoginClient.initializeSession | test | private AuthEncryptedData initializeSession(
String passwordParam,
AuthResponse authResponseParam) {
//IV...
byte[] ivBytes = UtilGlobal.decodeBase64(
authResponseParam.getIvBase64());
//Seed...
byte[] seedBytes = UtilGlobal.decodeBase64(... | java | {
"resource": ""
} |
q179255 | UserQueryClient.getAllUserQueries | test | public UserQueryListing getAllUserQueries() {
UserQuery userQueryToGetInfoFor = new UserQuery();
if(this.serviceTicket != null) {
userQueryToGetInfoFor.setServiceTicket(this.serviceTicket);
}
try {
return new UserQueryListing(this.postJson(
userQueryToGetInfoFor, WS.Path.UserQuery.Version1.getAllUs... | java | {
"resource": ""
} |
q179256 | RoleClient.getAllRoles | test | public RoleListing getAllRoles()
{
RoleListing roleToGetInfoFor = new RoleListing();
if(this.serviceTicket != null)
{
roleToGetInfoFor.setServiceTicket(this.serviceTicket);
}
try {
return new RoleListing(this.postJson(
roleToGetIn... | java | {
"resource": ""
} |
q179257 | ABaseFluidVO.getServiceTicketAsHexUpper | test | public String getServiceTicketAsHexUpper() {
String serviceTicket = this.getServiceTicket();
if(serviceTicket == null)
{
return null;
}
if(serviceTicket.isEmpty())
{
return serviceTicket;
}
byte[] base64Bytes = Base64.getDecoder... | java | {
"resource": ""
} |
q179258 | FormFieldClient.createFieldTextMasked | test | public Field createFieldTextMasked(
Field formFieldParam, String maskValueParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
}
if(maskValueParam == null || maskValueParam.trim().isEmpty())
... | java | {
"resource": ""
} |
q179259 | FormFieldClient.createFieldTextBarcode | test | public Field createFieldTextBarcode(
Field formFieldParam, String barcodeTypeParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
}
if(barcodeTypeParam == null || barcodeTypeParam.trim().isEm... | java | {
"resource": ""
} |
q179260 | FormFieldClient.createFieldDecimalSpinner | test | public Field createFieldDecimalSpinner(
Field formFieldParam,
double minParam,
double maxParam,
double stepFactorParam,
String prefixParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTi... | java | {
"resource": ""
} |
q179261 | FormFieldClient.createFieldDecimalSlider | test | public Field createFieldDecimalSlider(
Field formFieldParam,
double minParam,
double maxParam,
double stepFactorParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
... | java | {
"resource": ""
} |
q179262 | FormFieldClient.createFieldTable | test | public Field createFieldTable(
Field formFieldParam,
Form formDefinitionParam,
boolean sumDecimalsParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
}
if(formFieldPa... | java | {
"resource": ""
} |
q179263 | FormFieldClient.updateFieldTextMasked | test | public Field updateFieldTextMasked(Field formFieldParam, String maskValueParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
}
if(maskValueParam == null || maskValueParam.trim().isEmpty())
{
... | java | {
"resource": ""
} |
q179264 | FormFieldClient.updateFieldTextBarcode | test | public Field updateFieldTextBarcode(Field formFieldParam, String barcodeTypeParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
}
if(barcodeTypeParam == null || barcodeTypeParam.trim().isEmpty())
... | java | {
"resource": ""
} |
q179265 | FormFieldClient.updateFieldDecimalSpinner | test | public Field updateFieldDecimalSpinner(
Field formFieldParam,
double minParam,
double maxParam,
double stepFactorParam,
String prefixParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTi... | java | {
"resource": ""
} |
q179266 | FormFieldClient.updateFieldDecimalSlider | test | public Field updateFieldDecimalSlider(
Field formFieldParam,
double minParam,
double maxParam,
double stepFactorParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
... | java | {
"resource": ""
} |
q179267 | FormFieldClient.updateFieldTable | test | public Field updateFieldTable(
Field formFieldParam,
Form formDefinitionParam,
boolean sumDecimalsParam)
{
if(formFieldParam != null && this.serviceTicket != null)
{
formFieldParam.setServiceTicket(this.serviceTicket);
}
if(formFieldPa... | java | {
"resource": ""
} |
q179268 | FormFieldClient.getFieldByName | test | public Field getFieldByName(String fieldNameParam)
{
Field field = new Field();
field.setFieldName(fieldNameParam);
if(this.serviceTicket != null)
{
field.setServiceTicket(this.serviceTicket);
}
return new Field(this.postJson(
field, WS.P... | java | {
"resource": ""
} |
q179269 | FormFieldClient.getFieldsByFormNameAndLoggedInUser | test | public FormFieldListing getFieldsByFormNameAndLoggedInUser(
String formNameParam,
boolean editOnlyFieldsParam)
{
Form form = new Form();
form.setFormType(formNameParam);
if(this.serviceTicket != null)
{
form.setServiceTicket(this.serviceTicket);
... | java | {
"resource": ""
} |
q179270 | FormFieldClient.getFieldsByFormTypeIdAndLoggedInUser | test | public FormFieldListing getFieldsByFormTypeIdAndLoggedInUser(
Long formTypeIdParam,
boolean editOnlyFieldsParam)
{
Form form = new Form();
form.setFormTypeId(formTypeIdParam);
if(this.serviceTicket != null)
{
form.setServiceTicket(this.ser... | java | {
"resource": ""
} |
q179271 | FormFieldClient.deleteField | test | public Field deleteField(Field fieldParam)
{
if(fieldParam != null && this.serviceTicket != null)
{
fieldParam.setServiceTicket(this.serviceTicket);
}
return new Field(this.postJson(fieldParam, WS.Path.FormField.Version1.formFieldDelete()));
} | java | {
"resource": ""
} |
q179272 | FormFieldClient.forceDeleteField | test | public Field forceDeleteField(Field fieldParam)
{
if(fieldParam != null && this.serviceTicket != null)
{
fieldParam.setServiceTicket(this.serviceTicket);
}
return new Field(this.postJson(
fieldParam, WS.Path.FormField.Version1.formFieldDelete(true)));
... | java | {
"resource": ""
} |
q179273 | FormFieldClient.getMetaDataForTableField | test | private String getMetaDataForTableField(
Form formDefinitionParam,
boolean sumDecimalsParam)
{
StringBuilder returnBuffer = new StringBuilder();
Long definitionId =
(formDefinitionParam == null) ? -1L:
formDefinitionParam.getId();
... | java | {
"resource": ""
} |
q179274 | UserFieldClient.updateFieldValue | test | public Field updateFieldValue(Field userFieldValueParam) {
if(userFieldValueParam != null && this.serviceTicket != null) {
userFieldValueParam.setServiceTicket(this.serviceTicket);
}
return new Field(this.postJson(
userFieldValueParam,
WS.Path.UserFie... | java | {
"resource": ""
} |
q179275 | ESFormFieldMappingUtil.getOrCreateIndex | test | public GetIndexResponse getOrCreateIndex(String indexParam) {
if(this.doesIndexExist(indexParam)) {
return this.client.admin().indices().prepareGetIndex().get();
} else {
CreateIndexRequestBuilder createIndexRequestBuilder =
this.client.admin().indices().prepareCreate(indexParam);
CreateIndexResponse... | java | {
"resource": ""
} |
q179276 | FlowClient.createFlow | test | public Flow createFlow(Flow flowParam)
{
if(flowParam != null && this.serviceTicket != null)
{
flowParam.setServiceTicket(this.serviceTicket);
}
return new Flow(this.putJson(
flowParam, WS.Path.Flow.Version1.flowCreate()));
} | java | {
"resource": ""
} |
q179277 | FlowClient.updateFlow | test | public Flow updateFlow(Flow flowParam)
{
if(flowParam != null && this.serviceTicket != null)
{
flowParam.setServiceTicket(this.serviceTicket);
}
return new Flow(this.postJson(
flowParam, WS.Path.Flow.Version1.flowUpdate()));
} | java | {
"resource": ""
} |
q179278 | FlowClient.getFlowById | test | public Flow getFlowById(Long flowIdParam)
{
Flow flow = new Flow(flowIdParam);
if(this.serviceTicket != null)
{
flow.setServiceTicket(this.serviceTicket);
}
return new Flow(this.postJson(
flow, WS.Path.Flow.Version1.getById()));
} | java | {
"resource": ""
} |
q179279 | FlowClient.getFlowByName | test | public Flow getFlowByName(String flowNameParam)
{
Flow flow = new Flow();
flow.setName(flowNameParam);
if(this.serviceTicket != null)
{
flow.setServiceTicket(this.serviceTicket);
}
return new Flow(this.postJson(
flow, WS.Path.Flow.Version... | java | {
"resource": ""
} |
q179280 | FlowClient.deleteFlow | test | public Flow deleteFlow(Flow flowParam)
{
if(flowParam != null && this.serviceTicket != null)
{
flowParam.setServiceTicket(this.serviceTicket);
}
return new Flow(this.postJson(flowParam, WS.Path.Flow.Version1.flowDelete()));
} | java | {
"resource": ""
} |
q179281 | FlowClient.forceDeleteFlow | test | public Flow forceDeleteFlow(Flow flowParam)
{
if(flowParam != null && this.serviceTicket != null)
{
flowParam.setServiceTicket(this.serviceTicket);
}
return new Flow(this.postJson(flowParam, WS.Path.Flow.Version1.flowDelete(true)));
} | java | {
"resource": ""
} |
q179282 | GlobalFieldClient.updateFieldValue | test | public Field updateFieldValue(Field globalFieldValueParam)
{
if(globalFieldValueParam != null && this.serviceTicket != null)
{
globalFieldValueParam.setServiceTicket(this.serviceTicket);
}
return new Field(this.postJson(
globalFieldValueParam,
... | java | {
"resource": ""
} |
q179283 | GlobalFieldClient.getAllGlobalFieldValues | test | public List<Field> getAllGlobalFieldValues()
{
Field field = new Field();
//Set for Payara server...
field.setFieldValue(new MultiChoice());
if(this.serviceTicket != null)
{
field.setServiceTicket(this.serviceTicket);
}
return new Global... | java | {
"resource": ""
} |
q179284 | SQLFormDefinitionUtil.getFormDefinitionIdAndTitle | test | public Map<Long,String> getFormDefinitionIdAndTitle()
{
//When already cached, use the cached value...
if(!LOCAL_MAPPING.isEmpty())
{
Map<Long,String> returnVal = new HashMap<>(LOCAL_MAPPING);
//The id's are outdated...
if(System.currentTimeMillis() > timeToUpdateAgain){
synchronized (LOCAL_MAPPIN... | java | {
"resource": ""
} |
q179285 | AES256Local.decryptInitPacket | test | public static byte[] decryptInitPacket(
byte[] encryptedDataParam,
String passwordParam,
String saltParam,
byte[] ivParam,
byte[] seedParam){
//Stored like this in the database, so we have to get the password as stored in the database so that the
... | java | {
"resource": ""
} |
q179286 | ABaseClientWebSocket.closeAndClean | test | @Override
public void closeAndClean()
{
CloseConnectionRunnable closeConnectionRunnable =
new CloseConnectionRunnable(this);
Thread closeConnThread = new Thread(
closeConnectionRunnable,"Close ABaseClientWebSocket Connection");
closeConnThread.start();
} | java | {
"resource": ""
} |
q179287 | ABaseClientWebSocket.initNewRequest | test | public synchronized String initNewRequest(){
String returnVal = UUID.randomUUID().toString();
this.messageHandler.put(returnVal, this.getNewHandlerInstance());
return returnVal;
} | java | {
"resource": ""
} |
q179288 | ABaseClientWebSocket.getExceptionMessageVerbose | test | protected String getExceptionMessageVerbose(
String prefixParam,
String uniqueReqIdParam,
int numberOfSentItemsParam
) {
StringBuilder formFieldsCombined = new StringBuilder();
int returnValSize = -1;
RespHandler respHandler = this.getHandler(uniqueReqIdParam);
if(respHandler instanceof AGenericListMe... | java | {
"resource": ""
} |
q179289 | AdminUserCreateClient.createAdminUser | test | public User createAdminUser(String passwordParam) {
User adminUserCreate = new User();
adminUserCreate.setPasswordClear(passwordParam);
return new User(this.putJson(
adminUserCreate, WS.Path.User.Version1.userCreateAdmin()));
} | java | {
"resource": ""
} |
q179290 | Auth0Client.getAccessToken | test | public AccessToken getAccessToken(
String clientIdParam,
String clientSecretParam,
String codeParam,
String redirectUrlParam)
{
if(clientIdParam == null || clientIdParam.trim().isEmpty())
{
throw new FluidClientException(
... | java | {
"resource": ""
} |
q179291 | Auth0Client.getUserProfileInfo | test | public NormalizedUserProfile getUserProfileInfo(AccessToken accessTokenParam)
{
if(accessTokenParam == null || (accessTokenParam.getAccessToken() == null ||
accessTokenParam.getAccessToken().trim().isEmpty()))
{
throw new FluidClientException(
"Code mu... | java | {
"resource": ""
} |
q179292 | ABaseClientWS.executeJson | test | protected JSONObject executeJson(
HttpMethod httpMethodParam,
List<HeaderNameValue> headerNameValuesParam,
boolean checkConnectionValidParam,
ABaseFluidJSONObject baseDomainParam,
ContentType contentTypeParam,
String postfixUrlParam
) {
//Validate that something is set.
if(baseDomainParam == null... | java | {
"resource": ""
} |
q179293 | ABaseClientWS.executeForm | test | protected JSONObject executeForm(
HttpMethod httpMethodParam,
List<HeaderNameValue> headerNameValuesParam,
boolean checkConnectionValidParam,
List<FormNameValue> formNameValuesParam,
ContentType contentTypeParam,
String postfixUrlParam
) {
//Validate Form Field and values...
if(formNameValuesPara... | java | {
"resource": ""
} |
q179294 | ABaseClientWS.getJsonResponseHandler | test | private ResponseHandler<String> getJsonResponseHandler(final String urlCalledParam) {
// Create a custom response handler
ResponseHandler<String> responseHandler = new ResponseHandler<String>() {
/**
* Process the {@code responseParam} and return text if valid.
*
* @param responseParam The HTTP resp... | java | {
"resource": ""
} |
q179295 | ABaseClientWS.isConnectionValid | test | public boolean isConnectionValid() {
//Init the session to get the salt...
try {
this.getJson(
false,
WS.Path.Test.Version1.testConnection());
} catch (FluidClientException flowJobExcept) {
//Connect problem...
if(flowJobExcept.getErrorCode() == FluidClientException.ErrorCode.CONNECT_ERROR) {
... | java | {
"resource": ""
} |
q179296 | ABaseClientWS.getClient | test | private CloseableHttpClient getClient() {
if(this.closeableHttpClient != null) {
return this.closeableHttpClient;
}
//Only accept self signed certificate if in Junit test case.
String pathToFluidTrustStore = this.getPathToFluidSpecificTrustStore();
//Test mode...
if(IS_IN_JUNIT_TEST_MODE || pathToFluidT... | java | {
"resource": ""
} |
q179297 | ABaseClientWS.getPathToFluidSpecificTrustStore | test | private String getPathToFluidSpecificTrustStore() {
String fluidSystemTrustStore =
System.getProperty(SYSTEM_PROP_FLUID_TRUST_STORE);
if(fluidSystemTrustStore == null || fluidSystemTrustStore.trim().isEmpty()) {
return null;
}
File certFile = new File(fluidSystemTrustStore);
if(certFile.exists() && c... | java | {
"resource": ""
} |
q179298 | ABaseSQLUtil.closeConnection | test | public void closeConnection() {
if(this.connection == null) {
return;
}
try {
if(this.connection.isClosed()) {
return;
}
this.connection.close();
} catch (SQLException sqlExcept) {
throw new FluidSQLException(sqlExcept);
}
} | java | {
"resource": ""
} |
q179299 | FlowItemClient.getFluidItemsForView | test | public FluidItemListing getFluidItemsForView(
JobView jobViewParam,
int queryLimitParam,
int offsetParam,
String sortFieldParam,
String sortOrderParam)
{
if(this.serviceTicket != null && jobViewParam != null)
{
jobViewParam.setS... | java | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.