コード例 #1
0
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    String uuid = (String) attributes.get("uuid");

    if (uuid != null) {
      setUuid(uuid);
    }

    Long folderId = (Long) attributes.get("folderId");

    if (folderId != null) {
      setFolderId(folderId);
    }

    Long groupId = (Long) attributes.get("groupId");

    if (groupId != null) {
      setGroupId(groupId);
    }

    Long companyId = (Long) attributes.get("companyId");

    if (companyId != null) {
      setCompanyId(companyId);
    }

    Long userId = (Long) attributes.get("userId");

    if (userId != null) {
      setUserId(userId);
    }

    String userName = (String) attributes.get("userName");

    if (userName != null) {
      setUserName(userName);
    }

    Date createDate = (Date) attributes.get("createDate");

    if (createDate != null) {
      setCreateDate(createDate);
    }

    Date modifiedDate = (Date) attributes.get("modifiedDate");

    if (modifiedDate != null) {
      setModifiedDate(modifiedDate);
    }

    Long repositoryId = (Long) attributes.get("repositoryId");

    if (repositoryId != null) {
      setRepositoryId(repositoryId);
    }

    Boolean mountPoint = (Boolean) attributes.get("mountPoint");

    if (mountPoint != null) {
      setMountPoint(mountPoint);
    }

    Long parentFolderId = (Long) attributes.get("parentFolderId");

    if (parentFolderId != null) {
      setParentFolderId(parentFolderId);
    }

    String treePath = (String) attributes.get("treePath");

    if (treePath != null) {
      setTreePath(treePath);
    }

    String name = (String) attributes.get("name");

    if (name != null) {
      setName(name);
    }

    String description = (String) attributes.get("description");

    if (description != null) {
      setDescription(description);
    }

    Date lastPostDate = (Date) attributes.get("lastPostDate");

    if (lastPostDate != null) {
      setLastPostDate(lastPostDate);
    }

    Long defaultFileEntryTypeId = (Long) attributes.get("defaultFileEntryTypeId");

    if (defaultFileEntryTypeId != null) {
      setDefaultFileEntryTypeId(defaultFileEntryTypeId);
    }

    Boolean hidden = (Boolean) attributes.get("hidden");

    if (hidden != null) {
      setHidden(hidden);
    }

    Integer restrictionType = (Integer) attributes.get("restrictionType");

    if (restrictionType != null) {
      setRestrictionType(restrictionType);
    }

    Date lastPublishDate = (Date) attributes.get("lastPublishDate");

    if (lastPublishDate != null) {
      setLastPublishDate(lastPublishDate);
    }

    Integer status = (Integer) attributes.get("status");

    if (status != null) {
      setStatus(status);
    }

    Long statusByUserId = (Long) attributes.get("statusByUserId");

    if (statusByUserId != null) {
      setStatusByUserId(statusByUserId);
    }

    String statusByUserName = (String) attributes.get("statusByUserName");

    if (statusByUserName != null) {
      setStatusByUserName(statusByUserName);
    }

    Date statusDate = (Date) attributes.get("statusDate");

    if (statusDate != null) {
      setStatusDate(statusDate);
    }
  }
コード例 #2
0
 @Override
 public void setPrimaryKey(long primaryKey) {
   setFolderId(primaryKey);
 }