org.apache.james.mailbox.jpa.user.model
Class JPASubscription

java.lang.Object
  extended by org.apache.james.mailbox.jpa.user.model.JPASubscription
All Implemented Interfaces:
Subscription

@Entity(name="Subscription")
public class JPASubscription
extends Object
implements Subscription

A subscription to a mailbox by a user.


Constructor Summary
JPASubscription()
          Deprecated. 
JPASubscription(String username, String mailbox)
          Constructs a user subscription.
 
Method Summary
 boolean equals(Object obj)
           
 String getMailbox()
           
 String getUser()
           
 int hashCode()
           
 String toString()
          Renders output suitable for debugging.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JPASubscription

@Deprecated
public JPASubscription()
Deprecated. 

Used by JPA


JPASubscription

public JPASubscription(String username,
                       String mailbox)
Constructs a user subscription.

Parameters:
username - not null
mailbox - not null
Method Detail

getMailbox

public String getMailbox()
Specified by:
getMailbox in interface Subscription
See Also:
Subscription.getMailbox()

getUser

public String getUser()
Specified by:
getUser in interface Subscription
See Also:
Subscription.getUser()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Renders output suitable for debugging.

Overrides:
toString in class Object
Returns:
output suitable for debugging


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.