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 ClassesNested classes/interfaces inherited from interface UriTarget
UriTarget.Method -
Field Summary
FieldsFields inherited from class AbstractPersistUriTarget
resolverFields inherited from class AbstractUriTarget
methods, type, uri -
Constructor Summary
ConstructorsConstructorDescriptionAbstractEntityUri(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 TypeMethodDescriptionvoiddelete()get()@Nullable org.joda.time.DateTime@Nullable StringlongbooleanbooleanThis method is used by internal URI cache to determine if an item retrieved from cache is still valid.protected abstract @Nullable Entityresolve(UriTargetCache<URI> cache, UriIterator iter) @Nullable EntityMethods inherited from class AbstractPersistUriTarget
doParametrize, isPersistent, parametrizeMethods inherited from class 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:
getin interfaceUriTarget- Overrides:
getin classAbstractUriTarget- Throws:
UriStoreException
-
delete
- Specified by:
deletein interfaceUriTarget- Overrides:
deletein classAbstractUriTarget- Throws:
UriStoreException
-
getEntity
- Throws:
UriStoreException
-
retrieveEntity
- Throws:
UriStoreException
-
hasEntity
- Throws:
UriStoreException
-
loadEntity
@Nullable protected abstract @Nullable Entity loadEntity() throws PersistException, UriStoreException- Throws:
PersistExceptionUriStoreException
-
resolve
public AbstractPersistUriTarget resolve(UriTargetCache<URI> cache, UriIterator iter) throws UnresolvableUriException, PersistException, UriStoreException - Specified by:
resolvein classAbstractPersistUriTarget- Throws:
UnresolvableUriExceptionPersistExceptionUriStoreException
-
getVersion
- Specified by:
getVersionin interfaceUriTarget- Overrides:
getVersionin classAbstractPersistUriTarget- Throws:
UriStoreException
-
getLastModUser
- Specified by:
getLastModUserin interfaceUriTarget- Overrides:
getLastModUserin classAbstractPersistUriTarget- Throws:
UriStoreException
-
getLastModTime
- Specified by:
getLastModTimein interfaceUriTarget- Overrides:
getLastModTimein classAbstractPersistUriTarget- Throws:
UriStoreException
-
isInvalid
public boolean isInvalid()Description copied from interface:UriTargetThis 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:
isInvalidin interfaceUriTarget- Overrides:
isInvalidin classAbstractUriTarget- Returns:
- true if this UriTarget is invalid
-