com.openexchange.admin.rmi
Interface OXPublicationInterface

All Superinterfaces:
java.rmi.Remote

public interface OXPublicationInterface
extends java.rmi.Remote

This interface defines methods for checking and deleting Publications by Users.

Example:

 final OXPublicationInterface iface = (OXPublicationInterface)Naming.lookup("rmi:///oxhost/"+OXPublicationInterface.RMI_NAME);

 

Author:
Felix Marx

Field Summary
static java.lang.String RMI_NAME
          RMI name to be used in the naming lookup.
 
Method Summary
 boolean deletePublication(Context ctx, java.lang.String url, Credentials auth)
          This method will delete a Publication
 Publication getPublication(Context ctx, java.lang.String url, Credentials auth)
          This method returns a Publication for a given Url
 

Field Detail

RMI_NAME

static final java.lang.String RMI_NAME
RMI name to be used in the naming lookup.

See Also:
Constant Field Values
Method Detail

getPublication

Publication getPublication(Context ctx,
                           java.lang.String url,
                           Credentials auth)
                           throws java.rmi.RemoteException,
                                  NoSuchPublicationException,
                                  MissingServiceException
This method returns a Publication for a given Url

Returns:
Publication if Publication is found
Throws:
OXException
NoSuchPublicationException
MissingServiceException
java.rmi.RemoteException

deletePublication

boolean deletePublication(Context ctx,
                          java.lang.String url,
                          Credentials auth)
                          throws java.rmi.RemoteException,
                                 NoSuchPublicationException,
                                 MissingServiceException
This method will delete a Publication

Returns:
true if the publication is deleted, false if not
Throws:
OXException
NoSuchPublicationException
MissingServiceException
java.rmi.RemoteException