org.kuali.student.common.ui.server.gwt
Class DocumentRpcGwtServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by org.kuali.student.common.ui.server.gwt.BaseRpcGwtServletAbstract<DocumentService>
                      extended by org.kuali.student.common.ui.server.gwt.DocumentRpcGwtServlet
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, Servlet, ServletConfig, BaseRpcService, DocumentRpcService

public class DocumentRpcGwtServlet
extends BaseRpcGwtServletAbstract<DocumentService>
implements DocumentRpcService

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Fields inherited from class org.kuali.student.common.ui.server.gwt.BaseRpcGwtServletAbstract
LOG, permissionService, service
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
DocumentRpcGwtServlet()
           
 
Method Summary
 StatusInfo addDocumentCategoryToDocument(String documentId, String documentCategoryKey)
           
 StatusInfo deleteDocument(String documentId)
           
 StatusInfo deleteRefDocRelation(String documentId)
           
 StatusInfo deleteRefDocRelationAndOrphanedDoc(String docRelationId, String documentId)
           
 DocumentInfo getDocument(String documentId)
           
 List<DocumentInfo> getDocumentsByIdList(List<String> documentIdList)
           
 List<RefDocRelationInfo> getRefDocIdsForRef(String refObjectTypeKey, String refObjectId)
           
 Boolean isAuthorizedUploadDocuments(String id, String referenceTypeKey)
          Check for authorization to upload documents
 StatusInfo removeDocumentCategoryFromDocument(String documentId, String documentCategoryKey)
           
 DocumentInfo updateDocument(String documentId, DocumentInfo documentInfo)
           
 
Methods inherited from class org.kuali.student.common.ui.server.gwt.BaseRpcGwtServletAbstract
getCurrentUser, getObjectStructure, getObjectTypes, getPermissionService, getSearchCriteriaType, getSearchCriteriaTypes, getSearchResultType, getSearchResultTypes, getSearchType, getSearchTypes, getSearchTypesByCriteria, getSearchTypesByResult, getService, search, setPermissionService, setService
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.student.common.ui.client.service.BaseRpcService
getObjectStructure, getObjectTypes, getSearchCriteriaType, getSearchCriteriaTypes, getSearchResultType, getSearchResultTypes, getSearchType, getSearchTypes, getSearchTypesByCriteria, getSearchTypesByResult, search
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

DocumentRpcGwtServlet

public DocumentRpcGwtServlet()
Method Detail

getDocument

public DocumentInfo getDocument(String documentId)
                         throws Exception
Specified by:
getDocument in interface DocumentRpcService
Throws:
Exception

getDocumentsByIdList

public List<DocumentInfo> getDocumentsByIdList(List<String> documentIdList)
                                        throws Exception
Specified by:
getDocumentsByIdList in interface DocumentRpcService
Throws:
Exception

deleteDocument

public StatusInfo deleteDocument(String documentId)
                          throws Exception
Specified by:
deleteDocument in interface DocumentRpcService
Throws:
Exception

updateDocument

public DocumentInfo updateDocument(String documentId,
                                   DocumentInfo documentInfo)
                            throws Exception
Specified by:
updateDocument in interface DocumentRpcService
Throws:
Exception

addDocumentCategoryToDocument

public StatusInfo addDocumentCategoryToDocument(String documentId,
                                                String documentCategoryKey)
                                         throws Exception
Specified by:
addDocumentCategoryToDocument in interface DocumentRpcService
Throws:
Exception

removeDocumentCategoryFromDocument

public StatusInfo removeDocumentCategoryFromDocument(String documentId,
                                                     String documentCategoryKey)
                                              throws Exception
Specified by:
removeDocumentCategoryFromDocument in interface DocumentRpcService
Throws:
Exception

isAuthorizedUploadDocuments

public Boolean isAuthorizedUploadDocuments(String id,
                                           String referenceTypeKey)
Description copied from interface: DocumentRpcService
Check for authorization to upload documents

Specified by:
isAuthorizedUploadDocuments in interface DocumentRpcService
Parameters:
id - identifier of the object
referenceTypeKey - reference type key of the object

deleteRefDocRelation

public StatusInfo deleteRefDocRelation(String documentId)
                                throws Exception
Specified by:
deleteRefDocRelation in interface DocumentRpcService
Throws:
Exception

getRefDocIdsForRef

public List<RefDocRelationInfo> getRefDocIdsForRef(String refObjectTypeKey,
                                                   String refObjectId)
                                            throws Exception
Specified by:
getRefDocIdsForRef in interface DocumentRpcService
Throws:
Exception

deleteRefDocRelationAndOrphanedDoc

public StatusInfo deleteRefDocRelationAndOrphanedDoc(String docRelationId,
                                                     String documentId)
                                              throws Exception
Specified by:
deleteRefDocRelationAndOrphanedDoc in interface DocumentRpcService
Throws:
Exception


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.