GUACAMOLE-5: Track the sharing profile associated with an active connection.

This commit is contained in:
Michael Jumper
2016-07-15 12:50:47 -07:00
parent a2ad7a69ab
commit 0f49c39ed4
2 changed files with 33 additions and 1 deletions

View File

@@ -36,6 +36,11 @@ public abstract class AbstractActiveConnection extends AbstractIdentifiable
*/ */
private String connectionIdentifier; private String connectionIdentifier;
/**
* The identifier of the associated sharing profile.
*/
private String sharingProfileIdentifier;
/** /**
* The date and time this active connection began. * The date and time this active connection began.
*/ */
@@ -66,6 +71,16 @@ public abstract class AbstractActiveConnection extends AbstractIdentifiable
this.connectionIdentifier = connnectionIdentifier; this.connectionIdentifier = connnectionIdentifier;
} }
@Override
public String getSharingProfileIdentifier() {
return sharingProfileIdentifier;
}
@Override
public void setSharingProfileIdentifier(String sharingProfileIdentifier) {
this.sharingProfileIdentifier = sharingProfileIdentifier;
}
@Override @Override
public Date getStartDate() { public Date getStartDate() {
return startDate; return startDate;

View File

@@ -48,6 +48,23 @@ public interface ActiveConnection extends Identifiable {
*/ */
void setConnectionIdentifier(String connnectionIdentifier); void setConnectionIdentifier(String connnectionIdentifier);
/**
* Returns the identifier of the sharing profile being actively used. If
* the connection is being accessed directly, this will be null.
*
* @return
* The identifier of the sharing profile being actively used.
*/
String getSharingProfileIdentifier();
/**
* Sets the identifier of the sharing profile being actively used.
*
* @param sharingProfileIdentifier
* The identifier of the sharing profile being actively used.
*/
void setSharingProfileIdentifier(String sharingProfileIdentifier);
/** /**
* Returns the date and time the connection began. * Returns the date and time the connection began.
* *