EN · DE · RU · FR · ES

#493: LdapGroupValues.java

projectforge-business/src/main/java/org/projectforge/business/ldap/LdapGroupValues.java Type: Java · Role: LDAP Integration · Source: projectforge-business/src/main/java/org/projectforge/business/ldap/LdapGroupValues.java 63 lines · 27 code · 27 comments · 9 blank
Source code file at projectforge-business/src/main/java/org/projectforge/business/ldap/LdapGroupValues.java containing Java code for the LDAP Integration layer.

Code Structure

Package: org.projectforge.business.ldap

Classes: LdapGroupValues

Implements: Serializable

Methods (4): isValuesEmpty, isPosixValuesEmpty, getGidNumber, setGidNumber

Fields (2): serialVersionUID, gidNumber

Imports: 3 packages

Source Code (abridged)

package org.projectforge.business.ldap;

import org.projectforge.framework.persistence.user.entities.GroupDO;
import org.projectforge.framework.xmlstream.XmlObject;

import java.io.Serializable;

/**
 * Bean used for serialization and deserialization of the ldap values as xml string in {@link GroupDO#getLdapValues()} ConfigXML
 * (config.xml).
 * @author Kai Reinhard (k.reinhard@micromata.de)
 */
@XmlObject(alias = "values")
public class LdapGroupValues implements Serializable
{
  private static final long serialVersionUID = 812898869519604597L;

  private Integer gidNumber = null;

  public boolean isValuesEmpty()
  {
    return isPosixValuesEmpty();
  }

  public boolean isPosixValuesEmpty()
  {
    return getGidNumber() == null;
  }

  public Integer getGidNumber()
  {
    return gidNumber;
  }

  public LdapGroupValues setGidNumber(final Integer gidNumber)
  {
    this.gidNumber = gidNumber;
    return this;
  }
}

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022