congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DaoUtil.getDto
Code IndexAdd Tabnine to your IDE (free)

How to use
getDto
method
in
org.kaaproject.kaa.server.common.dao.impl.DaoUtil

Best Java code snippets using org.kaaproject.kaa.server.common.dao.impl.DaoUtil.getDto (Showing top 20 results out of 315)

origin: kaaproject/kaa

@Override
public EndpointConfigurationDto saveEndpointConfiguration(EndpointConfigurationDto
                                 endpointConfigurationDto) {
 return getDto(endpointConfigurationDao.save(endpointConfigurationDto));
}
origin: kaaproject/kaa

@Override
public EndpointUserConfigurationDto findUserConfigurationByUserIdAndAppTokenAndSchemaVersion(
    String userId, String appToken, Integer schemaVersion) {
 return getDto(endpointUserConfigurationDao.findByUserIdAndAppTokenAndSchemaVersion(
     userId, appToken, schemaVersion));
}
origin: kaaproject/kaa

@Override
public ApplicationDto findAppByApplicationToken(String applicationToken) {
 ApplicationDto applicationDto = null;
 if (isNotBlank(applicationToken)) {
  applicationDto = getDto(applicationDao.findByApplicationToken(applicationToken));
 }
 return applicationDto;
}
origin: kaaproject/kaa

@Override
public LogAppenderDto findLogAppenderById(String id) {
 LOG.debug("Find log appender by id  [{}]", id);
 return getDto(logAppenderDao.findById(id));
}
origin: kaaproject/kaa

@Override
public CTLSchemaDto findCtlSchemaByFqnAndVerAndTenantIdAndApplicationId(String fqn, Integer
    version, String tenantId, String applicationId) {
 if (isBlank(fqn) || version == null) {
  throw new IncorrectParameterException("Incorrect parameters for ctl schema request.");
 }
 LOG.debug("Find ctl schema by fqn {} version {}, tenant id {} and application id {}", fqn,
     version, tenantId, applicationId);
 return DaoUtil.getDto(ctlSchemaDao.findByFqnAndVerAndTenantIdAndApplicationId(fqn, version,
     tenantId, applicationId));
}
origin: kaaproject/kaa

@Override
@Transactional
public EndpointGroupDto findEndpointGroupById(String id) {
 validateSqlId(id, "Can't find endpoint group by id. Incorrect id "
          + id);
 return getDto(endpointGroupDao.findById(id));
}
origin: kaaproject/kaa

@Override
public CTLSchemaDto findCtlSchemaById(String schemaId) {
 validateSqlId(schemaId, "Incorrect schema id for ctl request "
             + schemaId);
 LOG.debug("Find ctl schema by id [{}]", schemaId);
 return DaoUtil.getDto(ctlSchemaDao.findById(schemaId));
}
origin: kaaproject/kaa

@Override
public EventClassFamilyDto findEventClassFamilyByEcfvId(String id) {
 validateSqlId(id, "Event class family version id is incorrect. Can't find event class family "
          + "by ECF version id " + id);
 return getDto(eventClassFamilyDao.findByEcfvId(id));
}
origin: kaaproject/kaa

@Override
public EndpointUserDto findEndpointUserById(String id) {
 EndpointUserDto endpointUserDto = null;
 if (isValidId(id)) {
  endpointUserDto = getDto(endpointUserDao.findById(id));
 }
 return endpointUserDto;
}
origin: kaaproject/kaa

@Override
public ConfigurationDto findConfigurationById(String id) {
 validateSqlId(id, "Configuration id is incorrect. Can't find configuration by id " + id);
 return getDto(configurationDao.findById(id));
}
origin: kaaproject/kaa

@Override
public NotificationSchemaDto findNotificationSchemaByAppIdAndTypeAndVersion(
  String appId, NotificationTypeDto type, int majorVersion) {
 validateId(appId, "Can't find notification schema. Invalid application id: " + appId);
 return getDto(notificationSchemaDao.findNotificationSchemasByAppIdAndTypeAndVersion(
     appId, type, majorVersion));
}
origin: kaaproject/kaa

@Override
public EventClassFamilyDto findEventClassFamilyById(String id) {
 validateSqlId(id, "Event class family id is incorrect. Can't find event class family by id "
          + id);
 return getDto(eventClassFamilyDao.findById(id));
}
origin: kaaproject/kaa

@Override
public TenantDto findTenantById(String id) {
 TenantDto tenantDto = null;
 if (isValidSqlId(id)) {
  tenantDto = getDto(tenantDao.findById(id));
 }
 return tenantDto;
}
origin: kaaproject/kaa

@Override
public ConfigurationSchemaDto findConfSchemaByAppIdAndVersion(String applicationId, int version) {
 validateSqlId(applicationId, "Incorrect application id " + applicationId
                + ". Can't find configuration schema.");
 return getDto(configurationSchemaDao.findByAppIdAndVersion(applicationId, version));
}
origin: kaaproject/kaa

 private ConfigurationSchemaDto findLatestConfSchemaByAppId(String applicationId) {
  validateSqlId(applicationId, "Incorrect application id " + applicationId
                 + ". Can't find latest configuration schema.");
  return getDto(configurationSchemaDao.findLatestByApplicationId(applicationId));
 }
}
origin: kaaproject/kaa

@Override
public EndpointProfileSchemaDto findProfileSchemaById(String id) {
 validateSqlId(id, "Can't find profile schema. Invalid profile schema id: " + id);
 return getDto(profileSchemaDao.findById(id));
}
origin: kaaproject/kaa

@Override
public EndpointProfileSchemaDto findProfileSchemaByAppIdAndVersion(
    String appId, int schemaVersion) {
 validateId(appId, "Can't find profile schema. Invalid application id: " + appId);
 return getDto(profileSchemaDao.findByAppIdAndVersion(appId, schemaVersion));
}
origin: kaaproject/kaa

@Override
public EndpointNotificationDto findUnicastNotificationById(String id) {
 validateId(id, "Can't find unicast notification. Invalid id " + id);
 return getDto(unicastNotificationDao.findById(id));
}
origin: kaaproject/kaa

@Override
public EventClassDto findEventClassById(String eventClassId) {
 if (isValidSqlId(eventClassId)) {
  LOG.debug("Find event class by id [{}] ", eventClassId);
  return getDto(eventClassDao.findById(eventClassId));
 } else {
  throw new IncorrectParameterException("Incorrect event class id: " + eventClassId);
 }
}
origin: kaaproject/kaa

@Override
public UserDto saveUser(UserDto userDto) {
 UserDto user = null;
 if (isValidSqlObject(userDto)) {
  user = getDto(userDao.save(new User(userDto)));
 }
 return user;
}
org.kaaproject.kaa.server.common.dao.implDaoUtilgetDto

Javadoc

This method convert model object to dto object.

Popular methods of DaoUtil

  • convertDtoList
    This method convert list of model objects to dto objects.
  • convertDtoSet
    This method convert list of model objects to dto objects.
  • getArrayCopy
    This method use for coping array bytes.
  • getStringFromFile
    This method find file by name in context and convert input of file to string.
  • idToString
    This method take string id from GenericModel object.

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Permission (java.security)
    Legacy security code; do not use.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now