Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcims
Class PutMetadataRequest

java.lang.Object
  extended by com.esri.gpt.catalog.arcims.ImsRequest
      extended by com.esri.gpt.catalog.arcims.PublishServiceRequest
          extended by com.esri.gpt.catalog.arcims.PutMetadataRequest

public class PutMetadataRequest
extends PublishServiceRequest

Publishes a record by executing a request against an ArcIMS metadata publish service.


Field Summary
 
Fields inherited from class com.esri.gpt.catalog.arcims.ImsRequest
ACTION_STATUS_ERROR, ACTION_STATUS_NONE, ACTION_STATUS_OK, ACTION_STATUS_REPLACED, ACTION_STATUS_UNKNOWN
 
Constructor Summary
PutMetadataRequest()
          Default constructor.
PutMetadataRequest(RequestContext requestContext, Publisher publisher)
          Constructs with an associated request context and publisher.
 
Method Summary
 boolean executePut(PutMetadataInfo info)
          Executes a PUT_METADATA request against an ArcIMS metadata publish service.
 boolean getLockTitle()
          Checks if lock title.
 void setLockTitle(boolean lockTitle)
          Sets if lock title If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.
 
Methods inherited from class com.esri.gpt.catalog.arcims.PublishServiceRequest
executeRequest, getPublisher, getRequestContext, setPublisher, setRequestContext
 
Methods inherited from class com.esri.gpt.catalog.arcims.ImsRequest
executeRequest, getActionStatus, getAxlRequest, getAxlResponse, getCredentials, getService, makeClient, onEndSaxElement, onStartSaxElement, setActionStatus, setAxlRequest, setAxlResponse, setCredentials, setService, wasActionOK
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutMetadataRequest

public PutMetadataRequest()
Default constructor.


PutMetadataRequest

public PutMetadataRequest(RequestContext requestContext,
                          Publisher publisher)
Constructs with an associated request context and publisher.

Parameters:
requestContext - the request context
publisher - the publisher
Method Detail

getLockTitle

public boolean getLockTitle()
Checks if lock title. If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.

Returns:
true to lock title

setLockTitle

public void setLockTitle(boolean lockTitle)
Sets if lock title If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.

Parameters:
lockTitle - true to lock title

executePut

public boolean executePut(PutMetadataInfo info)
                   throws ImsServiceException
Executes a PUT_METADATA request against an ArcIMS metadata publish service.

Parameters:
info - the information for the document to be published
Returns:
true if the action status was ok
Throws:
PublishServiceException - if an exception occurs
ImsServiceException

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.