Class PublicResourceReference<TEntity extends IUUIDEntity>
java.lang.Object
de.xima.fc.api.rest.impl.common.resource.response.AResource
de.xima.fc.api.rest.impl.common.resource.response.AUuidResource
de.xima.fc.api.rest.impl.common.resource.response.AUuidEntityResource<TEntity>
de.xima.fc.api.rest.impl.common.resource.response.PublicResourceReference<TEntity>
- Type Parameters:
TEntity- type of UUID entity.
- All Implemented Interfaces:
IResource, IUuidResource, Serializable
public class PublicResourceReference<TEntity extends IUUIDEntity>
extends AUuidEntityResource<TEntity>
Model class for public resource references.
- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <TEntity extends de.xima.cmn.dao.interfaces.IEntity<?> & IUUIDEntity>
PublicResourceReference<TEntity> Creates a new instance ofPublicResourceReferencefor the given entity.Methods inherited from class AUuidResource
getUuid
-
Method Details
-
create
public static <TEntity extends de.xima.cmn.dao.interfaces.IEntity<?> & IUUIDEntity> PublicResourceReference<TEntity> create(TEntity entity, javax.ws.rs.core.UriInfo uriInfo, Locale locale) Creates a new instance ofPublicResourceReferencefor the given entity.- Type Parameters:
TEntity- type of UUID entity.- Parameters:
entity- the entity to create the reference for.uriInfo- the URI info for creating links.locale- the locale if necessary for link creation.- Returns:
- the created instance.
-