|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.ws.enumeration.EnumResource
public class EnumResource
Represents a persistent enumeration context. The enumeration resource has
lifetime information and a reference to the
EnumIterator object that provides access to the
enumeration data. The enumeration resource also contains
VisibilityProperties
that control access to the enumeration resource and data.
| Field Summary | |
|---|---|
private static org.globus.util.I18n |
i18n
|
protected boolean |
isDuration
|
protected EnumIterator |
iter
|
protected java.lang.Object |
key
|
private static FilePersistenceHelper |
persistenceHelper
|
protected java.util.Calendar |
terminationTime
|
private static org.apache.axis.components.uuid.UUIDGen |
uuidGen
|
protected VisibilityProperties |
visibility
|
| Constructor Summary | |
|---|---|
EnumResource()
|
|
EnumResource(EnumIterator iter,
VisibilityProperties visibility)
Creates EnumResource with given iterator and visibility properties. |
|
| Method Summary | |
|---|---|
java.util.Calendar |
getCurrentTime()
Get the current time |
java.lang.Object |
getID()
Returns the unique id of the resource. |
EnumIterator |
getIterator()
Gets the data iterator. |
private java.io.File |
getKeyAsFile(java.lang.Object key)
|
private static FilePersistenceHelper |
getPersistenceHelper()
|
java.util.Calendar |
getTerminationTime()
Get the termination time |
VisibilityProperties |
getVisibility()
Gets the visibility properties. |
boolean |
isDuration()
Gets whether this resource lifetime is expressed as a duration or a specific time/date. |
void |
load(ResourceKey key)
Loads the resource state. |
void |
remove()
Notifies that the resource was removed. |
void |
setDuration(boolean duration)
Sets whether this resource lifetime is expressed as a duration or a specific time/date. |
void |
setTerminationTime(java.util.Calendar time)
Set the termination time |
void |
store()
Saves the resource state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.globus.util.I18n i18n
private static final org.apache.axis.components.uuid.UUIDGen uuidGen
private static FilePersistenceHelper persistenceHelper
protected java.lang.Object key
protected boolean isDuration
protected java.util.Calendar terminationTime
protected EnumIterator iter
protected VisibilityProperties visibility
| Constructor Detail |
|---|
public EnumResource()
public EnumResource(EnumIterator iter,
VisibilityProperties visibility)
iter - the data iterator. Cannot be null.visibility - the visibility properties. Cannot be null.| Method Detail |
|---|
public EnumIterator getIterator()
public VisibilityProperties getVisibility()
public java.lang.Object getID()
ResourceIdentifierResoureKey.getValue().
getID in interface ResourceIdentifierpublic void setTerminationTime(java.util.Calendar time)
ResourceLifetime
setTerminationTime in interface ResourceLifetimetime - The termination time to setpublic java.util.Calendar getTerminationTime()
ResourceLifetime
getTerminationTime in interface ResourceLifetimepublic void setDuration(boolean duration)
duration - if true, the lifetime of this resource will be returned
as a duration. If false, the lifetime of this resource will
be returned as a specific time/date.public boolean isDuration()
public java.util.Calendar getCurrentTime()
ResourceLifetime
getCurrentTime in interface ResourceLifetime
public void load(ResourceKey key)
throws ResourceException
PersistenceCallback
load in interface PersistenceCallbackNoSuchResourceException - if no resource state exists for the
specified key.
InvalidResourceKeyException - if the resource key is invalid.
ResourceException - if the load operation fails for any other
reason.
public void store()
throws ResourceException
PersistenceCallback
store in interface PersistenceCallbackResourceException - if the store operation fails.
public void remove()
throws ResourceException
RemoveCallbackResourceHome.remove() is
allowed to call that method during the remove operation.
remove in interface RemoveCallbackResourceException - if the remove operation fails.
private java.io.File getKeyAsFile(java.lang.Object key)
throws InvalidResourceKeyException
InvalidResourceKeyExceptionprivate static FilePersistenceHelper getPersistenceHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||