Class AbstractEntityUri
java.lang.Object
ch.tocco.nice2.netui.spi.bind.util.AbstractUriTarget
ch.tocco.nice2.netui.impl.bind.protocols.entity.AbstractPersistUriTarget
ch.tocco.nice2.netui.impl.bind.protocols.entity.AbstractEntityUri
- All Implemented Interfaces:
UriTarget
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.netui.api.bind.UriTarget
UriTarget.Method
-
Field Summary
Fields inherited from class ch.tocco.nice2.netui.impl.bind.protocols.entity.AbstractPersistUriTarget
resolver
Fields inherited from class ch.tocco.nice2.netui.spi.bind.util.AbstractUriTarget
methods, type, uri
-
Constructor Summary
ConstructorDescriptionAbstractEntityUri
(URI uri, UriResolver resolver, EntityManager manager) AbstractEntityUri
(URI uri, UriResolver resolver, EntityManager manager, AbstractEntityUri.DeleteHandler deleteHandler) AbstractEntityUri
(URI uri, UriResolver resolver, EntityManager manager, Set<UriTarget.Method> methods) AbstractEntityUri
(URI uri, UriResolver resolver, EntityManager manager, Set<UriTarget.Method> methods, AbstractEntityUri.DeleteHandler deleteHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
get()
@Nullable org.joda.time.DateTime
@Nullable String
long
boolean
boolean
This method is used by internal URI cache to determine if an item retrieved from cache is still valid.protected abstract @Nullable Entity
resolve
(UriTargetCache<URI> cache, UriIterator iter) @Nullable Entity
Methods inherited from class ch.tocco.nice2.netui.impl.bind.protocols.entity.AbstractPersistUriTarget
doParametrize, isPersistent, parametrize
Methods inherited from class ch.tocco.nice2.netui.spi.bind.util.AbstractUriTarget
checkMethod, checkNotNull, checkType, finalUri, finalUri, getMethods, getType, getUri, put, stripFragment, toString, unsupportedType
-
Field Details
-
manager
-
-
Constructor Details
-
AbstractEntityUri
-
AbstractEntityUri
public AbstractEntityUri(URI uri, UriResolver resolver, EntityManager manager, Set<UriTarget.Method> methods) -
AbstractEntityUri
public AbstractEntityUri(URI uri, UriResolver resolver, EntityManager manager, AbstractEntityUri.DeleteHandler deleteHandler) -
AbstractEntityUri
public AbstractEntityUri(URI uri, UriResolver resolver, EntityManager manager, Set<UriTarget.Method> methods, AbstractEntityUri.DeleteHandler deleteHandler)
-
-
Method Details
-
get
- Specified by:
get
in interfaceUriTarget
- Overrides:
get
in classAbstractUriTarget
- Throws:
UriStoreException
-
delete
- Specified by:
delete
in interfaceUriTarget
- Overrides:
delete
in classAbstractUriTarget
- Throws:
UriStoreException
-
getEntity
- Throws:
UriStoreException
-
retrieveEntity
- Throws:
UriStoreException
-
hasEntity
- Throws:
UriStoreException
-
loadEntity
@Nullable protected abstract @Nullable Entity loadEntity() throws PersistException, UriStoreException- Throws:
PersistException
UriStoreException
-
resolve
public AbstractPersistUriTarget resolve(UriTargetCache<URI> cache, UriIterator iter) throws UnresolvableUriException, PersistException, UriStoreException - Specified by:
resolve
in classAbstractPersistUriTarget
- Throws:
UnresolvableUriException
PersistException
UriStoreException
-
getVersion
- Specified by:
getVersion
in interfaceUriTarget
- Overrides:
getVersion
in classAbstractPersistUriTarget
- Throws:
UriStoreException
-
getLastModUser
- Specified by:
getLastModUser
in interfaceUriTarget
- Overrides:
getLastModUser
in classAbstractPersistUriTarget
- Throws:
UriStoreException
-
getLastModTime
- Specified by:
getLastModTime
in interfaceUriTarget
- Overrides:
getLastModTime
in classAbstractPersistUriTarget
- Throws:
UriStoreException
-
isInvalid
public boolean isInvalid()Description copied from interface:UriTarget
This method is used by internal URI cache to determine if an item retrieved from cache is still valid. If the target is invalid, the URI will be resolved again.- Specified by:
isInvalid
in interfaceUriTarget
- Overrides:
isInvalid
in classAbstractUriTarget
- Returns:
- true if this UriTarget is invalid
-