calling this method with a non-null error message implies that the request 's status is createresourcestatus #failure . the inverse is not true - that is , if you set the error message to null , the status is left as-is ; it will not assume that a null error message means the status is successful . concode_field_sep String newResourceKey concode_elem_sep Resource parentResource concode_elem_sep String QUERY_FIND_WITH_STATUS concode_elem_sep Configuration configuration concode_elem_sep String QUERY_DELETE_BY_RESOURCES concode_elem_sep String errorMessage concode_elem_sep long serialVersionUID concode_elem_sep String QUERY_FIND_BY_PARENT_RESOURCE_ID concode_elem_sep long ctime concode_elem_sep InstalledPackage installedPackage concode_elem_sep int id concode_elem_sep String QUERY_FIND_BY_ID concode_elem_sep String subjectName concode_elem_sep long mtime concode_elem_sep String createdResourceName concode_elem_sep CreateResourceStatus status concode_elem_sep ResourceType resourceType concode_field_sep void onPersist concode_elem_sep Date getLastModifiedDate concode_elem_sep String getCreatedResourceName concode_elem_sep int getId concode_elem_sep CreateResourceStatus getStatus concode_elem_sep String getNewResourceKey concode_elem_sep void setSubjectName concode_elem_sep Configuration getConfiguration concode_elem_sep long getDuration concode_elem_sep int hashCode concode_elem_sep ResourceType getResourceType concode_elem_sep void setId concode_elem_sep Date getCreatedDate concode_elem_sep void setConfiguration concode_elem_sep void setInstalledPackage concode_elem_sep long getLastModifiedTime concode_elem_sep void setCreatedResourceName concode_elem_sep void setNewResourceKey concode_elem_sep InstalledPackage getInstalledPackage concode_elem_sep void setStatus concode_elem_sep void setParentResource concode_elem_sep boolean equals concode_elem_sep void setResourceType concode_elem_sep Resource getParentResource concode_elem_sep long getCreatedTime concode_elem_sep void onUpdate concode_elem_sep String getSubjectName concode_elem_sep String getErrorMessage
void function ( String arg0 ) { this . errorMessage = arg0 ; if ( arg0 != null ) { setStatus ( CreateResourceStatus . FAILURE ) ; } }