Package org.saidone.unrest.mcp
Record Class AlfrescoProperties
java.lang.Object
java.lang.Record
org.saidone.unrest.mcp.AlfrescoProperties
- Record Components:
username- user the MCP server acts as: every tool call runs with this user's permissionspassword- password ofusernamegrpc- settings of the gRPC endpoint exposed by the unrest-platform module
@ConfigurationProperties("alfresco")
public record AlfrescoProperties(String username, String password, AlfrescoProperties.Grpc grpc)
extends Record
Connection settings for the Alfresco repository.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAlfrescoProperties(String username, String password, AlfrescoProperties.Grpc grpc) Creates an instance of aAlfrescoPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.grpc()Returns the value of thegrpcrecord component.final inthashCode()Returns a hash code value for this object.password()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
AlfrescoProperties
public AlfrescoProperties(@DefaultValue("admin") String username, @DefaultValue("admin") String password, @DefaultValue AlfrescoProperties.Grpc grpc) Creates an instance of aAlfrescoPropertiesrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
grpc
Returns the value of thegrpcrecord component.- Returns:
- the value of the
grpcrecord component
-