Class PublicResourceReference<TEntity extends IUUIDEntity>

    • Method Detail

      • create

        public static <TEntity extends de.xima.cmn.dao.interfaces.IEntity<?> & IUUIDEntityPublicResourceReference<TEntity> create​(TEntity entity,
                                                                                                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                                                                                                    Locale locale)
        Creates a new instance of PublicResourceReference for 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.