Class Computer
- All Implemented Interfaces:
Serializable
,Cloneable
Contains information about a computer account in a directory.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
An array of Attribute objects containing the LDAP attributes that belong to the computer account.The identifier of the computer.The computer name.int
hashCode()
void
setComputerAttributes
(Collection<Attribute> computerAttributes) An array of Attribute objects containing the LDAP attributes that belong to the computer account.void
setComputerId
(String computerId) The identifier of the computer.void
setComputerName
(String computerName) The computer name.toString()
Returns a string representation of this object; useful for testing and debugging.withComputerAttributes
(Attribute... computerAttributes) An array of Attribute objects containing the LDAP attributes that belong to the computer account.withComputerAttributes
(Collection<Attribute> computerAttributes) An array of Attribute objects containing the LDAP attributes that belong to the computer account.withComputerId
(String computerId) The identifier of the computer.withComputerName
(String computerName) The computer name.
-
Constructor Details
-
Computer
public Computer()
-
-
Method Details
-
setComputerId
The identifier of the computer.
- Parameters:
computerId
- The identifier of the computer.
-
getComputerId
The identifier of the computer.
- Returns:
- The identifier of the computer.
-
withComputerId
The identifier of the computer.
- Parameters:
computerId
- The identifier of the computer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComputerName
The computer name.
- Parameters:
computerName
- The computer name.
-
getComputerName
The computer name.
- Returns:
- The computer name.
-
withComputerName
The computer name.
- Parameters:
computerName
- The computer name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getComputerAttributes
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
- Returns:
- An array of Attribute objects containing the LDAP attributes that belong to the computer account.
-
setComputerAttributes
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
- Parameters:
computerAttributes
- An array of Attribute objects containing the LDAP attributes that belong to the computer account.
-
withComputerAttributes
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
NOTE: This method appends the values to the existing list (if any). Use
setComputerAttributes(java.util.Collection)
orwithComputerAttributes(java.util.Collection)
if you want to override the existing values.- Parameters:
computerAttributes
- An array of Attribute objects containing the LDAP attributes that belong to the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withComputerAttributes
An array of Attribute objects containing the LDAP attributes that belong to the computer account.
- Parameters:
computerAttributes
- An array of Attribute objects containing the LDAP attributes that belong to the computer account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-