Ticket #362: Added parentID property for connection and group.

This commit is contained in:
James Muehlner
2014-03-02 22:38:19 -08:00
parent 4982971fec
commit 3a91dfbb68
10 changed files with 143 additions and 7 deletions

View File

@@ -41,6 +41,12 @@ public abstract class AbstractConnection implements Connection {
*/
private String identifier;
/**
* The unique identifier of the parent ConnectionGroup for
* this Connection.
*/
private String parentIdentifier;
/**
* The GuacamoleConfiguration associated with this connection.
*/
@@ -66,6 +72,16 @@ public abstract class AbstractConnection implements Connection {
this.identifier = identifier;
}
@Override
public String getParentIdentifier() {
return parentIdentifier;
}
@Override
public void setParentIdentifier(String parentIdentifier) {
this.parentIdentifier = parentIdentifier;
}
@Override
public GuacamoleConfiguration getConfiguration() {
return configuration;

View File

@@ -38,6 +38,12 @@ public abstract class AbstractConnectionGroup implements ConnectionGroup {
* The unique identifier associated with this connection group.
*/
private String identifier;
/**
* The unique identifier of the parent connection group for
* this connection group.
*/
private String parentIdentifier;
/**
* The type of this connection group.
@@ -63,6 +69,16 @@ public abstract class AbstractConnectionGroup implements ConnectionGroup {
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
@Override
public String getParentIdentifier() {
return parentIdentifier;
}
@Override
public void setParentIdentifier(String parentIdentifier) {
this.parentIdentifier = parentIdentifier;
}
@Override
public ConnectionGroup.Type getType() {

View File

@@ -47,7 +47,7 @@ public interface Connection {
/**
* Sets the name assigned to this Connection.
*
* @param identifier The name to assign.
* @param name The name to assign.
*/
public void setName(String name);
@@ -64,6 +64,24 @@ public interface Connection {
*/
public void setIdentifier(String identifier);
/**
* Returns the unique identifier of the parent ConnectionGroup for
* this Connection.
*
* @return The unique identifier of the parent ConnectionGroup for
* this Connection.
*/
public String getParentIdentifier();
/**
* Sets the unique identifier of the parent ConnectionGroup for
* this Connection.
*
* @param parentIdentifier The unique identifier of the parent
* ConnectionGroup for this Connection.
*/
public void setParentIdentifier(String parentIdentifier);
/**
* Returns the GuacamoleConfiguration associated with this Connection. Note
* that because configurations may contain sensitive information, some data

View File

@@ -47,7 +47,7 @@ public interface ConnectionGroup {
/**
* Sets the name assigned to this ConnectionGroup.
*
* @param identifier The name to assign.
* @param name The name to assign.
*/
public void setName(String name);
@@ -63,6 +63,24 @@ public interface ConnectionGroup {
* @param identifier The identifier to assign.
*/
public void setIdentifier(String identifier);
/**
* Returns the unique identifier of the parent ConnectionGroup for
* this ConnectionGroup.
*
* @return The unique identifier of the parent ConnectionGroup for
* this ConnectionGroup.
*/
public String getParentIdentifier();
/**
* Sets the unique identifier of the parent ConnectionGroup for
* this ConnectionGroup.
*
* @param parentIdentifier The unique identifier of the parent
* ConnectionGroup for this ConnectionGroup.
*/
public void setParentIdentifier(String parentIdentifier);
/**
* Set the type of this ConnectionGroup.