org.gcube.indexmanagement.forwardindexmanagement.impl
Class ForwardIndexManagementResource

java.lang.Object
  extended by IndexManagementWSResource
      extended by org.gcube.indexmanagement.forwardindexmanagement.impl.ForwardIndexManagementResource

public class ForwardIndexManagementResource
extends IndexManagementWSResource

Contain the resource instances. More precisely index information like type, format, name, modified date and so on.


Field Summary
static java.lang.String RP_CONTENT_TYPE
          The content type of the db given by the creator.
static java.lang.String RP_KEY_DESCRIPTION
          The index key description for this index.
 
Constructor Summary
ForwardIndexManagementResource()
           
 
Method Summary
 void deleteCollection(java.lang.String collectionID)
          Deletes a collection id to the collectionID resource property.
 java.lang.String getContentType()
          Getter method for the ContentType Resource Property
 DeltaListManagementHandler getIndexManagerHandler()
          Required by interface DeltaListManager.
 KeyDescriptionType[] getKeyDescription()
          Getter method for the KeyDescription Resource Property
 boolean isDeltaValid(DeltaFileInfoType arg0)
          Required by interface DeltaListManagementHandler
 void onLoad(java.io.ObjectInputStream ois, boolean firstLoad)
           
 void onResourceRemoval()
           
 void onStore(java.io.ObjectOutputStream oos)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RP_CONTENT_TYPE

public static final java.lang.String RP_CONTENT_TYPE
The content type of the db given by the creator.

See Also:
Constant Field Values

RP_KEY_DESCRIPTION

public static final java.lang.String RP_KEY_DESCRIPTION
The index key description for this index.

See Also:
Constant Field Values
Constructor Detail

ForwardIndexManagementResource

public ForwardIndexManagementResource()
Method Detail

onStore

public void onStore(java.io.ObjectOutputStream oos)
             throws java.lang.Exception
Throws:
java.lang.Exception

onLoad

public void onLoad(java.io.ObjectInputStream ois,
                   boolean firstLoad)
            throws java.lang.Exception
Throws:
java.lang.Exception

onResourceRemoval

public void onResourceRemoval()

getContentType

public java.lang.String getContentType()
Getter method for the ContentType Resource Property

Returns:
String the requested ContentType identifier

getKeyDescription

public KeyDescriptionType[] getKeyDescription()
Getter method for the KeyDescription Resource Property

Returns:
KeyDescriptionType[] the KeyDscription of this Index

deleteCollection

public void deleteCollection(java.lang.String collectionID)
Deletes a collection id to the collectionID resource property. Does not remove any content from the index.

Parameters:
collectionID - String -the ID to be added

getIndexManagerHandler

public DeltaListManagementHandler getIndexManagerHandler()
Required by interface DeltaListManager.

Returns:
- the management handler.

isDeltaValid

public boolean isDeltaValid(DeltaFileInfoType arg0)
                     throws IndexException
Required by interface DeltaListManagementHandler

Parameters:
arg0 - - the delta file info
Returns:
- true if the delta file is valid
Throws:
IndexExcepetion - in case of failure
IndexException