fix permission caching for logged in users

This commit is contained in:
Sebastian Sdorra
2013-08-28 16:15:41 +02:00
parent e4da1a9404
commit 252108a7ab
2 changed files with 110 additions and 7 deletions

View File

@@ -35,6 +35,7 @@ package sonia.scm.group;
//~--- non-JDK imports --------------------------------------------------------
import com.google.common.base.Objects;
import com.google.common.collect.Lists;
//~--- JDK imports ------------------------------------------------------------
@@ -112,6 +113,36 @@ public final class GroupNames implements Serializable, Iterable<String>
return collection.contains(groupName);
}
/**
* {@inheritDoc}
*/
@Override
public boolean equals(Object obj)
{
if (obj == null)
{
return false;
}
if (getClass() != obj.getClass())
{
return false;
}
final GroupNames other = (GroupNames) obj;
return Objects.equal(collection, other.collection);
}
/**
* {@inheritDoc}
*/
@Override
public int hashCode()
{
return Objects.hashCode(collection);
}
/**
* Method description
*