org.jboss.dna.web.jcr.rest.client.domain
Class Repository

java.lang.Object
  extended by org.jboss.dna.web.jcr.rest.client.domain.Repository
All Implemented Interfaces:
IDnaObject

@Immutable
public class Repository
extends Object
implements IDnaObject

The Repository class is the business object for a DNA repository.


Constructor Summary
Repository(String name, Server server)
          Constructs a new Repository.
 
Method Summary
 boolean equals(Object obj)
          
 String getName()
          
 Server getServer()
           
 String getShortDescription()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Repository

public Repository(String name,
                  Server server)
Constructs a new Repository.

Parameters:
name - the repository name (never null)
server - the server where this repository resides (never null)
Throws:
IllegalArgumentException - if the name or server argument is null
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getName

public String getName()

Specified by:
getName in interface IDnaObject
Returns:
the object name (never null)
See Also:
IDnaObject.getName()

getServer

public Server getServer()
Returns:
the server where this repository is located (never null)

getShortDescription

public String getShortDescription()

Specified by:
getShortDescription in interface IDnaObject
Returns:
a description suitable for use in a tooltip (never null)
See Also:
IDnaObject.getShortDescription()

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.