]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms/src/org/argeo/cms/auth/CmsSessionId.java
1 package org
.argeo
.cms
.auth
;
5 import org
.argeo
.cms
.CmsException
;
7 public class CmsSessionId
{
8 private final UUID uuid
;
10 public CmsSessionId(UUID value
) {
12 throw new CmsException("value cannot be null");
16 public UUID
getUuid() {
21 public int hashCode() {
22 return uuid
.hashCode();
26 public boolean equals(Object obj
) {
27 return obj
instanceof CmsSessionId
&& ((CmsSessionId
) obj
).getUuid().equals(uuid
);
31 public String
toString() {
32 return "Node Session " + uuid
;