View Javadoc

1   package com.atlassian.user.impl.osuser;
2   
3   import com.atlassian.user.Entity;
4   
5   public abstract class OSUEntity implements Entity
6   {
7       protected com.opensymphony.user.Entity entity;
8   
9       public OSUEntity(com.opensymphony.user.Entity entity)
10      {
11          this.entity = entity;
12      }
13  
14      public String getName()
15      {
16          return entity.getName();
17      }
18  
19      public boolean equals(Object o)
20      {
21          if (this == o) return true;
22          if (!(o instanceof OSUEntity)) return false;
23  
24          final OSUEntity other = (OSUEntity) o;
25  
26          return entity == null ? other.entity == null : entity.equals(other.entity);
27      }
28  
29      public int hashCode()
30      {
31          return entity == null ? 0 : entity.hashCode();
32      }
33  }